top | up | prev | next

EqualNode Class

Definition at line 115 of Expression.hpp

Constructors

EqualNode(const Span& span_, const boost::uuids::uuid& moduleId_)
EqualNode(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

EqualNode Constructor

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

Definition at line 263 of Expression.cpp :
 263 : BinaryNode(NodeType::equalNodespan_moduleId_)
 264 {
 265 }


Declaration at line 118 of Expression.hpp


EqualNode Constructor

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

Definition at line 267 of Expression.cpp :
 267 :
 268 BinaryNode(NodeType::equalNodespan_moduleId_left_right_)
 269 {
 270 }


Declaration at line 119 of Expression.hpp


Member Function Details

Accept Member Function

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

Definition at line 278 of Expression.cpp :
 279 {
 280     visitor.Visit(*this);
 281 }


Declaration at line 121 of Expression.hpp

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

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


Clone Member Function

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

Definition at line 272 of Expression.cpp :
 273 {
 274     EqualNode* clone = new EqualNode(GetSpan()ModuleId()Left()->Clone(cloneContext)Right()->Clone(cloneContext));
 275     return clone;
 276 }


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

Definition at line 283 of Expression.cpp :
 284 {
 285     return Left()->ToString() + " == " + Right()->ToString();
 286 }


Declaration at line 122 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