top | up | prev | next

GotoStatementNode Class

Definition at line 209 of Statement.hpp

Constructors

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

Member Functions

void Accept(Visitor& visitor) override
void Read(Reader& reader) override
const std::u32string& Target() const
void Write(Writer& writer) override

Member Variables

std::u32string target

Constructor Details

GotoStatementNode Constructor

sngcpp::ast::GotoStatementNode::GotoStatementNode()

Definition at line 400 of Statement.cpp :
400 : Node(NodeType::gotoStatementNode)
401 {
402 }


Declaration at line 212 of Statement.hpp


GotoStatementNode Constructor

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

Definition at line 404 of Statement.cpp :
404 : Node(NodeType::gotoStatementNodespan_)target(target_)
405 {
406 }


Declaration at line 213 of Statement.hpp


Member Function Details

Accept Member Function

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

Definition at line 408 of Statement.cpp :
409 {
410     visitor.Visit(*this);
411 }


Declaration at line 214 of Statement.hpp

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

Calls: sngcpp::ast::Visitor::Visit


Read Member Function

void sngcpp::ast::GotoStatementNode::Read(Reader & reader) override

Definition at line 419 of Statement.cpp :
420 {
421     Node::Read(reader);
422     target = reader.GetBinaryReader().ReadUtf32String();
423 }


Declaration at line 216 of Statement.hpp

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

Calls: sngcpp::ast::Node::Read , sngcpp::ast::Reader::GetBinaryReader


Target Member Function

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

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


Write Member Function

void sngcpp::ast::GotoStatementNode::Write(Writer & writer) override

Definition at line 413 of Statement.cpp :
414 {
415     Node::Write(writer);
416     writer.GetBinaryWriter().Write(target);
417 }


Declaration at line 215 of Statement.hpp

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

Calls: sngcpp::ast::GotoStatementNode::Write , sngcpp::ast::Node::Write , sngcpp::ast::Writer::GetBinaryWriter

Called by: sngcpp::ast::GotoStatementNode::Write


top | up | prev | next