top | up | prev | next

BoolNode Class

Definition at line 13 of BasicType.hpp

Constructors

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

BoolNode Constructor

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

Definition at line 11 of BasicType.cpp :
 11 : Node(NodeType::boolNodespan_moduleId_)
 12 {
 13 }


Declaration at line 16 of BasicType.hpp


Member Function Details

Accept Member Function

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

Definition at line 21 of BasicType.cpp :
 22 {
 23     visitor.Visit(*this);
 24 }


Declaration at line 18 of BasicType.hpp

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

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


Clone Member Function

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

Definition at line 15 of BasicType.cpp :
 16 {
 17     BoolNode* clone = new BoolNode(GetSpan()ModuleId());
 18     return clone;
 19 }


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

Definition at line 19 of BasicType.hpp :
 19 { return "bool";  }

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


top | up | prev | next