top | up | prev | next

ParenthesizedExpressionNode Class

Definition at line 547 of Expression.hpp

Constructors

ParenthesizedExpressionNode(const Span& span_)
ParenthesizedExpressionNode(const Span& span_, Node* child_)

Member Functions

void Accept(Visitor& visitor) override
Node* Clone(CloneContext& cloneContext) const override
void Read(AstReader& reader) override
std::string ToString() const override
void Write(AstWriter& writer) override

Constructor Details

ParenthesizedExpressionNode Constructor

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

Definition at line 1290 of Expression.cpp :
1290 : UnaryNode(NodeType::parenthesizedExpressionNodespan_)
1291 {
1292 }


Declaration at line 550 of Expression.hpp


ParenthesizedExpressionNode Constructor

sngcm::ast::ParenthesizedExpressionNode::ParenthesizedExpressionNode(const Span& span_, Node * child_)

Definition at line 1294 of Expression.cpp :
1294 : UnaryNode(NodeType::parenthesizedExpressionNodespan_child_)
1295 {
1296 }


Declaration at line 551 of Expression.hpp


Member Function Details

Accept Member Function

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

Definition at line 1314 of Expression.cpp :
1315 {
1316     visitor.Visit(*this);
1317 }


Declaration at line 555 of Expression.hpp

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

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


Clone Member Function

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

Definition at line 1298 of Expression.cpp :
1299 {
1300     ParenthesizedExpressionNode* clone = new ParenthesizedExpressionNode(GetSpan()Subject()->Clone(cloneContext));
1301     return clone;
1302 }


Declaration at line 552 of Expression.hpp

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

Calls: sngcm::ast::Node::Clone , sngcm::ast::Node::GetSpan , sngcm::ast::UnaryNode::Subject


Read Member Function

void sngcm::ast::ParenthesizedExpressionNode::Read(AstReader & reader) override

Definition at line 1309 of Expression.cpp :
1310 {
1311     UnaryNode::Read(reader);
1312 }


Declaration at line 554 of Expression.hpp

Base class overridden functions: sngcm::ast::Node::Read , sngcm::ast::UnaryNode::Read

Calls: sngcm::ast::UnaryNode::Read


ToString Member Function

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

Definition at line 1319 of Expression.cpp :
1320 {
1321     return "(" + Subject()->ToString() + ")";
1322 }


Declaration at line 556 of Expression.hpp

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

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


Write Member Function

void sngcm::ast::ParenthesizedExpressionNode::Write(AstWriter & writer) override

Definition at line 1304 of Expression.cpp :
1305 {
1306     UnaryNode::Write(writer);
1307 }


Declaration at line 553 of Expression.hpp

Base class overridden functions: sngcm::ast::Node::Write , sngcm::ast::UnaryNode::Write

Calls: sngcm::ast::UnaryNode::Write


top | up | prev | next