top | up | prev | next

MemberAccessDeclarationNode Class

Definition at line 102 of Class.hpp

Constructors

MemberAccessDeclarationNode()
MemberAccessDeclarationNode(const Span& span_, Specifier accessSpecifier_, Node* declaration_, bool explicitAccess_)

Member Functions

void Accept(Visitor& visitor) override
Specifier AccessSpecifier() const
Node* Declaration()
bool ExplicitAccess() const
void Read(Reader& reader) override
void Write(Writer& writer) override

Member Variables

Specifier accessSpecifier
std::unique_ptr<Node> declaration
bool explicitAccess

Constructor Details

MemberAccessDeclarationNode Constructor

sngcpp::ast::MemberAccessDeclarationNode::MemberAccessDeclarationNode()

Definition at line 199 of Class.cpp :
199 : Node(NodeType::memberAccessDeclarationNode)accessSpecifier()explicitAccess()
200 {
201 }


Declaration at line 105 of Class.hpp


MemberAccessDeclarationNode Constructor

sngcpp::ast::MemberAccessDeclarationNode::MemberAccessDeclarationNode(const Span& span_, Specifier accessSpecifier_, Node * declaration_, bool explicitAccess_)

Definition at line 203 of Class.cpp :
203 :
204 Node(NodeType::memberAccessDeclarationNodespan_)accessSpecifier(accessSpecifier_)declaration(declaration_)explicitAccess(explicitAccess_)
205 {
206 }


Declaration at line 106 of Class.hpp


Member Function Details

Accept Member Function

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

Definition at line 208 of Class.cpp :
209 {
210     visitor.Visit(*this);
211 }


Declaration at line 107 of Class.hpp

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

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


AccessSpecifier Member Function

Specifier sngcpp::ast::MemberAccessDeclarationNode::AccessSpecifier() const

Definition at line 110 of Class.hpp :
110 { return accessSpecifier; }


Declaration Member Function

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

Definition at line 111 of Class.hpp :
111 { return declaration.get(); }


ExplicitAccess Member Function

bool sngcpp::ast::MemberAccessDeclarationNode::ExplicitAccess() const

Definition at line 112 of Class.hpp :
112 { return explicitAccess; }


Read Member Function

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

Definition at line 221 of Class.cpp :
222 {
223     Node::Read(reader);
224     accessSpecifier = reader.ReadSpecifiers();
225     declaration.reset(reader.ReadNode());
226     explicitAccess = reader.GetBinaryReader().ReadBool();
227 }


Declaration at line 109 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


Write Member Function

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

Definition at line 213 of Class.cpp :
214 {
215     Node::Write(writer);
216     writer.Write(accessSpecifier);
217     declaration->Write(writer);
218     writer.GetBinaryWriter().Write(explicitAccess);
219 }


Declaration at line 108 of Class.hpp

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

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

Called by: sngcpp::ast::MemberAccessDeclarationNode::Write


top | up | prev | next