top | up | prev | next

ConditionalCompilationNotNode Class

Definition at line 612 of Statement.hpp

Constructors

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

ConditionalCompilationNotNode Constructor

sngcm::ast::ConditionalCompilationNotNode::ConditionalCompilationNotNode(const Span& span_, const boost::uuids::uuid& moduleId_)

Definition at line 1324 of Statement.cpp :
1324 :
1325 ConditionalCompilationExpressionNode(NodeType::conditionalCompilationNotNodespan_moduleId_)
1326 {
1327 }


Declaration at line 615 of Statement.hpp


ConditionalCompilationNotNode Constructor

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

Definition at line 1329 of Statement.cpp :
1329 :
1330 ConditionalCompilationExpressionNode(NodeType::conditionalCompilationNotNodespan_moduleId_)expr(expr_)
1331 {
1332     expr->SetParent(this);
1333 }


Declaration at line 616 of Statement.hpp


Member Function Details

Accept Member Function

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

Definition at line 1341 of Statement.cpp :
1342 {
1343     visitor.Visit(*this);
1344 }


Declaration at line 618 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 1335 of Statement.cpp :
1336 {
1337     ConditionalCompilationNotNode* clone = new ConditionalCompilationNotNode(GetSpan()ModuleId()static_cast<ConditionalCompilationExpressionNode*>(expr->Clone(cloneContext)));
1338     return clone;
1339 }


Declaration at line 617 of Statement.hpp

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

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

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


Expr Member Function

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

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

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


Read Member Function

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

Definition at line 1352 of Statement.cpp :
1353 {
1354     ConditionalCompilationExpressionNode::Read(reader);
1355     expr.reset(reader.ReadConditionalCompilationExpressionNode());
1356     expr->SetParent(this);
1357 }


Declaration at line 620 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 1346 of Statement.cpp :
1347 {
1348     ConditionalCompilationExpressionNode::Write(writer);
1349     writer.Write(expr.get());
1350 }


Declaration at line 619 of Statement.hpp

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

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


top | up | prev | next