top | up | prev | next

StaticConstructorNode Class

Definition at line 101 of Class.hpp

Constructors

StaticConstructorNode(const Span& span_, const boost::uuids::uuid& moduleId_)
StaticConstructorNode(const Span& span_, const boost::uuids::uuid& moduleId_, Specifiers specifiers_, AttributesNode* attributes_)

Member Functions

void Accept(Visitor& visitor) override
void AddInitializer(InitializerNode* initializer)
IdentifierNode* ClassId()
Node* Clone(CloneContext& cloneContext) const override
const NodeList<InitializerNode>& Initializers() const
void Read(AstReader& reader) override
void SetClassId(IdentifierNode* classId_)
void Write(AstWriter& writer) override

Member Variables

std::unique_ptr<IdentifierNode> classId
NodeList<InitializerNode> initializers

Constructor Details

StaticConstructorNode Constructor

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

Definition at line 313 of Class.cpp :
313 :
314 FunctionNode(NodeType::staticConstructorNodespan_moduleId_Specifiers::nonenullptrU"@static_constructor"nullptr)initializers()
315 {
316 }


Declaration at line 104 of Class.hpp


StaticConstructorNode Constructor

sngcm::ast::StaticConstructorNode::StaticConstructorNode(const Span& span_, const boost::uuids::uuid& moduleId_, Specifiers specifiers_, AttributesNode * attributes_)

Definition at line 318 of Class.cpp :
318 :
319 FunctionNode(NodeType::staticConstructorNodespan_moduleId_specifiers_nullptrU"@static_constructor"attributes_)initializers()
320 {
321 }


Declaration at line 105 of Class.hpp


Member Function Details

Accept Member Function

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

Definition at line 336 of Class.cpp :
337 {
338     visitor.Visit(*this);
339 }


Declaration at line 107 of Class.hpp

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

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


AddInitializer Member Function

void sngcm::ast::StaticConstructorNode::AddInitializer(InitializerNode * initializer)

Definition at line 356 of Class.cpp :
357 {
358     initializer->SetParent(this);
359     initializers.Add(initializer);
360 }


Declaration at line 110 of Class.hpp

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

Called by: sngcm::ast::StaticConstructorNode::Clone


ClassId Member Function

IdentifierNode * sngcm::ast::StaticConstructorNode::ClassId()

Definition at line 113 of Class.hpp :
113 { return classId.get(); }

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


Clone Member Function

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

Definition at line 323 of Class.cpp
Declaration at line 106 of Class.hpp

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

Calls: sngcm::ast::FunctionNode::CloneContent , sngcm::ast::FunctionNode::GetSpecifiers , sngcm::ast::Node::GetSpan , sngcm::ast::Node::ModuleId , sngcm::ast::NodeList::Count , sngcm::ast::StaticConstructorNode::AddInitializer , sngcm::ast::StaticConstructorNode::Clone

Called by: sngcm::ast::StaticConstructorNode::Clone


Initializers Member Function

const NodeList <InitializerNode >& sngcm::ast::StaticConstructorNode::Initializers() const

Definition at line 111 of Class.hpp :
111 { return initializers; }

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


Read Member Function

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

Definition at line 348 of Class.cpp :
349 {
350     FunctionNode::Read(reader);
351     initializers.Read(reader);
352     initializers.SetParent(this);
353     classId.reset(reader.ReadIdentifierNode());
354 }


Declaration at line 109 of Class.hpp

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

Calls: sngcm::ast::AstReader::ReadIdentifierNode , sngcm::ast::FunctionNode::Read , sngcm::ast::NodeList::Read , sngcm::ast::NodeList::SetParent


SetClassId Member Function

void sngcm::ast::StaticConstructorNode::SetClassId(IdentifierNode * classId_)

Definition at line 112 of Class.hpp :
112 { classId.reset(classId_); }


Write Member Function

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

Definition at line 341 of Class.cpp :
342 {
343     FunctionNode::Write(writer);
344     initializers.Write(writer);
345     writer.Write(classId.get());
346 }


Declaration at line 108 of Class.hpp

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

Calls: sngcm::ast::FunctionNode::Write , sngcm::ast::NodeList::Write


top | up | prev | next