top | up | prev | next

IntNode Class

Definition at line 60 of BasicType.hpp

Constructors

IntNode(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

IntNode Constructor

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

Definition at line 86 of BasicType.cpp :
 86 : Node(NodeType::intNodespan_moduleId_)
 87 {
 88 }


Declaration at line 63 of BasicType.hpp


Member Function Details

Accept Member Function

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

Definition at line 96 of BasicType.cpp :
 97 {
 98     visitor.Visit(*this);
 99 }


Declaration at line 65 of BasicType.hpp

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

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


Clone Member Function

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

Definition at line 90 of BasicType.cpp :
 91 {
 92     IntNode* clone = new IntNode(GetSpan()ModuleId());
 93     return clone;
 94 }


Declaration at line 64 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::IntNode::ToString() const override

Definition at line 66 of BasicType.hpp :
 66 { return "int"; }

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


top | up | prev | next