top | up | prev | next

StaticConstructorNode Class

Definition at line 101 of Class.hpp

Constructors

StaticConstructorNode(const Span& span_)
StaticConstructorNode(const Span& span_, Specifiers specifiers_, Attributes* 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_)

Definition at line 311 of Class.cpp :
311 : FunctionNode(NodeType::staticConstructorNodespan_Specifiers::nonenullptrU"@static_constructor"nullptr)initializers()
312 {
313 }


Declaration at line 104 of Class.hpp


StaticConstructorNode Constructor

sngcm::ast::StaticConstructorNode::StaticConstructorNode(const Span& span_, Specifiers specifiers_, Attributes * attributes_)

Definition at line 315 of Class.cpp :
315 :
316 FunctionNode(NodeType::staticConstructorNodespan_specifiers_nullptrU"@static_constructor"attributes_)initializers()
317 {
318 }


Declaration at line 105 of Class.hpp


Member Function Details

Accept Member Function

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

Definition at line 333 of Class.cpp :
334 {
335     visitor.Visit(*this);
336 }


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 353 of Class.cpp :
354 {
355     initializer->SetParent(this);
356     initializers.Add(initializer);
357 }


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 320 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::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 345 of Class.cpp :
346 {
347     FunctionNode::Read(reader);
348     initializers.Read(reader);
349     initializers.SetParent(this);
350     classId.reset(reader.ReadIdentifierNode());
351 }


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 338 of Class.cpp :
339 {
340     FunctionNode::Write(writer);
341     initializers.Write(writer);
342     writer.Write(classId.get());
343 }


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