top | up | prev | next

ShiftRightNode Class

Definition at line 185 of Expression.hpp

Constructors

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

ShiftRightNode Constructor

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

Definition at line 435 of Expression.cpp :
 435 : BinaryNode(NodeType::shiftRightNodespan_moduleId_)
 436 {
 437 }


Declaration at line 188 of Expression.hpp


ShiftRightNode Constructor

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

Definition at line 439 of Expression.cpp :
 439 :
 440 BinaryNode(NodeType::shiftRightNodespan_moduleId_left_right_)
 441 {
 442 }


Declaration at line 189 of Expression.hpp


Member Function Details

Accept Member Function

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

Definition at line 450 of Expression.cpp :
 451 {
 452     visitor.Visit(*this);
 453 }


Declaration at line 191 of Expression.hpp

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

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


Clone Member Function

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

Definition at line 444 of Expression.cpp :
 445 {
 446     ShiftRightNode* clone = new ShiftRightNode(GetSpan()ModuleId()Left()->Clone(cloneContext)Right()->Clone(cloneContext));
 447     return clone;
 448 }


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

Definition at line 455 of Expression.cpp :
 456 {
 457     return Left()->ToString() + " >> " + Right()->ToString();
 458 }


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