top | up | prev | next

MulNode Class

Definition at line 215 of Expression.hpp

Constructors

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

MulNode Constructor

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

Definition at line 509 of Expression.cpp :
 509 : BinaryNode(NodeType::mulNodespan_moduleId_)
 510 {
 511 }


Declaration at line 218 of Expression.hpp


MulNode Constructor

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

Definition at line 513 of Expression.cpp :
 513 :
 514 BinaryNode(NodeType::mulNodespan_moduleId_left_right_)
 515 {
 516 }


Declaration at line 219 of Expression.hpp


Member Function Details

Accept Member Function

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

Definition at line 524 of Expression.cpp :
 525 {
 526     visitor.Visit(*this);
 527 }


Declaration at line 221 of Expression.hpp

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

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


Clone Member Function

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

Definition at line 518 of Expression.cpp :
 519 {
 520     MulNode* clone = new MulNode(GetSpan()ModuleId()Left()->Clone(cloneContext)Right()->Clone(cloneContext));
 521     return clone;
 522 }


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

Definition at line 529 of Expression.cpp :
 530 {
 531     return Left()->ToString() + " * " + Right()->ToString();
 532 }


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