top | up | prev | next

VoidNode Class

Definition at line 142 of BasicType.hpp

Constructors

VoidNode(const Span& span_)

Member Functions

void Accept(Visitor& visitor) override
Node* Clone(CloneContext& cloneContext) const override
std::string ToString() const override

Constructor Details

VoidNode Constructor

sngcm::ast::VoidNode::VoidNode(const Span& span_)

Definition at line 207 of BasicType.cpp :
207 : Node(NodeType::voidNodespan_)
208 {
209 }


Declaration at line 145 of BasicType.hpp


Member Function Details

Accept Member Function

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

Definition at line 216 of BasicType.cpp :
217 {
218     visitor.Visit(*this);
219 }


Declaration at line 147 of BasicType.hpp

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

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


Clone Member Function

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

Definition at line 211 of BasicType.cpp :
212 {
213     return new VoidNode(GetSpan());
214 }


Declaration at line 146 of BasicType.hpp

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

Calls: sngcm::ast::Node::GetSpan


ToString Member Function

std::string sngcm::ast::VoidNode::ToString() const override

Definition at line 148 of BasicType.hpp :
148 { return "void"; }

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


top | up | prev | next