top | up | prev | next

PrefixDecrementNode Class

Definition at line 285 of Expression.hpp

Constructors

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

Definition at line 680 of Expression.cpp :
 680 : UnaryNode(NodeType::prefixDecrementNodespan_moduleId_)
 681 {
 682 }


Declaration at line 288 of Expression.hpp


PrefixDecrementNode Constructor

sngcm::ast::PrefixDecrementNode::PrefixDecrementNode(const Span& span_, const boost::uuids::uuid& moduleId_, Node * subject_)

Definition at line 684 of Expression.cpp :
 684 :
 685 UnaryNode(NodeType::prefixDecrementNodespan_moduleId_subject_)
 686 {
 687 }


Declaration at line 289 of Expression.hpp


Member Function Details

Accept Member Function

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

Definition at line 695 of Expression.cpp :
 696 {
 697     visitor.Visit(*this);
 698 }


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 689 of Expression.cpp :
 690 {
 691     PrefixDecrementNode* clone = new PrefixDecrementNode(GetSpan()ModuleId()Subject()->Clone(cloneContext));
 692     return clone;
 693 }


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::Node::ModuleId , sngcm::ast::UnaryNode::Subject


ToString Member Function

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

Definition at line 700 of Expression.cpp :
 701 {
 702     return "--" + Subject()->ToString();
 703 }


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