top | up | prev | next

EqualNode Class

Definition at line 115 of Expression.hpp

Constructors

EqualNode(const Span& span_)
EqualNode(const Span& span_, 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_)

Definition at line 247 of Expression.cpp :
 247 : BinaryNode(NodeType::equalNodespan_)
 248 {
 249 }


Declaration at line 118 of Expression.hpp


EqualNode Constructor

sngcm::ast::EqualNode::EqualNode(const Span& span_, Node * left_, Node * right_)

Definition at line 251 of Expression.cpp :
 251 : BinaryNode(NodeType::equalNodespan_left_right_)
 252 {
 253 }


Declaration at line 119 of Expression.hpp


Member Function Details

Accept Member Function

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

Definition at line 260 of Expression.cpp :
 261 {
 262     visitor.Visit(*this);
 263 }


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 255 of Expression.cpp :
 256 {
 257     return new EqualNode(GetSpan()Left()->Clone(cloneContext)Right()->Clone(cloneContext));
 258 }


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


ToString Member Function

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

Definition at line 265 of Expression.cpp :
 266 {
 267     return Left()->ToString() + " == " + Right()->ToString();
 268 }


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