top | up | prev | next

ParenthesizedConditionalCompilationExpressionNode Class

Definition at line 640 of Statement.hpp

Constructors

ParenthesizedConditionalCompilationExpressionNode(const Span& span_, const boost::uuids::uuid& moduleId_)
ParenthesizedConditionalCompilationExpressionNode(const Span& span_, const boost::uuids::uuid& moduleId_, 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_, const boost::uuids::uuid& moduleId_)

Definition at line 1392 of Statement.cpp :
1392 :
1393 ConditionalCompilationExpressionNode(NodeType::parenthesizedCondCompExpressionNodespan_moduleId_)
1394 {
1395 }


Declaration at line 643 of Statement.hpp


ParenthesizedConditionalCompilationExpressionNode Constructor

sngcm::ast::ParenthesizedConditionalCompilationExpressionNode::ParenthesizedConditionalCompilationExpressionNode(const Span& span_, const boost::uuids::uuid& moduleId_, ConditionalCompilationExpressionNode * expr_)

Definition at line 1397 of Statement.cpp :
1397 :
1398 ConditionalCompilationExpressionNode(NodeType::parenthesizedCondCompExpressionNodespan_moduleId_)expr(expr_)
1399 {
1400 }


Declaration at line 644 of Statement.hpp


Member Function Details

Accept Member Function

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

Definition at line 1408 of Statement.cpp :
1409 {
1410     visitor.Visit(*this);
1411 }


Declaration at line 646 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 1402 of Statement.cpp :
1403 {
1404     ParenthesizedConditionalCompilationExpressionNode* clone = new ParenthesizedConditionalCompilationExpressionNode(GetSpan()ModuleId()static_cast<ConditionalCompilationExpressionNode*>(expr->Clone(cloneContext)));
1405     return clone;
1406 }


Declaration at line 645 of Statement.hpp

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

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

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


Expr Member Function

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

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

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


Read Member Function

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

Definition at line 1419 of Statement.cpp :
1420 {
1421     ConditionalCompilationExpressionNode::Read(reader);
1422     expr.reset(reader.ReadConditionalCompilationExpressionNode());
1423     expr->SetParent(this);
1424 }


Declaration at line 648 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 1413 of Statement.cpp :
1414 {
1415     ConditionalCompilationExpressionNode::Write(writer);
1416     writer.Write(expr.get());
1417 }


Declaration at line 647 of Statement.hpp

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

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


top | up | prev | next