top | up | prev | next

ShiftLeftNode Class

Definition at line 175 of Expression.hpp

Constructors

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

ShiftLeftNode Constructor

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

Definition at line 410 of Expression.cpp :
 410 : BinaryNode(NodeType::shiftLeftNodespan_moduleId_)
 411 {
 412 }


Declaration at line 178 of Expression.hpp


ShiftLeftNode Constructor

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

Definition at line 414 of Expression.cpp :
 414 :
 415 BinaryNode(NodeType::shiftLeftNodespan_moduleId_left_right_)
 416 {
 417 }


Declaration at line 179 of Expression.hpp


Member Function Details

Accept Member Function

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

Definition at line 425 of Expression.cpp :
 426 {
 427     visitor.Visit(*this);
 428 }


Declaration at line 181 of Expression.hpp

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

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


Clone Member Function

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

Definition at line 419 of Expression.cpp :
 420 {
 421     ShiftLeftNode* clone = new ShiftLeftNode(GetSpan()ModuleId()Left()->Clone(cloneContext)Right()->Clone(cloneContext));
 422     return clone;
 423 }


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

Definition at line 430 of Expression.cpp :
 431 {
 432     return Left()->ToString() + " << " + Right()->ToString();
 433 }


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