top | up | prev | next

UsingDirectiveNode Class

Definition at line 46 of Declaration.hpp

Constructors

UsingDirectiveNode()
UsingDirectiveNode(const Span& span_, Node* namespaceName_)

Member Functions

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

Member Variables

std::unique_ptr<Node> namespaceName

Constructor Details

UsingDirectiveNode Constructor

sngcpp::ast::UsingDirectiveNode::UsingDirectiveNode()

Definition at line 79 of Declaration.cpp :
 79 : Node(NodeType::usingDirectiveNode)
 80 {
 81 }


Declaration at line 49 of Declaration.hpp


UsingDirectiveNode Constructor

sngcpp::ast::UsingDirectiveNode::UsingDirectiveNode(const Span& span_, Node * namespaceName_)

Definition at line 83 of Declaration.cpp :
 83 : Node(NodeType::usingDirectiveNodespan_)namespaceName(namespaceName_)
 84 {
 85 }


Declaration at line 50 of Declaration.hpp


Member Function Details

Accept Member Function

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

Definition at line 87 of Declaration.cpp :
 88 {
 89     visitor.Visit(*this);
 90 }


Declaration at line 51 of Declaration.hpp

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

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


NamespaceName Member Function

Node * sngcpp::ast::UsingDirectiveNode::NamespaceName()

Definition at line 54 of Declaration.hpp :
 54 { return namespaceName.get(); }


Read Member Function

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

Definition at line 98 of Declaration.cpp :
 99 {
100     Node::Read(reader);
101     namespaceName.reset(reader.ReadNode());
102 }


Declaration at line 53 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::UsingDirectiveNode::Write(Writer & writer) override

Definition at line 92 of Declaration.cpp :
 93 {
 94     Node::Write(writer);
 95     namespaceName->Write(writer);
 96 }


Declaration at line 52 of Declaration.hpp

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

Calls: sngcpp::ast::Node::Write , sngcpp::ast::UsingDirectiveNode::Write

Called by: sngcpp::ast::UsingDirectiveNode::Write


top | up | prev | next