top | up | prev | next

PostfixDecrementNode Class

Definition at line 411 of Expression.hpp

Constructors

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

PostfixDecrementNode Constructor

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

Definition at line 941 of Expression.cpp :
 941 : UnaryNode(NodeType::postfixDecrementNodespan_)
 942 {
 943 }


Declaration at line 414 of Expression.hpp


PostfixDecrementNode Constructor

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

Definition at line 945 of Expression.cpp :
 945 : UnaryNode(NodeType::postfixDecrementNodespan_subject_)
 946 {
 947 }


Declaration at line 415 of Expression.hpp


Member Function Details

Accept Member Function

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

Definition at line 954 of Expression.cpp :
 955 {
 956     visitor.Visit(*this);
 957 }


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 949 of Expression.cpp :
 950 {
 951     return new PostfixDecrementNode(GetSpan()Subject()->Clone(cloneContext));
 952 }


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::UnaryNode::Subject


ToString Member Function

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

Definition at line 959 of Expression.cpp :
 960 {
 961     return Subject()->ToString() + "--";
 962 }


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