top | up | prev | next

ParenthesizedExpressionNode Class

Definition at line 547 of Expression.hpp

Constructors

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

Definition at line 1357 of Expression.cpp :
1357 :
1358 UnaryNode(NodeType::parenthesizedExpressionNodespan_moduleId_)
1359 {
1360 }


Declaration at line 550 of Expression.hpp


ParenthesizedExpressionNode Constructor

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

Definition at line 1362 of Expression.cpp :
1362 :
1363 UnaryNode(NodeType::parenthesizedExpressionNodespan_moduleId_child_)
1364 {
1365 }


Declaration at line 551 of Expression.hpp


Member Function Details

Accept Member Function

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

Definition at line 1383 of Expression.cpp :
1384 {
1385     visitor.Visit(*this);
1386 }


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 1367 of Expression.cpp :
1368 {
1369     ParenthesizedExpressionNode* clone = new ParenthesizedExpressionNode(GetSpan()ModuleId()Subject()->Clone(cloneContext));
1370     return clone;
1371 }


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::Node::ModuleId , sngcm::ast::UnaryNode::Subject


Read Member Function

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

Definition at line 1378 of Expression.cpp :
1379 {
1380     UnaryNode::Read(reader);
1381 }


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 1388 of Expression.cpp :
1389 {
1390     return "(" + Subject()->ToString() + ")";
1391 }


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 1373 of Expression.cpp :
1374 {
1375     UnaryNode::Write(writer);
1376 }


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