top | up | prev | next

EnumeratorNode Class

Definition at line 46 of Enumeration.hpp

Constructors

EnumeratorNode()
EnumeratorNode(const Span& span_, const std::u32string& enumerator_, Node* value_, const std::u32string& valueStr_)

Member Functions

void Accept(Visitor& visitor) override
const Span& AssignmentSignSpan() const
const std::u32string& Enumerator() const
void Read(Reader& reader) override
void SetAssignmentSignSpan(const Span& assignmentSignSpan_)
Node* Value()
const std::u32string& ValueStr() const
void Write(Writer& writer) override

Member Variables

Span assignmentSignSpan
std::u32string enumerator
std::unique_ptr<Node> value
std::u32string valueStr

Constructor Details

EnumeratorNode Constructor

sngcpp::ast::EnumeratorNode::EnumeratorNode()

Definition at line 87 of Enumeration.cpp :
 87 : Node(NodeType::enumeratorNode)
 88 {
 89 }


Declaration at line 49 of Enumeration.hpp


EnumeratorNode Constructor

sngcpp::ast::EnumeratorNode::EnumeratorNode(const Span& span_, const std::u32string& enumerator_, Node * value_, const std::u32string& valueStr_)

Definition at line 91 of Enumeration.cpp :
 91 :
 92 Node(NodeType::enumeratorNodespan_)enumerator(enumerator_)value(value_)valueStr(valueStr_)
 93 {
 94 }


Declaration at line 50 of Enumeration.hpp


Member Function Details

Accept Member Function

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

Definition at line 96 of Enumeration.cpp :
 97 {
 98     visitor.Visit(*this);
 99 }


Declaration at line 51 of Enumeration.hpp

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

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


AssignmentSignSpan Member Function

const Span& sngcpp::ast::EnumeratorNode::AssignmentSignSpan() const

Definition at line 58 of Enumeration.hpp :
58 { return assignmentSignSpan; }


Enumerator Member Function

const std::u32string& sngcpp::ast::EnumeratorNode::Enumerator() const

Definition at line 54 of Enumeration.hpp :
54 { return enumerator; }


Read Member Function

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

Definition at line 114 of Enumeration.cpp
Declaration at line 53 of Enumeration.hpp

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

Calls: sngcpp::ast::Node::Read , sngcpp::ast::Reader::GetBinaryReader , sngcpp::ast::Reader::Read , sngcpp::ast::Reader::ReadNode


SetAssignmentSignSpan Member Function

void sngcpp::ast::EnumeratorNode::SetAssignmentSignSpan(const Span& assignmentSignSpan_)

Definition at line 57 of Enumeration.hpp :
57 { assignmentSignSpan = assignmentSignSpan_; }


Value Member Function

Node * sngcpp::ast::EnumeratorNode::Value()

Definition at line 55 of Enumeration.hpp :
55 { return value.get(); }


ValueStr Member Function

const std::u32string& sngcpp::ast::EnumeratorNode::ValueStr() const

Definition at line 56 of Enumeration.hpp :
56 { return valueStr; }


Write Member Function

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

Definition at line 101 of Enumeration.cpp
Declaration at line 52 of Enumeration.hpp

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

Calls: sngcpp::ast::EnumeratorNode::Write , sngcpp::ast::Node::Write , sngcpp::ast::Writer::GetBinaryWriter , sngcpp::ast::Writer::Write

Called by: sngcpp::ast::EnumeratorNode::Write


top | up | prev | next