top | up | prev | next

ConditionalCompilationNotNode Class

Definition at line 600 of Statement.hpp

Constructors

ConditionalCompilationNotNode(const Span& span_)
ConditionalCompilationNotNode(const Span& span_, ConditionalCompilationExpressionNode* expr_)

Member Functions

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

Member Variables

std::unique_ptr<ConditionalCompilationExpressionNode> expr

Constructor Details

ConditionalCompilationNotNode Constructor

sngcm::ast::ConditionalCompilationNotNode::ConditionalCompilationNotNode(const Span& span_)

Definition at line 1251 of Statement.cpp :
1251 : ConditionalCompilationExpressionNode(NodeType::conditionalCompilationNotNodespan_)
1252 {
1253 }


Declaration at line 603 of Statement.hpp


ConditionalCompilationNotNode Constructor

sngcm::ast::ConditionalCompilationNotNode::ConditionalCompilationNotNode(const Span& span_, ConditionalCompilationExpressionNode * expr_)

Definition at line 1255 of Statement.cpp :
1255 :
1256 ConditionalCompilationExpressionNode(NodeType::conditionalCompilationNotNodespan_)expr(expr_)
1257 {
1258     expr->SetParent(this);
1259 }


Declaration at line 604 of Statement.hpp


Member Function Details

Accept Member Function

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

Definition at line 1266 of Statement.cpp :
1267 {
1268     visitor.Visit(*this);
1269 }


Declaration at line 606 of Statement.hpp

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

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


Clone Member Function

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

Definition at line 1261 of Statement.cpp :
1262 {
1263     return new ConditionalCompilationNotNode(GetSpan()static_cast<ConditionalCompilationExpressionNode*>(expr->Clone(cloneContext)));
1264 }


Declaration at line 605 of Statement.hpp

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

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

Called by: sngcm::ast::ConditionalCompilationNotNode::Clone


Expr Member Function

ConditionalCompilationExpressionNode * sngcm::ast::ConditionalCompilationNotNode::Expr() const

Definition at line 609 of Statement.hpp :
609 { return expr.get(); }

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


Read Member Function

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

Definition at line 1277 of Statement.cpp :
1278 {
1279     ConditionalCompilationExpressionNode::Read(reader);
1280     expr.reset(reader.ReadConditionalCompilationExpressionNode());
1281     expr->SetParent(this);
1282 }


Declaration at line 608 of Statement.hpp

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

Calls: sngcm::ast::AstReader::ReadConditionalCompilationExpressionNode , sngcm::ast::Node::Read , sngcm::ast::Node::SetParent


Write Member Function

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

Definition at line 1271 of Statement.cpp :
1272 {
1273     ConditionalCompilationExpressionNode::Write(writer);
1274     writer.Write(expr.get());
1275 }


Declaration at line 607 of Statement.hpp

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

Calls: sngcm::ast::Node::Write


top | up | prev | next