top | up | prev | next

UsingDeclarationNode Class

Definition at line 59 of Declaration.hpp

Constructors

UsingDeclarationNode()
UsingDeclarationNode(const Span& span_, Node* qualifiedId_)

Member Functions

void Accept(Visitor& visitor) override
Node* QualifiedId()
void Read(Reader& reader) override
void Write(Writer& writer) override

Member Variables

std::unique_ptr<Node> qualifiedId

Constructor Details

UsingDeclarationNode Constructor

sngcpp::ast::UsingDeclarationNode::UsingDeclarationNode()

Definition at line 104 of Declaration.cpp :
104 : Node(NodeType::usingDeclarationNode)
105 {
106 }


Declaration at line 62 of Declaration.hpp


UsingDeclarationNode Constructor

sngcpp::ast::UsingDeclarationNode::UsingDeclarationNode(const Span& span_, Node * qualifiedId_)

Definition at line 108 of Declaration.cpp :
108 : Node(NodeType::usingDeclarationNodespan_)qualifiedId(qualifiedId_)
109 {
110 }


Declaration at line 63 of Declaration.hpp


Member Function Details

Accept Member Function

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

Definition at line 112 of Declaration.cpp :
113 {
114     visitor.Visit(*this);
115 }


Declaration at line 64 of Declaration.hpp

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

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


QualifiedId Member Function

Node * sngcpp::ast::UsingDeclarationNode::QualifiedId()

Definition at line 67 of Declaration.hpp :
 67 { return qualifiedId.get(); }


Read Member Function

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

Definition at line 123 of Declaration.cpp :
124 {
125     Node::Read(reader);
126     qualifiedId.reset(reader.ReadNode());
127 }


Declaration at line 66 of Declaration.hpp

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

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


Write Member Function

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

Definition at line 117 of Declaration.cpp :
118 {
119     Node::Write(writer);
120     qualifiedId->Write(writer);
121 }


Declaration at line 65 of Declaration.hpp

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

Calls: sngcpp::ast::Node::Write , sngcpp::ast::UsingDeclarationNode::Write

Called by: sngcpp::ast::UsingDeclarationNode::Write


top | up | prev | next