top | up | prev | next

InitializerNode Abstract Class

Definition at line 58 of Class.hpp

Constructors

InitializerNode(NodeType nodeType_, const Span& span_)

Member Functions

void AddArgument(Node* argument) override
const NodeList<Node>& Arguments() const
void Read(AstReader& reader) override
void Write(AstWriter& writer) override

Member Variables

NodeList<Node> arguments

Constructor Details

InitializerNode Constructor

sngcm::ast::InitializerNode::InitializerNode(NodeType nodeType_, const Span& span_)

Definition at line 210 of Class.cpp :
210 : Node(nodeType_span_)
211 {
212 }


Declaration at line 61 of Class.hpp


Member Function Details

AddArgument Member Function

void sngcm::ast::InitializerNode::AddArgument(Node * argument) override

Definition at line 227 of Class.cpp :
228 {
229     argument->SetParent(this);
230     arguments.Add(argument);
231 }


Declaration at line 64 of Class.hpp

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

Calls: sngcm::ast::Node::SetParent , sngcm::ast::NodeList::Add

Called by: sngcm::ast::BaseInitializerNode::Clone , sngcm::ast::MemberInitializerNode::Clone , sngcm::ast::ThisInitializerNode::Clone


Arguments Member Function

const NodeList <Node >& sngcm::ast::InitializerNode::Arguments() const

Definition at line 65 of Class.hpp :
 65 { return arguments; }

Called by: sngcm::ast::BaseInitializerNode::Clone , sngcm::ast::MemberInitializerNode::Clone , sngcm::ast::SourceWriter::Visit , sngcm::ast::SourceWriter::Visit , sngcm::ast::SourceWriter::Visit , sngcm::ast::ThisInitializerNode::Clone


Read Member Function

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

Definition at line 220 of Class.cpp :
221 {
222     Node::Read(reader);
223     arguments.Read(reader);
224     arguments.SetParent(this);
225 }


Declaration at line 63 of Class.hpp

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

Derived class overrides: sngcm::ast::MemberInitializerNode::Read

Calls: sngcm::ast::Node::Read , sngcm::ast::NodeList::Read , sngcm::ast::NodeList::SetParent

Called by: sngcm::ast::MemberInitializerNode::Read


Write Member Function

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

Definition at line 214 of Class.cpp :
215 {
216     Node::Write(writer);
217     arguments.Write(writer);
218 }


Declaration at line 62 of Class.hpp

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

Derived class overrides: sngcm::ast::MemberInitializerNode::Write

Calls: sngcm::ast::Node::Write , sngcm::ast::NodeList::Write

Called by: sngcm::ast::MemberInitializerNode::Write


top | up | prev | next