top | up | prev | next

LiteralNode Abstract Class

Definition at line 39 of Literal.hpp

Constructors

LiteralNode(NodeType nodeType_)
LiteralNode(NodeType nodeType_, const Span& span_, const std::u32string& rep_)

Member Functions

void Read(Reader& reader) override
const std::u32string& Rep() const
void Write(Writer& writer) override

Member Variables

std::u32string rep

Constructor Details

LiteralNode Constructor

sngcpp::ast::LiteralNode::LiteralNode(NodeType nodeType_)

Definition at line 35 of Literal.cpp :
 35 : Node(nodeType_)
 36 {
 37 }


Declaration at line 42 of Literal.hpp


LiteralNode Constructor

sngcpp::ast::LiteralNode::LiteralNode(NodeType nodeType_, const Span& span_, const std::u32string& rep_)

Definition at line 39 of Literal.cpp :
 39 : Node(nodeType_span_)rep(rep_)
 40 {
 41 }


Declaration at line 43 of Literal.hpp


Member Function Details

Read Member Function

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

Definition at line 49 of Literal.cpp :
 50 {
 51     Node::Read(reader);
 52     rep = reader.GetBinaryReader().ReadUtf32String();
 53 }


Declaration at line 45 of Literal.hpp

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

Derived class overrides: sngcpp::ast::BooleanLiteralNode::Read , sngcpp::ast::CharacterLiteralNode::Read , sngcpp::ast::FloatingLiteralNode::Read , sngcpp::ast::IntegerLiteralNode::Read , sngcpp::ast::StringLiteralNode::Read

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

Called by: sngcpp::ast::BooleanLiteralNode::Read , sngcpp::ast::CharacterLiteralNode::Read , sngcpp::ast::FloatingLiteralNode::Read , sngcpp::ast::IntegerLiteralNode::Read , sngcpp::ast::StringLiteralNode::Read


Rep Member Function

const std::u32string& sngcpp::ast::LiteralNode::Rep() const

Definition at line 46 of Literal.hpp :
 46 { return rep; }


Write Member Function

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

Definition at line 43 of Literal.cpp :
 44 {
 45     Node::Write(writer);
 46     writer.GetBinaryWriter().Write(rep);
 47 }


Declaration at line 44 of Literal.hpp

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

Derived class overrides: sngcpp::ast::BooleanLiteralNode::Write , sngcpp::ast::CharacterLiteralNode::Write , sngcpp::ast::FloatingLiteralNode::Write , sngcpp::ast::IntegerLiteralNode::Write , sngcpp::ast::StringLiteralNode::Write

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

Called by: sngcpp::ast::BooleanLiteralNode::Write , sngcpp::ast::CharacterLiteralNode::Write , sngcpp::ast::FloatingLiteralNode::Write , sngcpp::ast::IntegerLiteralNode::Write , sngcpp::ast::LiteralNode::Write , sngcpp::ast::StringLiteralNode::Write


top | up | prev | next