top | up | prev | next

ConjunctionNode Class

Definition at line 75 of Expression.hpp

Constructors

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

ConjunctionNode Constructor

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

Definition at line 164 of Expression.cpp :
 164 : BinaryNode(NodeType::conjunctionNodespan_moduleId_)
 165 {
 166 }


Declaration at line 78 of Expression.hpp


ConjunctionNode Constructor

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

Definition at line 168 of Expression.cpp :
 168 :
 169 BinaryNode(NodeType::conjunctionNodespan_moduleId_left_right_)
 170 {
 171 }


Declaration at line 79 of Expression.hpp


Member Function Details

Accept Member Function

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

Definition at line 179 of Expression.cpp :
 180 {
 181     visitor.Visit(*this);
 182 }


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 173 of Expression.cpp :
 174 {
 175     ConjunctionNode* clone = new ConjunctionNode(GetSpan()ModuleId()Left()->Clone(cloneContext)Right()->Clone(cloneContext));
 176     return clone;
 177 }


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 , sngcm::ast::Node::ModuleId


ToString Member Function

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

Definition at line 184 of Expression.cpp :
 185 {
 186     return Left()->ToString() + " && " + Right()->ToString();
 187 }


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