top | up | prev | next

PrefixIncrementNode Class

Definition at line 275 of Expression.hpp

Constructors

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

PrefixIncrementNode Constructor

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

Definition at line 655 of Expression.cpp :
 655 : UnaryNode(NodeType::prefixIncrementNodespan_moduleId_)
 656 {
 657 }


Declaration at line 278 of Expression.hpp


PrefixIncrementNode Constructor

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

Definition at line 659 of Expression.cpp :
 659 :
 660 UnaryNode(NodeType::prefixIncrementNodespan_moduleId_subject_)
 661 {
 662 }


Declaration at line 279 of Expression.hpp


Member Function Details

Accept Member Function

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

Definition at line 670 of Expression.cpp :
 671 {
 672     visitor.Visit(*this);
 673 }


Declaration at line 281 of Expression.hpp

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

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


Clone Member Function

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

Definition at line 664 of Expression.cpp :
 665 {
 666     PrefixIncrementNode* clone = new PrefixIncrementNode(GetSpan()ModuleId()Subject()->Clone(cloneContext));
 667     return clone;
 668 }


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

Definition at line 675 of Expression.cpp :
 676 {
 677     return "++" + Subject()->ToString();
 678 }


Declaration at line 282 of Expression.hpp

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

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


top | up | prev | next