top | up | prev | next

UnaryExpressionNode Class

Definition at line 212 of Expression.hpp

Constructors

UnaryExpressionNode()
UnaryExpressionNode(const Span& span_, Operator op_, Node* expr_)

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

UnaryExpressionNode Constructor

sngcpp::ast::UnaryExpressionNode::UnaryExpressionNode()

Definition at line 410 of Expression.cpp :
 410 : UnaryNode(NodeType::unaryExpressionNode)op()
 411 {
 412 }


Declaration at line 215 of Expression.hpp


UnaryExpressionNode Constructor

sngcpp::ast::UnaryExpressionNode::UnaryExpressionNode(const Span& span_, Operator op_, Node * expr_)

Definition at line 414 of Expression.cpp :
 414 : UnaryNode(NodeType::unaryExpressionNodespan_expr_)op(op_)
 415 {
 416 }


Declaration at line 216 of Expression.hpp


Member Function Details

Accept Member Function

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

Definition at line 418 of Expression.cpp :
 419 {
 420     visitor.Visit(*this);
 421 }


Declaration at line 217 of Expression.hpp

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

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


Op Member Function

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

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


Read Member Function

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

Definition at line 429 of Expression.cpp :
 430 {
 431     UnaryNode::Read(reader);
 432     op = reader.ReadOperator();
 433 }


Declaration at line 219 of Expression.hpp

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

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


Write Member Function

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

Definition at line 423 of Expression.cpp :
 424 {
 425     UnaryNode::Write(writer);
 426     writer.Write(op);
 427 }


Declaration at line 218 of Expression.hpp

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

Calls: sngcpp::ast::UnaryNode::Write , sngcpp::ast::Writer::Write


top | up | prev | next