top | up | prev | next

PostfixDecrementNode Class

Definition at line 411 of Expression.hpp

Constructors

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

PostfixDecrementNode Constructor

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

Definition at line 997 of Expression.cpp :
 997 : UnaryNode(NodeType::postfixDecrementNodespan_moduleId_)
 998 {
 999 }


Declaration at line 414 of Expression.hpp


PostfixDecrementNode Constructor

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

Definition at line 1001 of Expression.cpp :
1001 : UnaryNode(NodeType::postfixDecrementNodespan_moduleId_subject_)
1002 {
1003 }


Declaration at line 415 of Expression.hpp


Member Function Details

Accept Member Function

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

Definition at line 1011 of Expression.cpp :
1012 {
1013     visitor.Visit(*this);
1014 }


Declaration at line 417 of Expression.hpp

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

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


Clone Member Function

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

Definition at line 1005 of Expression.cpp :
1006 {
1007     PostfixDecrementNode* clone = new PostfixDecrementNode(GetSpan()ModuleId()Subject()->Clone(cloneContext));
1008     return clone;
1009 }


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

Definition at line 1016 of Expression.cpp :
1017 {
1018     return Subject()->ToString() + "--";
1019 }


Declaration at line 418 of Expression.hpp

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

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


top | up | prev | next