top | up | prev | next

ConjunctionNode Class

Definition at line 75 of Expression.hpp

Constructors

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

ConjunctionNode Constructor

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

Definition at line 155 of Expression.cpp :
 155 : BinaryNode(NodeType::conjunctionNodespan_)
 156 {
 157 }


Declaration at line 78 of Expression.hpp


ConjunctionNode Constructor

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

Definition at line 159 of Expression.cpp :
 159 : BinaryNode(NodeType::conjunctionNodespan_left_right_)
 160 {
 161 }


Declaration at line 79 of Expression.hpp


Member Function Details

Accept Member Function

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

Definition at line 168 of Expression.cpp :
 169 {
 170     visitor.Visit(*this);
 171 }


Declaration at line 81 of Expression.hpp

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

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


Clone Member Function

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

Definition at line 163 of Expression.cpp :
 164 {
 165     return new ConjunctionNode(GetSpan()Left()->Clone(cloneContext)Right()->Clone(cloneContext));
 166 }


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

Definition at line 173 of Expression.cpp :
 174 {
 175     return Left()->ToString() + " && " + Right()->ToString();
 176 }


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