top | up | prev | next

PostfixIncrementNode Class

Definition at line 401 of Expression.hpp

Constructors

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

PostfixIncrementNode Constructor

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

Definition at line 972 of Expression.cpp :
 972 : UnaryNode(NodeType::postfixIncrementNodespan_moduleId_)
 973 {
 974 }


Declaration at line 404 of Expression.hpp


PostfixIncrementNode Constructor

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

Definition at line 976 of Expression.cpp :
 976 :
 977 UnaryNode(NodeType::postfixIncrementNodespan_moduleId_subject_)
 978 {
 979 }


Declaration at line 405 of Expression.hpp


Member Function Details

Accept Member Function

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

Definition at line 987 of Expression.cpp :
 988 {
 989     visitor.Visit(*this);
 990 }


Declaration at line 407 of Expression.hpp

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

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


Clone Member Function

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

Definition at line 981 of Expression.cpp :
 982 {
 983     PostfixIncrementNode* clone = new PostfixIncrementNode(GetSpan()ModuleId()Subject()->Clone(cloneContext));
 984     return clone;
 985 }


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

Definition at line 992 of Expression.cpp :
 993 {
 994     return Subject()->ToString() + "++";
 995 }


Declaration at line 408 of Expression.hpp

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

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


top | up | prev | next