top | up | prev | next

CharNode Class

Definition at line 116 of BasicType.hpp

Constructors

CharNode(const Span& span_, const boost::uuids::uuid& moduleId_)

Member Functions

void Accept(Visitor& visitor) override
Node* Clone(CloneContext& cloneContext) const override
std::string ToString() const override

Constructor Details

CharNode Constructor

sngcm::ast::CharNode::CharNode(const Span& span_, const boost::uuids::uuid& moduleId_)

Definition at line 176 of BasicType.cpp :
176 : Node(NodeType::charNodespan_moduleId_)
177 {
178 }


Declaration at line 119 of BasicType.hpp


Member Function Details

Accept Member Function

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

Definition at line 186 of BasicType.cpp :
187 {
188     visitor.Visit(*this);
189 }


Declaration at line 121 of BasicType.hpp

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

Calls: sngcm::ast::Visitor::Visit


Clone Member Function

Node * sngcm::ast::CharNode::Clone(CloneContext & cloneContext) const override

Definition at line 180 of BasicType.cpp :
181 {
182     CharNode* clone = new CharNode(GetSpan()ModuleId());
183     return clone;
184 }


Declaration at line 120 of BasicType.hpp

Base class overridden functions: sngcm::ast::Node::Clone

Calls: sngcm::ast::Node::GetSpan , sngcm::ast::Node::ModuleId


ToString Member Function

std::string sngcm::ast::CharNode::ToString() const override

Definition at line 122 of BasicType.hpp :
122 { return "char"; }

Base class overridden functions: sngcm::ast::Node::ToString


top | up | prev | next