top
|
up
|
prev
|
next
LiteralNode Abstract Class
Definition at line
13
of
Literal.hpp
Constructors
LiteralNode
(
NodeType
nodeType_,
const
Span& span_)
Member Functions
void
Read
(
AstReader
& reader)
override
void
SetText
(
const
std::u32string& text_)
const
std::u32string&
Text
()
const
void
Write
(
AstWriter
& writer)
override
Member Variables
std::u32string
text
Constructor Details
LiteralNode Constructor
sngcm::ast::LiteralNode::LiteralNode(
NodeType
nodeType_,
const
Span& span_)
Definition at line
19
of
Literal.cpp
:
19
:
Node
(
nodeType_
,
span_
)
20
{
21
}
Declaration at line
16
of
Literal.hpp
Member Function Details
Read Member Function
void
sngcm::ast::LiteralNode::Read(
AstReader
& reader)
override
Definition at line
29
of
Literal.cpp
:
30
{
31
Node
::
Read
(
reader
)
;
32
text
=
reader
.
GetBinaryReader
(
)
.
ReadUtf32String
(
)
;
33
}
Declaration at line
18
of
Literal.hpp
Base class overridden functions:
sngcm::ast::Node::Read
Derived class overrides:
sngcm::ast::ArrayLiteralNode::Read
,
sngcm::ast::BooleanLiteralNode::Read
,
sngcm::ast::ByteLiteralNode::Read
,
sngcm::ast::CharLiteralNode::Read
,
sngcm::ast::DoubleLiteralNode::Read
,
sngcm::ast::FloatLiteralNode::Read
,
sngcm::ast::IntLiteralNode::Read
,
sngcm::ast::LongLiteralNode::Read
,
sngcm::ast::SByteLiteralNode::Read
,
sngcm::ast::ShortLiteralNode::Read
,
sngcm::ast::StringLiteralNode::Read
,
sngcm::ast::StructuredLiteralNode::Read
,
sngcm::ast::UCharLiteralNode::Read
,
sngcm::ast::UIntLiteralNode::Read
,
sngcm::ast::ULongLiteralNode::Read
,
sngcm::ast::UShortLiteralNode::Read
,
sngcm::ast::UStringLiteralNode::Read
,
sngcm::ast::UuidLiteralNode::Read
,
sngcm::ast::WCharLiteralNode::Read
,
sngcm::ast::WStringLiteralNode::Read
Calls:
sngcm::ast::AstReader::GetBinaryReader
,
sngcm::ast::Node::Read
,
soulng::util::BinaryReader::ReadUtf32String
Called by:
sngcm::ast::ArrayLiteralNode::Read
,
sngcm::ast::BooleanLiteralNode::Read
,
sngcm::ast::ByteLiteralNode::Read
,
sngcm::ast::CharLiteralNode::Read
,
sngcm::ast::DoubleLiteralNode::Read
,
sngcm::ast::FloatLiteralNode::Read
,
sngcm::ast::IntLiteralNode::Read
,
sngcm::ast::LongLiteralNode::Read
,
sngcm::ast::SByteLiteralNode::Read
,
sngcm::ast::ShortLiteralNode::Read
,
sngcm::ast::StringLiteralNode::Read
,
sngcm::ast::StructuredLiteralNode::Read
,
sngcm::ast::UCharLiteralNode::Read
,
sngcm::ast::UIntLiteralNode::Read
,
sngcm::ast::ULongLiteralNode::Read
,
sngcm::ast::UShortLiteralNode::Read
,
sngcm::ast::UStringLiteralNode::Read
,
sngcm::ast::UuidLiteralNode::Read
,
sngcm::ast::WCharLiteralNode::Read
,
sngcm::ast::WStringLiteralNode::Read
SetText Member Function
void
sngcm::ast::LiteralNode::SetText(
const
std::u32string& text_)
Definition at line
35
of
Literal.cpp
:
36
{
37
text
=
text_
;
38
}
Declaration at line
19
of
Literal.hpp
Text Member Function
const
std::u32string& sngcm::ast::LiteralNode::Text()
const
Definition at line
20
of
Literal.hpp
:
20
{
return
text
;
}
Write Member Function
void
sngcm::ast::LiteralNode::Write(
AstWriter
& writer)
override
Definition at line
23
of
Literal.cpp
:
24
{
25
Node
::
Write
(
writer
)
;
26
writer
.
GetBinaryWriter
(
)
.
Write
(
text
)
;
27
}
Declaration at line
17
of
Literal.hpp
Base class overridden functions:
sngcm::ast::Node::Write
Derived class overrides:
sngcm::ast::ArrayLiteralNode::Write
,
sngcm::ast::BooleanLiteralNode::Write
,
sngcm::ast::ByteLiteralNode::Write
,
sngcm::ast::CharLiteralNode::Write
,
sngcm::ast::DoubleLiteralNode::Write
,
sngcm::ast::FloatLiteralNode::Write
,
sngcm::ast::IntLiteralNode::Write
,
sngcm::ast::LongLiteralNode::Write
,
sngcm::ast::SByteLiteralNode::Write
,
sngcm::ast::ShortLiteralNode::Write
,
sngcm::ast::StringLiteralNode::Write
,
sngcm::ast::StructuredLiteralNode::Write
,
sngcm::ast::UCharLiteralNode::Write
,
sngcm::ast::UIntLiteralNode::Write
,
sngcm::ast::ULongLiteralNode::Write
,
sngcm::ast::UShortLiteralNode::Write
,
sngcm::ast::UStringLiteralNode::Write
,
sngcm::ast::UuidLiteralNode::Write
,
sngcm::ast::WCharLiteralNode::Write
,
sngcm::ast::WStringLiteralNode::Write
Calls:
sngcm::ast::AstWriter::GetBinaryWriter
,
sngcm::ast::Node::Write
,
soulng::util::BinaryWriter::Write
Called by:
sngcm::ast::ArrayLiteralNode::Write
,
sngcm::ast::BooleanLiteralNode::Write
,
sngcm::ast::ByteLiteralNode::Write
,
sngcm::ast::CharLiteralNode::Write
,
sngcm::ast::DoubleLiteralNode::Write
,
sngcm::ast::FloatLiteralNode::Write
,
sngcm::ast::IntLiteralNode::Write
,
sngcm::ast::LongLiteralNode::Write
,
sngcm::ast::SByteLiteralNode::Write
,
sngcm::ast::ShortLiteralNode::Write
,
sngcm::ast::StringLiteralNode::Write
,
sngcm::ast::StructuredLiteralNode::Write
,
sngcm::ast::UCharLiteralNode::Write
,
sngcm::ast::UIntLiteralNode::Write
,
sngcm::ast::ULongLiteralNode::Write
,
sngcm::ast::UShortLiteralNode::Write
,
sngcm::ast::UStringLiteralNode::Write
,
sngcm::ast::UuidLiteralNode::Write
,
sngcm::ast::WCharLiteralNode::Write
,
sngcm::ast::WStringLiteralNode::Write
top
|
up
|
prev
|
next