top | up | prev | next

UnaryPlusNode Class

Definition at line 255 of Expression.hpp

Constructors

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

UnaryPlusNode Constructor

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

Definition at line 607 of Expression.cpp :
 607 : UnaryNode(NodeType::unaryPlusNodespan_moduleId_)
 608 {
 609 }


Declaration at line 258 of Expression.hpp


UnaryPlusNode Constructor

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

Definition at line 611 of Expression.cpp :
 611 : UnaryNode(NodeType::unaryPlusNodespan_moduleId_subject_)
 612 {
 613 }


Declaration at line 259 of Expression.hpp


Member Function Details

Accept Member Function

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

Definition at line 621 of Expression.cpp :
 622 {
 623     visitor.Visit(*this);
 624 }


Declaration at line 261 of Expression.hpp

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

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


Clone Member Function

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

Definition at line 615 of Expression.cpp :
 616 {
 617     UnaryPlusNode* clone = new UnaryPlusNode(GetSpan()ModuleId()Subject()->Clone(cloneContext));
 618     return clone;
 619 }


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

Definition at line 626 of Expression.cpp :
 627 {
 628     return "+" + Subject()->ToString();
 629 }


Declaration at line 262 of Expression.hpp

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

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


top | up | prev | next