top | up | prev | next

ThisInitializerNode Class

Definition at line 70 of Class.hpp

Constructors

ThisInitializerNode(const Span& span_)

Member Functions

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

Constructor Details

ThisInitializerNode Constructor

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

Definition at line 233 of Class.cpp :
233 : InitializerNode(NodeType::thisInitializerNodespan_)
234 {
235 }


Declaration at line 73 of Class.hpp


Member Function Details

Accept Member Function

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

Definition at line 248 of Class.cpp :
249 {
250     visitor.Visit(*this);
251 }


Declaration at line 75 of Class.hpp

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

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


Clone Member Function

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

Definition at line 237 of Class.cpp :
238 {
239     ThisInitializerNode* clone = new ThisInitializerNode(GetSpan());
240     int n = Arguments().Count();
241     for (int i = 0; i < n; ++i)
242     {
243         clone->AddArgument(Arguments()[i]->Clone(cloneContext));
244     }
245     return clone;
246 }


Declaration at line 74 of Class.hpp

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

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

Called by: sngcm::ast::ThisInitializerNode::Clone


top | up | prev | next