top | up | prev | next

GotoStatementNode Class

Definition at line 236 of Statement.hpp

Constructors

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

Definition at line 453 of Statement.cpp :
 453 : StatementNode(NodeType::gotoStatementNodespan_)
 454 {
 455 }


Declaration at line 239 of Statement.hpp


GotoStatementNode Constructor

sngcm::ast::GotoStatementNode::GotoStatementNode(const Span& span_, const std::u32string& target_)

Definition at line 457 of Statement.cpp :
 457 : StatementNode(NodeType::gotoStatementNodespan_)target(target_)
 458 {
 459 }


Declaration at line 240 of Statement.hpp


Member Function Details

Accept Member Function

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

Definition at line 467 of Statement.cpp :
 468 {
 469     visitor.Visit(*this);
 470 }


Declaration at line 242 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 461 of Statement.cpp :
 462 {
 463     GotoStatementNode* clone = new GotoStatementNode(GetSpan()target);
 464     return clone;
 465 }


Declaration at line 241 of Statement.hpp

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

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


Read Member Function

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

Definition at line 478 of Statement.cpp :
 479 {
 480     StatementNode::Read(reader);
 481     target = reader.GetBinaryReader().ReadUtf32String();
 482 }


Declaration at line 244 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 245 of Statement.hpp :
245 { return target; }

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


Write Member Function

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

Definition at line 472 of Statement.cpp :
 473 {
 474     StatementNode::Write(writer);
 475     writer.GetBinaryWriter().Write(target);
 476 }


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