top | up | prev | next

GotoStatementNode Class

Definition at line 248 of Statement.hpp

Constructors

GotoStatementNode(const Span& span_, const boost::uuids::uuid& moduleId_)
GotoStatementNode(const Span& span_, const boost::uuids::uuid& moduleId_, const std::u32string& target_)

Member Functions

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

Member Variables

std::u32string target

Constructor Details

GotoStatementNode Constructor

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

Definition at line 488 of Statement.cpp :
 488 :
 489 StatementNode(NodeType::gotoStatementNodespan_moduleId_)
 490 {
 491 }


Declaration at line 251 of Statement.hpp


GotoStatementNode Constructor

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

Definition at line 493 of Statement.cpp :
 493 :
 494 StatementNode(NodeType::gotoStatementNodespan_moduleId_)target(target_)
 495 {
 496 }


Declaration at line 252 of Statement.hpp


Member Function Details

Accept Member Function

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

Definition at line 504 of Statement.cpp :
 505 {
 506     visitor.Visit(*this);
 507 }


Declaration at line 254 of Statement.hpp

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

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


Clone Member Function

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

Definition at line 498 of Statement.cpp :
 499 {
 500     GotoStatementNode* clone = new GotoStatementNode(GetSpan()ModuleId()target);
 501     return clone;
 502 }


Declaration at line 253 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::GotoStatementNode::Read(AstReader & reader) override

Definition at line 515 of Statement.cpp :
 516 {
 517     StatementNode::Read(reader);
 518     target = reader.GetBinaryReader().ReadUtf32String();
 519 }


Declaration at line 256 of Statement.hpp

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

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


Target Member Function

const std::u32string& sngcm::ast::GotoStatementNode::Target() const

Definition at line 257 of Statement.hpp :
257 { return target; }

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


Write Member Function

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

Definition at line 509 of Statement.cpp :
 510 {
 511     StatementNode::Write(writer);
 512     writer.GetBinaryWriter().Write(target);
 513 }


Declaration at line 255 of Statement.hpp

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

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


top | up | prev | next