top | up | prev | next

ULongLiteralNode Class

Definition at line 150 of Literal.hpp

Constructors

ULongLiteralNode(const Span& span_)
ULongLiteralNode(const Span& span_, uint64_t value_)

Member Functions

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

Member Variables

uint64_t value

Constructor Details

ULongLiteralNode Constructor

sngcm::ast::ULongLiteralNode::ULongLiteralNode(const Span& span_)

Definition at line 396 of Literal.cpp :
396 : LiteralNode(NodeType::ulongLiteralNodespan_)value(0u)
397 {
398 }


Declaration at line 153 of Literal.hpp


ULongLiteralNode Constructor

sngcm::ast::ULongLiteralNode::ULongLiteralNode(const Span& span_, uint64_t value_)

Definition at line 400 of Literal.cpp :
400 : LiteralNode(NodeType::ulongLiteralNodespan_)value(value_)
401 {
402 }


Declaration at line 154 of Literal.hpp


Member Function Details

Accept Member Function

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

Definition at line 409 of Literal.cpp :
410 {
411     visitor.Visit(*this);
412 }


Declaration at line 156 of Literal.hpp

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

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


Clone Member Function

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

Definition at line 404 of Literal.cpp :
405 {
406     return new ULongLiteralNode(GetSpan()value);
407 }


Declaration at line 155 of Literal.hpp

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

Calls: sngcm::ast::Node::GetSpan


Read Member Function

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

Definition at line 420 of Literal.cpp :
421 {
422     LiteralNode::Read(reader);
423     value = reader.GetBinaryReader().ReadULong();
424 }


Declaration at line 158 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::ReadULong


ToString Member Function

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

Definition at line 426 of Literal.cpp :
427 {
428     return std::to_string(value) + "u";
429 }


Declaration at line 159 of Literal.hpp

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


Value Member Function

uint64_t sngcm::ast::ULongLiteralNode::Value() const

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

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


Write Member Function

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

Definition at line 414 of Literal.cpp :
415 {
416     LiteralNode::Write(writer);
417     writer.GetBinaryWriter().Write(value);
418 }


Declaration at line 157 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