top | up | prev | next

DefaultStatementNode Class

Definition at line 453 of Statement.hpp

Constructors

DefaultStatementNode(const Span& span_, const boost::uuids::uuid& moduleId_)

Member Functions

void Accept(Visitor& visitor) override
void AddStatement(StatementNode* statement)
Node* Clone(CloneContext& cloneContext) const override
void Read(AstReader& reader) override
const NodeList<StatementNode>& Statements() const
void Write(AstWriter& writer) override

Member Variables

NodeList<StatementNode> statements

Constructor Details

DefaultStatementNode Constructor

sngcm::ast::DefaultStatementNode::DefaultStatementNode(const Span& span_, const boost::uuids::uuid& moduleId_)

Definition at line 958 of Statement.cpp :
 958 : StatementNode(NodeType::defaultStatementNodespan_moduleId_)statements()
 959 {
 960 }


Declaration at line 456 of Statement.hpp


Member Function Details

Accept Member Function

void sngcm::ast::DefaultStatementNode::Accept(Visitor & visitor) override

Definition at line 973 of Statement.cpp :
 974 {
 975     visitor.Visit(*this);
 976 }


Declaration at line 458 of Statement.hpp

Base class overridden functions: sngcm::ast::Node::Accept

Calls: sngcm::ast::Visitor::Visit

Called by: sngcm::ast::SourceWriter::Visit


AddStatement Member Function

void sngcm::ast::DefaultStatementNode::AddStatement(StatementNode * statement)

Definition at line 991 of Statement.cpp :
 992 {
 993     statement->SetParent(this);
 994     statements.Add(statement);
 995 }


Declaration at line 462 of Statement.hpp

Calls: sngcm::ast::Node::SetParent , sngcm::ast::NodeList::Add

Called by: sngcm::ast::DefaultStatementNode::Clone


Clone Member Function

Node * sngcm::ast::DefaultStatementNode::Clone(CloneContext & cloneContext) const override

Definition at line 962 of Statement.cpp :
 963 {
 964     DefaultStatementNode* clone = new DefaultStatementNode(GetSpan()ModuleId());
 965     int n = statements.Count();
 966     for (int i = 0; i < n; ++i)
 967     {
 968         clone->AddStatement(static_cast<StatementNode*>(statements[i]->Clone(cloneContext)));
 969     }
 970     return clone;
 971 }


Declaration at line 457 of Statement.hpp

Base class overridden functions: sngcm::ast::Node::Clone

Calls: sngcm::ast::DefaultStatementNode::AddStatement , sngcm::ast::DefaultStatementNode::Clone , sngcm::ast::Node::GetSpan , sngcm::ast::Node::ModuleId , sngcm::ast::NodeList::Count

Called by: sngcm::ast::DefaultStatementNode::Clone


Read Member Function

void sngcm::ast::DefaultStatementNode::Read(AstReader & reader) override

Definition at line 984 of Statement.cpp :
 985 {
 986     StatementNode::Read(reader);
 987     statements.Read(reader);
 988     statements.SetParent(this);
 989 }


Declaration at line 460 of Statement.hpp

Base class overridden functions: sngcm::ast::Node::Read , sngcm::ast::StatementNode::Read

Calls: sngcm::ast::NodeList::Read , sngcm::ast::NodeList::SetParent , sngcm::ast::StatementNode::Read


Statements Member Function

const NodeList <StatementNode >& sngcm::ast::DefaultStatementNode::Statements() const

Definition at line 461 of Statement.hpp :
461 { return statements; }

Called by: sngcm::ast::SourceWriter::Visit


Write Member Function

void sngcm::ast::DefaultStatementNode::Write(AstWriter & writer) override

Definition at line 978 of Statement.cpp :
 979 {
 980     StatementNode::Write(writer);
 981     statements.Write(writer);
 982 }


Declaration at line 459 of Statement.hpp

Base class overridden functions: sngcm::ast::Node::Write , sngcm::ast::StatementNode::Write

Calls: sngcm::ast::NodeList::Write , sngcm::ast::StatementNode::Write


top | up | prev | next