top | up | prev | next

PrefixDecrementNode Class

Definition at line 285 of Expression.hpp

Constructors

PrefixDecrementNode(const Span& span_)
PrefixDecrementNode(const Span& span_, Node* subject_)

Member Functions

void Accept(Visitor& visitor) override
Node* Clone(CloneContext& cloneContext) const override
std::string ToString() const override

Constructor Details

PrefixDecrementNode Constructor

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

Definition at line 638 of Expression.cpp :
 638 : UnaryNode(NodeType::prefixDecrementNodespan_)
 639 {
 640 }


Declaration at line 288 of Expression.hpp


PrefixDecrementNode Constructor

sngcm::ast::PrefixDecrementNode::PrefixDecrementNode(const Span& span_, Node * subject_)

Definition at line 642 of Expression.cpp :
 642 : UnaryNode(NodeType::prefixDecrementNodespan_subject_)
 643 {
 644 }


Declaration at line 289 of Expression.hpp


Member Function Details

Accept Member Function

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

Definition at line 651 of Expression.cpp :
 652 {
 653     visitor.Visit(*this);
 654 }


Declaration at line 291 of Expression.hpp

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

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


Clone Member Function

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

Definition at line 646 of Expression.cpp :
 647 {
 648     return new PrefixDecrementNode(GetSpan()Subject()->Clone(cloneContext));
 649 }


Declaration at line 290 of Expression.hpp

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

Calls: sngcm::ast::Node::Clone , sngcm::ast::Node::GetSpan , sngcm::ast::UnaryNode::Subject


ToString Member Function

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

Definition at line 656 of Expression.cpp :
 657 {
 658     return "--" + Subject()->ToString();
 659 }


Declaration at line 292 of Expression.hpp

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

Calls: sngcm::ast::Node::ToString , sngcm::ast::UnaryNode::Subject


top | up | prev | next