top | up | prev | next

IdentifierNode Class

Definition at line 356 of Expression.hpp

Constructors

IdentifierNode()
IdentifierNode(NodeType nodeType_)
IdentifierNode(NodeType nodeType_, const Span& span_, const std::u32string& identifier_)
IdentifierNode(const Span& span_, const std::u32string& identifier_)

Member Functions

void Accept(Visitor& visitor) override
const std::u32string& Identifier() const
bool IsIdentifierNode() const override
void Read(Reader& reader) override
void Write(Writer& writer) override

Member Variables

std::u32string identifier

Constructor Details

IdentifierNode Constructor

sngcpp::ast::IdentifierNode::IdentifierNode()

Definition at line 695 of Expression.cpp :
 695 : Node(NodeType::identifierNode)
 696 {
 697 }


Declaration at line 359 of Expression.hpp


IdentifierNode Constructor

sngcpp::ast::IdentifierNode::IdentifierNode(NodeType nodeType_)

Definition at line 699 of Expression.cpp :
 699 : Node(nodeType_)
 700 {
 701 }


Declaration at line 360 of Expression.hpp


IdentifierNode Constructor

sngcpp::ast::IdentifierNode::IdentifierNode(NodeType nodeType_, const Span& span_, const std::u32string& identifier_)

Definition at line 707 of Expression.cpp :
 707 : Node(nodeType_span_)identifier(identifier_)
 708 {
 709 }


Declaration at line 362 of Expression.hpp


IdentifierNode Constructor

sngcpp::ast::IdentifierNode::IdentifierNode(const Span& span_, const std::u32string& identifier_)

Definition at line 703 of Expression.cpp :
 703 : Node(NodeType::identifierNodespan_)identifier(identifier_)
 704 {
 705 }


Declaration at line 361 of Expression.hpp


Member Function Details

Accept Member Function

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

Definition at line 711 of Expression.cpp :
 712 {
 713     visitor.Visit(*this);
 714 }


Declaration at line 363 of Expression.hpp

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

Derived class overrides: sngcpp::ast::ConversionFunctionIdNode::Accept , sngcpp::ast::DtorIdNode::Accept , sngcpp::ast::OperatorFunctionIdNode::Accept

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


Identifier Member Function

const std::u32string& sngcpp::ast::IdentifierNode::Identifier() const

Definition at line 367 of Expression.hpp :
367 { return identifier; }


IsIdentifierNode Member Function

bool sngcpp::ast::IdentifierNode::IsIdentifierNode() const override

Definition at line 366 of Expression.hpp :
366 { return true; }

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


Read Member Function

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

Definition at line 722 of Expression.cpp :
 723 {
 724     Node::Read(reader);
 725     identifier = reader.GetBinaryReader().ReadUtf32String();
 726 }


Declaration at line 365 of Expression.hpp

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

Derived class overrides: sngcpp::ast::ConversionFunctionIdNode::Read , sngcpp::ast::OperatorFunctionIdNode::Read

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

Called by: sngcpp::ast::ConversionFunctionIdNode::Read , sngcpp::ast::OperatorFunctionIdNode::Read


Write Member Function

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

Definition at line 716 of Expression.cpp :
 717 {
 718     Node::Write(writer);
 719     writer.GetBinaryWriter().Write(identifier);
 720 }


Declaration at line 364 of Expression.hpp

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

Derived class overrides: sngcpp::ast::ConversionFunctionIdNode::Write , sngcpp::ast::OperatorFunctionIdNode::Write

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

Called by: sngcpp::ast::ConversionFunctionIdNode::Write , sngcpp::ast::IdentifierNode::Write , sngcpp::ast::OperatorFunctionIdNode::Write


top | up | prev | next