top | up | prev | next

TemplateDeclarationNode Class

Definition at line 37 of Template.hpp

Constructors

TemplateDeclarationNode()
TemplateDeclarationNode(const Span& span_, Node* templateParameters_, Node* declaration_)

Member Functions

void Accept(Visitor& visitor) override
Node* Declaration()
void Read(Reader& reader) override
Node* TemplateParameters()
void Write(Writer& writer) override

Member Variables

std::unique_ptr<Node> declaration
std::unique_ptr<Node> templateParameters

Constructor Details

TemplateDeclarationNode Constructor

sngcpp::ast::TemplateDeclarationNode::TemplateDeclarationNode()

Definition at line 64 of Template.cpp :
 64 : Node(NodeType::templateDeclarationNode)
 65 {
 66 }


Declaration at line 40 of Template.hpp


TemplateDeclarationNode Constructor

sngcpp::ast::TemplateDeclarationNode::TemplateDeclarationNode(const Span& span_, Node * templateParameters_, Node * declaration_)

Definition at line 68 of Template.cpp :
 68 :
 69 Node(NodeType::templateDeclarationNodespan_)templateParameters(templateParameters_)declaration(declaration_)
 70 {
 71 }


Declaration at line 41 of Template.hpp


Member Function Details

Accept Member Function

void sngcpp::ast::TemplateDeclarationNode::Accept(Visitor & visitor) override

Definition at line 73 of Template.cpp :
 74 {
 75     visitor.Visit(*this);
 76 }


Declaration at line 42 of Template.hpp

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

Calls: sngcpp::ast::Visitor::Visit


Declaration Member Function

Node * sngcpp::ast::TemplateDeclarationNode::Declaration()

Definition at line 46 of Template.hpp :
 46 { return declaration.get(); }


Read Member Function

void sngcpp::ast::TemplateDeclarationNode::Read(Reader & reader) override

Definition at line 85 of Template.cpp :
 86 {
 87     Node::Read(reader);
 88     templateParameters.reset(reader.ReadNode());
 89     declaration.reset(reader.ReadNode());
 90 }


Declaration at line 44 of Template.hpp

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

Calls: sngcpp::ast::Node::Read , sngcpp::ast::Reader::ReadNode


TemplateParameters Member Function

Node * sngcpp::ast::TemplateDeclarationNode::TemplateParameters()

Definition at line 45 of Template.hpp :
 45 { return templateParameters.get(); }


Write Member Function

void sngcpp::ast::TemplateDeclarationNode::Write(Writer & writer) override

Definition at line 78 of Template.cpp :
 79 {
 80     Node::Write(writer);
 81     templateParameters->Write(writer);
 82     declaration->Write(writer);
 83 }


Declaration at line 43 of Template.hpp

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

Calls: sngcpp::ast::Node::Write , sngcpp::ast::TemplateDeclarationNode::Write

Called by: sngcpp::ast::TemplateDeclarationNode::Write


top | up | prev | next