top | up | prev | next

ParenthesizedConditionalCompilationExpressionNode Class

Definition at line 628 of Statement.hpp

Constructors

ParenthesizedConditionalCompilationExpressionNode(const Span& span_)
ParenthesizedConditionalCompilationExpressionNode(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

ParenthesizedConditionalCompilationExpressionNode Constructor

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

Definition at line 1315 of Statement.cpp :
1315 :
1316 ConditionalCompilationExpressionNode(NodeType::parenthesizedCondCompExpressionNodespan_)
1317 {
1318 }


Declaration at line 631 of Statement.hpp


ParenthesizedConditionalCompilationExpressionNode Constructor

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

Definition at line 1320 of Statement.cpp :
1320 :
1321 ConditionalCompilationExpressionNode(NodeType::parenthesizedCondCompExpressionNodespan_)expr(expr_)
1322 {
1323 }


Declaration at line 632 of Statement.hpp


Member Function Details

Accept Member Function

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

Definition at line 1330 of Statement.cpp :
1331 {
1332     visitor.Visit(*this);
1333 }


Declaration at line 634 of Statement.hpp

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

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


Clone Member Function

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

Definition at line 1325 of Statement.cpp :
1326 {
1327     return new ParenthesizedConditionalCompilationExpressionNode(GetSpan()static_cast<ConditionalCompilationExpressionNode*>(expr->Clone(cloneContext)));
1328 }


Declaration at line 633 of Statement.hpp

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

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

Called by: sngcm::ast::ParenthesizedConditionalCompilationExpressionNode::Clone


Expr Member Function

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

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

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


Read Member Function

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

Definition at line 1341 of Statement.cpp :
1342 {
1343     ConditionalCompilationExpressionNode::Read(reader);
1344     expr.reset(reader.ReadConditionalCompilationExpressionNode());
1345     expr->SetParent(this);
1346 }


Declaration at line 636 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::ParenthesizedConditionalCompilationExpressionNode::Write(AstWriter & writer) override

Definition at line 1335 of Statement.cpp :
1336 {
1337     ConditionalCompilationExpressionNode::Write(writer);
1338     writer.Write(expr.get());
1339 }


Declaration at line 635 of Statement.hpp

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

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


top | up | prev | next