top | up | prev | next

RemNode Class

Definition at line 235 of Expression.hpp

Constructors

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

RemNode Constructor

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

Definition at line 523 of Expression.cpp :
 523 : BinaryNode(NodeType::remNodespan_)
 524 {
 525 }


Declaration at line 238 of Expression.hpp


RemNode Constructor

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

Definition at line 527 of Expression.cpp :
 527 : BinaryNode(NodeType::remNodespan_left_right_)
 528 {
 529 }


Declaration at line 239 of Expression.hpp


Member Function Details

Accept Member Function

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

Definition at line 536 of Expression.cpp :
 537 {
 538     visitor.Visit(*this);
 539 }


Declaration at line 241 of Expression.hpp

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

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


Clone Member Function

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

Definition at line 531 of Expression.cpp :
 532 {
 533     return new RemNode(GetSpan()Left()->Clone(cloneContext)Right()->Clone(cloneContext));
 534 }


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

Definition at line 541 of Expression.cpp :
 542 {
 543     return Left()->ToString() + " % " + Right()->ToString();
 544 }


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