top | up | prev | next

LabeledStatementNode Class

Definition at line 13 of Statement.hpp

Constructors

LabeledStatementNode()
LabeledStatementNode(const Span& span_, const std::u32string& label_, Node* statement_)

Member Functions

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

Member Variables

std::u32string label

Constructor Details

LabeledStatementNode Constructor

sngcpp::ast::LabeledStatementNode::LabeledStatementNode()

Definition at line 13 of Statement.cpp :
 13 : UnaryNode(NodeType::labeledStatementNode)
 14 {
 15 }


Declaration at line 16 of Statement.hpp


LabeledStatementNode Constructor

sngcpp::ast::LabeledStatementNode::LabeledStatementNode(const Span& span_, const std::u32string& label_, Node * statement_)

Definition at line 17 of Statement.cpp :
 17 : UnaryNode(NodeType::labeledStatementNodespan_statement_)label(label_)
 18 {
 19 }


Declaration at line 17 of Statement.hpp


Member Function Details

Accept Member Function

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

Definition at line 21 of Statement.cpp :
 22 {
 23     visitor.Visit(*this);
 24 }


Declaration at line 18 of Statement.hpp

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

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


Label Member Function

const std::u32string& sngcpp::ast::LabeledStatementNode::Label() const

Definition at line 21 of Statement.hpp :
 21 { return label; }


Read Member Function

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

Definition at line 32 of Statement.cpp :
 33 {
 34     UnaryNode::Read(reader);
 35     label = reader.GetBinaryReader().ReadUtf32String();
 36 }


Declaration at line 20 of Statement.hpp

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

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


Write Member Function

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

Definition at line 26 of Statement.cpp :
 27 {
 28     UnaryNode::Write(writer);
 29     writer.GetBinaryWriter().Write(label);
 30 }


Declaration at line 19 of Statement.hpp

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

Calls: sngcpp::ast::LabeledStatementNode::Write , sngcpp::ast::UnaryNode::Write , sngcpp::ast::Writer::GetBinaryWriter

Called by: sngcpp::ast::LabeledStatementNode::Write


top | up | prev | next