top | up | prev | next

StringLiteralNode Class

Definition at line 98 of Literal.hpp

Constructors

StringLiteralNode()
StringLiteralNode(const Span& span_, const std::u32string& encodingPrefix_, const std::u32string& chars_, const std::u32string& rep_)

Member Functions

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

Member Variables

std::u32string chars
std::u32string encodingPrefix

Constructor Details

StringLiteralNode Constructor

sngcpp::ast::StringLiteralNode::StringLiteralNode()

Definition at line 140 of Literal.cpp :
140 : LiteralNode(NodeType::stringLiteralNode)
141 {
142 }


Declaration at line 101 of Literal.hpp


StringLiteralNode Constructor

sngcpp::ast::StringLiteralNode::StringLiteralNode(const Span& span_, const std::u32string& encodingPrefix_, const std::u32string& chars_, const std::u32string& rep_)

Definition at line 144 of Literal.cpp :
144 :
145 LiteralNode(NodeType::stringLiteralNodespan_rep_)encodingPrefix(encodingPrefix_)chars(chars_)
146 {
147 }


Declaration at line 102 of Literal.hpp


Member Function Details

Accept Member Function

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

Definition at line 149 of Literal.cpp :
150 {
151     visitor.Visit(*this);
152 }


Declaration at line 103 of Literal.hpp

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

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


Chars Member Function

const std::u32string& sngcpp::ast::StringLiteralNode::Chars() const

Definition at line 107 of Literal.hpp :
107 { return chars; }


EncodigPrefix Member Function

const std::u32string& sngcpp::ast::StringLiteralNode::EncodigPrefix() const

Definition at line 106 of Literal.hpp :
106 { return encodingPrefix; }


Read Member Function

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

Definition at line 161 of Literal.cpp :
162 {
163     LiteralNode::Read(reader);
164     encodingPrefix = reader.GetBinaryReader().ReadUtf32String();
165     chars = reader.GetBinaryReader().ReadUtf32String();
166 }


Declaration at line 105 of Literal.hpp

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

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


Write Member Function

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

Definition at line 154 of Literal.cpp :
155 {
156     LiteralNode::Write(writer);
157     writer.GetBinaryWriter().Write(encodingPrefix);
158     writer.GetBinaryWriter().Write(chars);
159 }


Declaration at line 104 of Literal.hpp

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

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

Called by: sngcpp::ast::StringLiteralNode::Write


top | up | prev | next