top | up | prev | next

ElaborateClassNameNode Class

Definition at line 58 of Class.hpp

Constructors

ElaborateClassNameNode()
ElaborateClassNameNode(const Span& span_, ClassKey classKey_, Node* className_)

Member Functions

void Accept(Visitor& visitor) override
Node* ClassName()
ClassKey GetClassKey() const
void Read(Reader& reader) override
void Write(Writer& writer) override

Member Variables

ClassKey classKey
std::unique_ptr<Node> className

Constructor Details

ElaborateClassNameNode Constructor

sngcpp::ast::ElaborateClassNameNode::ElaborateClassNameNode()

Definition at line 94 of Class.cpp :
 94 : Node(NodeType::elaborateClassNameNode)
 95 {
 96 }


Declaration at line 61 of Class.hpp


ElaborateClassNameNode Constructor

sngcpp::ast::ElaborateClassNameNode::ElaborateClassNameNode(const Span& span_, ClassKey classKey_, Node * className_)

Definition at line 98 of Class.cpp :
 98 : Node(NodeType::elaborateClassNameNodespan_)classKey(classKey_)className(className_)
 99 {
100 }


Declaration at line 62 of Class.hpp


Member Function Details

Accept Member Function

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

Definition at line 102 of Class.cpp :
103 {
104     visitor.Visit(*this);
105 }


Declaration at line 63 of Class.hpp

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

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


ClassName Member Function

Node * sngcpp::ast::ElaborateClassNameNode::ClassName()

Definition at line 67 of Class.hpp :
 67 { return className.get(); }


GetClassKey Member Function

ClassKey sngcpp::ast::ElaborateClassNameNode::GetClassKey() const

Definition at line 66 of Class.hpp :
 66 { return classKey; }


Read Member Function

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

Definition at line 114 of Class.cpp :
115 {
116     Node::Read(reader);
117     classKey = reader.ReadClassKey();
118     className.reset(reader.ReadNode());
119 }


Declaration at line 65 of Class.hpp

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

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


Write Member Function

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

Definition at line 107 of Class.cpp :
108 {
109     Node::Write(writer);
110     writer.Write(classKey);
111     className->Write(writer);
112 }


Declaration at line 64 of Class.hpp

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

Calls: sngcpp::ast::ElaborateClassNameNode::Write , sngcpp::ast::Node::Write , sngcpp::ast::Writer::Write

Called by: sngcpp::ast::ElaborateClassNameNode::Write


top | up | prev | next