top | up | prev | next

ConditionalCompilationPrimaryNode Class

Definition at line 626 of Statement.hpp

Constructors

ConditionalCompilationPrimaryNode(const Span& span_, const boost::uuids::uuid& moduleId_)
ConditionalCompilationPrimaryNode(const Span& span_, const boost::uuids::uuid& moduleId_, const std::u32string& symbol_)

Member Functions

void Accept(Visitor& visitor) override
Node* Clone(CloneContext& cloneContext) const override
void Read(AstReader& reader) override
const std::u32string& Symbol() const
void Write(AstWriter& writer) override

Member Variables

std::u32string symbol

Constructor Details

ConditionalCompilationPrimaryNode Constructor

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

Definition at line 1359 of Statement.cpp :
1359 :
1360 ConditionalCompilationExpressionNode(NodeType::conditionalCompilationPrimaryNodespan_moduleId_)
1361 {
1362 }


Declaration at line 629 of Statement.hpp


ConditionalCompilationPrimaryNode Constructor

sngcm::ast::ConditionalCompilationPrimaryNode::ConditionalCompilationPrimaryNode(const Span& span_, const boost::uuids::uuid& moduleId_, const std::u32string& symbol_)

Definition at line 1364 of Statement.cpp :
1364 :
1365 ConditionalCompilationExpressionNode(NodeType::conditionalCompilationPrimaryNodespan_moduleId_)symbol(symbol_)
1366 {
1367 }


Declaration at line 630 of Statement.hpp


Member Function Details

Accept Member Function

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

Definition at line 1375 of Statement.cpp :
1376 {
1377     visitor.Visit(*this);
1378 }


Declaration at line 632 of Statement.hpp

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

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


Clone Member Function

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

Definition at line 1369 of Statement.cpp :
1370 {
1371     ConditionalCompilationPrimaryNode* clone = new ConditionalCompilationPrimaryNode(GetSpan()ModuleId()symbol);
1372     return clone;
1373 }


Declaration at line 631 of Statement.hpp

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

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


Read Member Function

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

Definition at line 1386 of Statement.cpp :
1387 {
1388     ConditionalCompilationExpressionNode::Read(reader);
1389     symbol = reader.GetBinaryReader().ReadUtf32String();
1390 }


Declaration at line 634 of Statement.hpp

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

Calls: sngcm::ast::AstReader::GetBinaryReader , sngcm::ast::Node::Read , soulng::util::BinaryReader::ReadUtf32String


Symbol Member Function

const std::u32string& sngcm::ast::ConditionalCompilationPrimaryNode::Symbol() const

Definition at line 635 of Statement.hpp :
635 { return symbol; }

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


Write Member Function

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

Definition at line 1380 of Statement.cpp :
1381 {
1382     ConditionalCompilationExpressionNode::Write(writer);
1383     writer.GetBinaryWriter().Write(symbol);
1384 }


Declaration at line 633 of Statement.hpp

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

Calls: sngcm::ast::AstWriter::GetBinaryWriter , sngcm::ast::Node::Write , soulng::util::BinaryWriter::Write


top | up | prev | next