top | up | prev | next

AssignmentExpressionNode Class

Definition at line 41 of Expression.hpp

Constructors

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

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

AssignmentExpressionNode Constructor

sngcpp::ast::AssignmentExpressionNode::AssignmentExpressionNode()

Definition at line 100 of Expression.cpp :
 100 : BinaryNode(NodeType::assignmentExpressionNode)
 101 {
 102 }


Declaration at line 44 of Expression.hpp


AssignmentExpressionNode Constructor

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

Definition at line 104 of Expression.cpp :
 104 : BinaryNode(NodeType::assignmentExpressionNodespan_left_right_)op(op_)
 105 {
 106 }


Declaration at line 45 of Expression.hpp


Member Function Details

Accept Member Function

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

Definition at line 108 of Expression.cpp :
 109 {
 110     visitor.Visit(*this);
 111 }


Declaration at line 46 of Expression.hpp

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

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


Op Member Function

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

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


Read Member Function

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

Definition at line 119 of Expression.cpp :
 120 {
 121     BinaryNode::Read(reader);
 122     op = reader.ReadOperator();
 123 }


Declaration at line 48 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::AssignmentExpressionNode::Write(Writer & writer) override

Definition at line 113 of Expression.cpp :
 114 {
 115     BinaryNode::Write(writer);
 116     writer.Write(op);
 117 }


Declaration at line 47 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