top | up | prev | next

LessOrEqualNode Class

Definition at line 155 of Expression.hpp

Constructors

LessOrEqualNode(const Span& span_, const boost::uuids::uuid& moduleId_)
LessOrEqualNode(const Span& span_, const boost::uuids::uuid& moduleId_, Node* left_, Node* right_)

Member Functions

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

Constructor Details

LessOrEqualNode Constructor

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

Definition at line 360 of Expression.cpp :
 360 : BinaryNode(NodeType::lessOrEqualNodespan_moduleId_)
 361 {
 362 }


Declaration at line 158 of Expression.hpp


LessOrEqualNode Constructor

sngcm::ast::LessOrEqualNode::LessOrEqualNode(const Span& span_, const boost::uuids::uuid& moduleId_, Node * left_, Node * right_)

Definition at line 364 of Expression.cpp :
 364 :
 365 BinaryNode(NodeType::lessOrEqualNodespan_moduleId_left_right_)
 366 {
 367 }


Declaration at line 159 of Expression.hpp


Member Function Details

Accept Member Function

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

Definition at line 375 of Expression.cpp :
 376 {
 377     visitor.Visit(*this);
 378 }


Declaration at line 161 of Expression.hpp

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

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


Clone Member Function

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

Definition at line 369 of Expression.cpp :
 370 {
 371     LessOrEqualNode* clone = new LessOrEqualNode(GetSpan()ModuleId()Left()->Clone(cloneContext)Right()->Clone(cloneContext));
 372     return clone;
 373 }


Declaration at line 160 of Expression.hpp

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

Calls: sngcm::ast::BinaryNode::Left , sngcm::ast::BinaryNode::Right , sngcm::ast::Node::Clone , sngcm::ast::Node::GetSpan , sngcm::ast::Node::ModuleId


ToString Member Function

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

Definition at line 380 of Expression.cpp :
 381 {
 382     return Left()->ToString() + " <= " + Right()->ToString();
 383 }


Declaration at line 162 of Expression.hpp

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

Calls: sngcm::ast::BinaryNode::Left , sngcm::ast::BinaryNode::Right , sngcm::ast::Node::ToString


top | up | prev | next