top | up | prev | next

AssertStatementNode Class

Definition at line 558 of Statement.hpp

Constructors

AssertStatementNode(const Span& span_, const boost::uuids::uuid& moduleId_)
AssertStatementNode(const Span& span_, const boost::uuids::uuid& moduleId_, Node* assertExpr_)

Member Functions

void Accept(Visitor& visitor) override
const Node* AssertExpr() const
Node* AssertExpr()
Node* Clone(CloneContext& cloneContext) const override
void Read(AstReader& reader) override
void Write(AstWriter& writer) override

Member Variables

std::unique_ptr<Node> assertExpr

Constructor Details

AssertStatementNode Constructor

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

Definition at line 1213 of Statement.cpp :
1213 :
1214 StatementNode(NodeType::assertStatementNodespan_moduleId_)assertExpr()
1215 {
1216 }


Declaration at line 561 of Statement.hpp


AssertStatementNode Constructor

sngcm::ast::AssertStatementNode::AssertStatementNode(const Span& span_, const boost::uuids::uuid& moduleId_, Node * assertExpr_)

Definition at line 1218 of Statement.cpp :
1218 :
1219 StatementNode(NodeType::assertStatementNodespan_moduleId_)assertExpr(assertExpr_)
1220 {
1221     assertExpr->SetParent(this);
1222 }


Declaration at line 562 of Statement.hpp


Member Function Details

Accept Member Function

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

Definition at line 1230 of Statement.cpp :
1231 {
1232     visitor.Visit(*this);
1233 }


Declaration at line 564 of Statement.hpp

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

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


AssertExpr Member Function

const Node * sngcm::ast::AssertStatementNode::AssertExpr() const

Definition at line 567 of Statement.hpp :
567 { return assertExpr.get(); }


AssertExpr Member Function

Node * sngcm::ast::AssertStatementNode::AssertExpr()

Definition at line 568 of Statement.hpp :
568 { return assertExpr.get(); }

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


Clone Member Function

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

Definition at line 1224 of Statement.cpp :
1225 {
1226     AssertStatementNode* clone = new AssertStatementNode(GetSpan()ModuleId()assertExpr->Clone(cloneContext));
1227     return clone;
1228 }


Declaration at line 563 of Statement.hpp

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

Calls: sngcm::ast::AssertStatementNode::Clone , sngcm::ast::Node::GetSpan , sngcm::ast::Node::ModuleId

Called by: sngcm::ast::AssertStatementNode::Clone


Read Member Function

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

Definition at line 1241 of Statement.cpp :
1242 {
1243     StatementNode::Read(reader);
1244     assertExpr.reset(reader.ReadNode());
1245     assertExpr->SetParent(this);
1246 }


Declaration at line 566 of Statement.hpp

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

Calls: sngcm::ast::AstReader::ReadNode , sngcm::ast::Node::SetParent , sngcm::ast::StatementNode::Read


Write Member Function

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

Definition at line 1235 of Statement.cpp :
1236 {
1237     StatementNode::Write(writer);
1238     writer.Write(assertExpr.get());
1239 }


Declaration at line 565 of Statement.hpp

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

Calls: sngcm::ast::StatementNode::Write


top | up | prev | next