top | up | prev | next

CharacterLiteralNode Class

Definition at line 83 of Literal.hpp

Constructors

CharacterLiteralNode()
CharacterLiteralNode(const Span& span_, char32_t prefix_, char32_t chr_, const std::u32string& rep_)

Member Functions

void Accept(Visitor& visitor) override
char32_t Chr() const
char32_t Prefix() const
void Read(Reader& reader) override
void Write(Writer& writer) override

Member Variables

char32_t chr
char32_t prefix

Constructor Details

CharacterLiteralNode Constructor

sngcpp::ast::CharacterLiteralNode::CharacterLiteralNode()

Definition at line 112 of Literal.cpp :
112 : LiteralNode(NodeType::characterLiteralNode)
113 {
114 }


Declaration at line 86 of Literal.hpp


CharacterLiteralNode Constructor

sngcpp::ast::CharacterLiteralNode::CharacterLiteralNode(const Span& span_, char32_t prefix_, char32_t chr_, const std::u32string& rep_)

Definition at line 116 of Literal.cpp :
116 :
117 LiteralNode(NodeType::characterLiteralNodespan_rep_)prefix(prefix_)chr(chr_)
118 {
119 }


Declaration at line 87 of Literal.hpp


Member Function Details

Accept Member Function

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

Definition at line 121 of Literal.cpp :
122 {
123     visitor.Visit(*this);
124 }


Declaration at line 88 of Literal.hpp

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

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


Chr Member Function

char32_t sngcpp::ast::CharacterLiteralNode::Chr() const

Definition at line 92 of Literal.hpp :
 92 { return chr; }


Prefix Member Function

char32_t sngcpp::ast::CharacterLiteralNode::Prefix() const

Definition at line 91 of Literal.hpp :
 91 { return prefix; }


Read Member Function

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

Definition at line 133 of Literal.cpp :
134 {
135     LiteralNode::Read(reader);
136     prefix = reader.GetBinaryReader().ReadUChar();
137     chr = reader.GetBinaryReader().ReadUChar();
138 }


Declaration at line 90 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::CharacterLiteralNode::Write(Writer & writer) override

Definition at line 126 of Literal.cpp :
127 {
128     LiteralNode::Write(writer);
129     writer.GetBinaryWriter().Write(prefix);
130     writer.GetBinaryWriter().Write(chr);
131 }


Declaration at line 89 of Literal.hpp

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

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

Called by: sngcpp::ast::CharacterLiteralNode::Write


top | up | prev | next