top | up | prev | next

WStringLiteralNode Class

Definition at line 256 of Literal.hpp

Constructors

WStringLiteralNode(const Span& span_, const boost::uuids::uuid& moduleId_)
WStringLiteralNode(const Span& span_, const boost::uuids::uuid& moduleId_, const std::u16string& value_)

Member Functions

void Accept(Visitor& visitor) override
Node* Clone(CloneContext& cloneContext) const override
void Read(AstReader& reader) override
std::string ToString() const override
const std::u16string& Value() const
void Write(AstWriter& writer) override

Member Variables

std::u16string value

Constructor Details

WStringLiteralNode Constructor

sngcm::ast::WStringLiteralNode::WStringLiteralNode(const Span& span_, const boost::uuids::uuid& moduleId_)

Definition at line 682 of Literal.cpp :
682 :
683 LiteralNode(NodeType::wstringLiteralNodespan_moduleId_)value()
684 {
685 }


Declaration at line 259 of Literal.hpp


WStringLiteralNode Constructor

sngcm::ast::WStringLiteralNode::WStringLiteralNode(const Span& span_, const boost::uuids::uuid& moduleId_, const std::u16string& value_)

Definition at line 687 of Literal.cpp :
687 :
688 LiteralNode(NodeType::wstringLiteralNodespan_moduleId_)value(value_)
689 {
690 }


Declaration at line 260 of Literal.hpp


Member Function Details

Accept Member Function

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

Definition at line 698 of Literal.cpp :
699 {
700     visitor.Visit(*this);
701 }


Declaration at line 262 of Literal.hpp

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

Calls: sngcm::ast::Visitor::Visit


Clone Member Function

Node * sngcm::ast::WStringLiteralNode::Clone(CloneContext & cloneContext) const override

Definition at line 692 of Literal.cpp :
693 {
694     WStringLiteralNode* clone = new WStringLiteralNode(GetSpan()ModuleId()value);
695     return clone;
696 }


Declaration at line 261 of Literal.hpp

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

Calls: sngcm::ast::Node::GetSpan , sngcm::ast::Node::ModuleId


Read Member Function

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

Definition at line 709 of Literal.cpp :
710 {
711     LiteralNode::Read(reader);
712     value = reader.GetBinaryReader().ReadUtf16String();
713 }


Declaration at line 264 of Literal.hpp

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

Calls: sngcm::ast::AstReader::GetBinaryReader , sngcm::ast::LiteralNode::Read , soulng::util::BinaryReader::ReadUtf16String


ToString Member Function

std::string sngcm::ast::WStringLiteralNode::ToString() const override

Definition at line 715 of Literal.cpp :
716 {
717     return "\"" + StringStr(ToUtf8(value)) + "\"";
718 }


Declaration at line 265 of Literal.hpp

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


Value Member Function

const std::u16string& sngcm::ast::WStringLiteralNode::Value() const

Definition at line 266 of Literal.hpp :
266 { return value; }

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


Write Member Function

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

Definition at line 703 of Literal.cpp :
704 {
705     LiteralNode::Write(writer);
706     writer.GetBinaryWriter().Write(value);
707 }


Declaration at line 263 of Literal.hpp

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

Calls: sngcm::ast::AstWriter::GetBinaryWriter , sngcm::ast::LiteralNode::Write , soulng::util::BinaryWriter::Write


top | up | prev | next