top | up | prev | next

MulNode Class

Definition at line 215 of Expression.hpp

Constructors

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

MulNode Constructor

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

Definition at line 477 of Expression.cpp :
 477 : BinaryNode(NodeType::mulNodespan_)
 478 {
 479 }


Declaration at line 218 of Expression.hpp


MulNode Constructor

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

Definition at line 481 of Expression.cpp :
 481 : BinaryNode(NodeType::mulNodespan_left_right_)
 482 {
 483 }


Declaration at line 219 of Expression.hpp


Member Function Details

Accept Member Function

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

Definition at line 490 of Expression.cpp :
 491 {
 492     visitor.Visit(*this);
 493 }


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 485 of Expression.cpp :
 486 {
 487     return new MulNode(GetSpan()Left()->Clone(cloneContext)Right()->Clone(cloneContext));
 488 }


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


ToString Member Function

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

Definition at line 495 of Expression.cpp :
 496 {
 497     return Left()->ToString() + " * " + Right()->ToString();
 498 }


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