top | up | prev | next

AssertStatementNode Class

Definition at line 546 of Statement.hpp

Constructors

AssertStatementNode(const Span& span_)
AssertStatementNode(const Span& span_, 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_)

Definition at line 1149 of Statement.cpp :
1149 : StatementNode(NodeType::assertStatementNodespan_)assertExpr()
1150 {
1151 }


Declaration at line 549 of Statement.hpp


AssertStatementNode Constructor

sngcm::ast::AssertStatementNode::AssertStatementNode(const Span& span_, Node * assertExpr_)

Definition at line 1153 of Statement.cpp :
1153 : StatementNode(NodeType::assertStatementNodespan_)assertExpr(assertExpr_)
1154 {
1155     assertExpr->SetParent(this);
1156 }


Declaration at line 550 of Statement.hpp


Member Function Details

Accept Member Function

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

Definition at line 1164 of Statement.cpp :
1165 {
1166     visitor.Visit(*this);
1167 }


Declaration at line 552 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 555 of Statement.hpp :
555 { return assertExpr.get(); }


AssertExpr Member Function

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

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

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


Clone Member Function

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

Definition at line 1158 of Statement.cpp :
1159 {
1160     AssertStatementNode* clone = new AssertStatementNode(GetSpan()assertExpr->Clone(cloneContext));
1161     return clone;
1162 }


Declaration at line 551 of Statement.hpp

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

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

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


Read Member Function

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

Definition at line 1175 of Statement.cpp :
1176 {
1177     StatementNode::Read(reader);
1178     assertExpr.reset(reader.ReadNode());
1179     assertExpr->SetParent(this);
1180 }


Declaration at line 554 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 1169 of Statement.cpp :
1170 {
1171     StatementNode::Write(writer);
1172     writer.Write(assertExpr.get());
1173 }


Declaration at line 553 of Statement.hpp

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

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


top | up | prev | next