top | up | prev | next

UnaryPlusNode Class

Definition at line 255 of Expression.hpp

Constructors

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

UnaryPlusNode Constructor

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

Definition at line 569 of Expression.cpp :
 569 : UnaryNode(NodeType::unaryPlusNodespan_)
 570 {
 571 }


Declaration at line 258 of Expression.hpp


UnaryPlusNode Constructor

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

Definition at line 573 of Expression.cpp :
 573 : UnaryNode(NodeType::unaryPlusNodespan_subject_)
 574 {
 575 }


Declaration at line 259 of Expression.hpp


Member Function Details

Accept Member Function

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

Definition at line 582 of Expression.cpp :
 583 {
 584     visitor.Visit(*this);
 585 }


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 577 of Expression.cpp :
 578 {
 579     return new UnaryPlusNode(GetSpan()Subject()->Clone(cloneContext));
 580 }


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


ToString Member Function

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

Definition at line 587 of Expression.cpp :
 588 {
 589     return "+" + Subject()->ToString();
 590 }


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