top | up | prev | next

ConditionalCompilationBinaryExpressionNode Abstract Class

Definition at line 568 of Statement.hpp

Constructors

ConditionalCompilationBinaryExpressionNode(NodeType nodeType_, const Span& span_)
ConditionalCompilationBinaryExpressionNode(NodeType nodeType_, const Span& span_, ConditionalCompilationExpressionNode* left_, ConditionalCompilationExpressionNode* right_)

Member Functions

ConditionalCompilationExpressionNode* Left() const
void Read(AstReader& reader) override
ConditionalCompilationExpressionNode* Right() const
void Write(AstWriter& writer) override

Member Variables

std::unique_ptr<ConditionalCompilationExpressionNode> left
std::unique_ptr<ConditionalCompilationExpressionNode> right

Constructor Details

ConditionalCompilationBinaryExpressionNode Constructor

sngcm::ast::ConditionalCompilationBinaryExpressionNode::ConditionalCompilationBinaryExpressionNode(NodeType nodeType_, const Span& span_)

Definition at line 1186 of Statement.cpp :
1186 : ConditionalCompilationExpressionNode(nodeType_span_)
1187 {
1188 }


Declaration at line 571 of Statement.hpp


ConditionalCompilationBinaryExpressionNode Constructor

sngcm::ast::ConditionalCompilationBinaryExpressionNode::ConditionalCompilationBinaryExpressionNode(NodeType nodeType_, const Span& span_, ConditionalCompilationExpressionNode * left_, ConditionalCompilationExpressionNode * right_)

Definition at line 1190 of Statement.cpp :
1190 :
1191 ConditionalCompilationExpressionNode(nodeType_span_)left(left_)right(right_)
1192 {
1193     left->SetParent(this);
1194     right->SetParent(this);
1195 }


Declaration at line 572 of Statement.hpp


Member Function Details

Left Member Function

ConditionalCompilationExpressionNode * sngcm::ast::ConditionalCompilationBinaryExpressionNode::Left() const

Definition at line 575 of Statement.hpp :
575 { return left.get(); }

Called by: sngcm::ast::ConditionalCompilationConjunctionNode::Clone , sngcm::ast::ConditionalCompilationDisjunctionNode::Clone , sngcm::ast::SourceWriter::Visit , sngcm::ast::SourceWriter::Visit


Read Member Function

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

Definition at line 1204 of Statement.cpp :
1205 {
1206     ConditionalCompilationExpressionNode::Read(reader);
1207     left.reset(reader.ReadConditionalCompilationExpressionNode());
1208     left->SetParent(this);
1209     right.reset(reader.ReadConditionalCompilationExpressionNode());
1210     right->SetParent(this);
1211 }


Declaration at line 574 of Statement.hpp

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

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


Right Member Function

ConditionalCompilationExpressionNode * sngcm::ast::ConditionalCompilationBinaryExpressionNode::Right() const

Definition at line 576 of Statement.hpp :
576 { return right.get(); }

Called by: sngcm::ast::ConditionalCompilationConjunctionNode::Clone , sngcm::ast::ConditionalCompilationDisjunctionNode::Clone , sngcm::ast::SourceWriter::Visit , sngcm::ast::SourceWriter::Visit


Write Member Function

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

Definition at line 1197 of Statement.cpp :
1198 {
1199     ConditionalCompilationExpressionNode::Write(writer);
1200     writer.Write(left.get());
1201     writer.Write(right.get());
1202 }


Declaration at line 573 of Statement.hpp

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

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


top | up | prev | next