top | up | prev | next

AdditiveExpressionNode Class

Definition at line 158 of Expression.hpp

Constructors

AdditiveExpressionNode()
AdditiveExpressionNode(const Span& span_, Node* left_, Node* right_, Operator op_)

Member Functions

void Accept(Visitor& visitor) override
Operator Op() const
void Read(Reader& reader) override
void Write(Writer& writer) override

Member Variables

Operator op

Constructor Details

AdditiveExpressionNode Constructor

sngcpp::ast::AdditiveExpressionNode::AdditiveExpressionNode()

Definition at line 308 of Expression.cpp :
 308 : BinaryNode(NodeType::additiveExpressionNode)op()
 309 {
 310 }


Declaration at line 161 of Expression.hpp


AdditiveExpressionNode Constructor

sngcpp::ast::AdditiveExpressionNode::AdditiveExpressionNode(const Span& span_, Node * left_, Node * right_, Operator op_)

Definition at line 312 of Expression.cpp :
 312 : BinaryNode(NodeType::additiveExpressionNodespan_left_right_)op(op_)
 313 {
 314 }


Declaration at line 162 of Expression.hpp


Member Function Details

Accept Member Function

void sngcpp::ast::AdditiveExpressionNode::Accept(Visitor & visitor) override

Definition at line 316 of Expression.cpp :
 317 {
 318     visitor.Visit(*this);
 319 }


Declaration at line 163 of Expression.hpp

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

Calls: sngcpp::ast::Visitor::Visit


Op Member Function

Operator sngcpp::ast::AdditiveExpressionNode::Op() const

Definition at line 166 of Expression.hpp :
166 { return op; }


Read Member Function

void sngcpp::ast::AdditiveExpressionNode::Read(Reader & reader) override

Definition at line 327 of Expression.cpp :
 328 {
 329     BinaryNode::Read(reader);
 330     op = reader.ReadOperator();
 331 }


Declaration at line 165 of Expression.hpp

Base class overridden functions: sngcpp::ast::BinaryNode::Read , sngcpp::ast::Node::Read

Calls: sngcpp::ast::BinaryNode::Read , sngcpp::ast::Reader::ReadOperator


Write Member Function

void sngcpp::ast::AdditiveExpressionNode::Write(Writer & writer) override

Definition at line 321 of Expression.cpp :
 322 {
 323     BinaryNode::Write(writer);
 324     writer.Write(op);
 325 }


Declaration at line 164 of Expression.hpp

Base class overridden functions: sngcpp::ast::BinaryNode::Write , sngcpp::ast::Node::Write

Calls: sngcpp::ast::BinaryNode::Write , sngcpp::ast::Writer::Write


top | up | prev | next