top | up | prev | next

BaseInitializerNode Class

Definition at line 78 of Class.hpp

Constructors

BaseInitializerNode(const Span& span_)

Member Functions

void Accept(Visitor& visitor) override
Node* Clone(CloneContext& cloneContext) const override

Constructor Details

BaseInitializerNode Constructor

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

Definition at line 253 of Class.cpp :
253 : InitializerNode(NodeType::baseInitializerNodespan_)
254 {
255 }


Declaration at line 81 of Class.hpp


Member Function Details

Accept Member Function

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

Definition at line 268 of Class.cpp :
269 {
270     visitor.Visit(*this);
271 }


Declaration at line 83 of Class.hpp

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

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


Clone Member Function

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

Definition at line 257 of Class.cpp :
258 {
259     BaseInitializerNode* clone = new BaseInitializerNode(GetSpan());
260     int n = Arguments().Count();
261     for (int i = 0; i < n; ++i)
262     {
263         clone->AddArgument(Arguments()[i]->Clone(cloneContext));
264     }
265     return clone;
266 }


Declaration at line 82 of Class.hpp

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

Calls: sngcm::ast::BaseInitializerNode::Clone , sngcm::ast::InitializerNode::AddArgument , sngcm::ast::InitializerNode::Arguments , sngcm::ast::Node::GetSpan , sngcm::ast::NodeList::Count

Called by: sngcm::ast::BaseInitializerNode::Clone


top | up | prev | next