top | up | prev | next

MemberDeclarationNode Class

Definition at line 119 of Class.hpp

Constructors

MemberDeclarationNode()
MemberDeclarationNode(const Span& span_, Specifier specifiers_, Node* typeExpr_, Node* declarator_, Node* initializer_)

Member Functions

void Accept(Visitor& visitor) override
Node* Declarator()
Node* Initializer()
void Read(Reader& reader) override
Specifier Specifiers() const
Node* TypeExpr()
void Write(Writer& writer) override

Member Variables

std::unique_ptr<Node> declarator
std::unique_ptr<Node> initializer
Specifier specifiers
std::unique_ptr<Node> typeExpr

Constructor Details

MemberDeclarationNode Constructor

sngcpp::ast::MemberDeclarationNode::MemberDeclarationNode()

Definition at line 229 of Class.cpp :
229 : Node(NodeType::memberDeclarationNode)specifiers()
230 {
231 }


Declaration at line 122 of Class.hpp


MemberDeclarationNode Constructor

sngcpp::ast::MemberDeclarationNode::MemberDeclarationNode(const Span& span_, Specifier specifiers_, Node * typeExpr_, Node * declarator_, Node * initializer_)

Definition at line 233 of Class.cpp :
233 :
234 Node(NodeType::memberDeclarationNodespan_)specifiers(specifiers_)typeExpr(typeExpr_)declarator(declarator_)initializer(initializer_)
235 {
236 }


Declaration at line 123 of Class.hpp


Member Function Details

Accept Member Function

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

Definition at line 238 of Class.cpp :
239 {
240     visitor.Visit(*this);
241 }


Declaration at line 124 of Class.hpp

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

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


Declarator Member Function

Node * sngcpp::ast::MemberDeclarationNode::Declarator()

Definition at line 129 of Class.hpp :
129 { return declarator.get(); }


Initializer Member Function

Node * sngcpp::ast::MemberDeclarationNode::Initializer()

Definition at line 130 of Class.hpp :
130 { return initializer.get(); }


Read Member Function

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

Definition at line 260 of Class.cpp
Declaration at line 126 of Class.hpp

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

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


Specifiers Member Function

Specifier sngcpp::ast::MemberDeclarationNode::Specifiers() const

Definition at line 127 of Class.hpp :
127 { return specifiers; }


TypeExpr Member Function

Node * sngcpp::ast::MemberDeclarationNode::TypeExpr()

Definition at line 128 of Class.hpp :
128 { return typeExpr.get(); }


Write Member Function

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

Definition at line 243 of Class.cpp
Declaration at line 125 of Class.hpp

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

Calls: sngcpp::ast::MemberDeclarationNode::Write , sngcpp::ast::Node::Write , sngcpp::ast::Writer::GetBinaryWriter , sngcpp::ast::Writer::Write

Called by: sngcpp::ast::MemberDeclarationNode::Write


top | up | prev | next