top | up | prev | next

ConditionalCompilationPrimaryNode Class

Definition at line 614 of Statement.hpp

Constructors

ConditionalCompilationPrimaryNode(const Span& span_)
ConditionalCompilationPrimaryNode(const Span& span_, 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_)

Definition at line 1284 of Statement.cpp :
1284 : ConditionalCompilationExpressionNode(NodeType::conditionalCompilationPrimaryNodespan_)
1285 {
1286 }


Declaration at line 617 of Statement.hpp


ConditionalCompilationPrimaryNode Constructor

sngcm::ast::ConditionalCompilationPrimaryNode::ConditionalCompilationPrimaryNode(const Span& span_, const std::u32string& symbol_)

Definition at line 1288 of Statement.cpp :
1288 :
1289 ConditionalCompilationExpressionNode(NodeType::conditionalCompilationPrimaryNodespan_)symbol(symbol_)
1290 {
1291 }


Declaration at line 618 of Statement.hpp


Member Function Details

Accept Member Function

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

Definition at line 1298 of Statement.cpp :
1299 {
1300     visitor.Visit(*this);
1301 }


Declaration at line 620 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 1293 of Statement.cpp :
1294 {
1295     return new ConditionalCompilationPrimaryNode(GetSpan()symbol);
1296 }


Declaration at line 619 of Statement.hpp

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

Calls: sngcm::ast::Node::GetSpan


Read Member Function

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

Definition at line 1309 of Statement.cpp :
1310 {
1311     ConditionalCompilationExpressionNode::Read(reader);
1312     symbol = reader.GetBinaryReader().ReadUtf32String();
1313 }


Declaration at line 622 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 623 of Statement.hpp :
623 { return symbol; }

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


Write Member Function

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

Definition at line 1303 of Statement.cpp :
1304 {
1305     ConditionalCompilationExpressionNode::Write(writer);
1306     writer.GetBinaryWriter().Write(symbol);
1307 }


Declaration at line 621 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