top | up | prev | next

EquivalenceNode Class

Definition at line 45 of Expression.hpp

Constructors

EquivalenceNode(const Span& span_)
EquivalenceNode(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

EquivalenceNode Constructor

sngcm::ast::EquivalenceNode::EquivalenceNode(const Span& span_)

Definition at line 86 of Expression.cpp :
  86 : BinaryNode(NodeType::equivalenceNodespan_)
  87 {
  88 }


Declaration at line 48 of Expression.hpp


EquivalenceNode Constructor

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

Definition at line 90 of Expression.cpp :
  90 : BinaryNode(NodeType::equivalenceNodespan_left_right_)
  91 {
  92 }


Declaration at line 49 of Expression.hpp


Member Function Details

Accept Member Function

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

Definition at line 99 of Expression.cpp :
 100 {
 101     visitor.Visit(*this);
 102 }


Declaration at line 51 of Expression.hpp

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

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


Clone Member Function

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

Definition at line 94 of Expression.cpp :
  95 {
  96     return new EquivalenceNode(GetSpan()Left()->Clone(cloneContext)Right()->Clone(cloneContext));
  97 }


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

Definition at line 104 of Expression.cpp :
 105 {
 106     return Left()->ToString() + "<=>" + Right()->ToString();
 107 }


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