top | up | prev | next

NamespaceImportNode Class

Definition at line 69 of Namespace.hpp

Constructors

NamespaceImportNode(const Span& span_, const boost::uuids::uuid& moduleId_)
NamespaceImportNode(const Span& span_, const boost::uuids::uuid& moduleId_, IdentifierNode* ns_)

Member Functions

void Accept(Visitor& visitor) override
Node* Clone(CloneContext& cloneContext) const override
IdentifierNode* Ns() const
void Read(AstReader& reader) override
void Write(AstWriter& writer) override

Member Variables

std::unique_ptr<IdentifierNode> ns

Constructor Details

NamespaceImportNode Constructor

sngcm::ast::NamespaceImportNode::NamespaceImportNode(const Span& span_, const boost::uuids::uuid& moduleId_)

Definition at line 158 of Namespace.cpp :
158 : Node(NodeType::namespaceImportNodespan_moduleId_)ns()
159 {
160 }


Declaration at line 72 of Namespace.hpp


NamespaceImportNode Constructor

sngcm::ast::NamespaceImportNode::NamespaceImportNode(const Span& span_, const boost::uuids::uuid& moduleId_, IdentifierNode * ns_)

Definition at line 162 of Namespace.cpp :
162 : Node(NodeType::namespaceImportNodespan_moduleId_)ns(ns_)
163 {
164     ns->SetParent(this);
165 }


Declaration at line 73 of Namespace.hpp


Member Function Details

Accept Member Function

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

Definition at line 173 of Namespace.cpp :
174 {
175     visitor.Visit(*this);
176 }


Declaration at line 75 of Namespace.hpp

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

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


Clone Member Function

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

Definition at line 167 of Namespace.cpp :
168 {
169     NamespaceImportNode* clone = new NamespaceImportNode(GetSpan()ModuleId()static_cast<IdentifierNode*>(ns->Clone(cloneContext)));
170     return clone;
171 }


Declaration at line 74 of Namespace.hpp

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

Calls: sngcm::ast::NamespaceImportNode::Clone , sngcm::ast::Node::GetSpan , sngcm::ast::Node::ModuleId

Called by: sngcm::ast::NamespaceImportNode::Clone


Ns Member Function

IdentifierNode * sngcm::ast::NamespaceImportNode::Ns() const

Definition at line 191 of Namespace.cpp :
192 {
193     return ns.get();
194 }


Declaration at line 78 of Namespace.hpp

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


Read Member Function

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

Definition at line 184 of Namespace.cpp :
185 {
186     Node::Read(reader);
187     ns.reset(reader.ReadIdentifierNode());
188     ns->SetParent(this);
189 }


Declaration at line 77 of Namespace.hpp

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

Calls: sngcm::ast::AstReader::ReadIdentifierNode , sngcm::ast::Node::Read , sngcm::ast::Node::SetParent


Write Member Function

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

Definition at line 178 of Namespace.cpp :
179 {
180     Node::Write(writer);
181     writer.Write(ns.get());
182 }


Declaration at line 76 of Namespace.hpp

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

Calls: sngcm::ast::Node::Write


top | up | prev | next