top
|
up
|
prev
|
next
PMExpressionNode Class
Definition at line
184
of
Expression.hpp
Constructors
PMExpressionNode
()
PMExpressionNode
(
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
PMExpressionNode Constructor
sngcpp::ast::PMExpressionNode::PMExpressionNode()
Definition at line
358
of
Expression.cpp
:
358
:
BinaryNode
(
NodeType
::
pmExpressionNode
)
,
op
(
)
359
{
360
}
Declaration at line
187
of
Expression.hpp
PMExpressionNode Constructor
sngcpp::ast::PMExpressionNode::PMExpressionNode(
const
Span& span_,
Node
* left_,
Node
* right_,
Operator
op_)
Definition at line
362
of
Expression.cpp
:
362
:
BinaryNode
(
NodeType
::
pmExpressionNode
,
span_
,
left_
,
right_
)
,
op
(
op_
)
363
{
364
}
Declaration at line
188
of
Expression.hpp
Member Function Details
Accept Member Function
void
sngcpp::ast::PMExpressionNode::Accept(
Visitor
& visitor)
override
Definition at line
366
of
Expression.cpp
:
367
{
368
visitor
.
Visit
(
*
this
)
;
369
}
Declaration at line
189
of
Expression.hpp
Base class overridden functions:
sngcpp::ast::Node::Accept
Calls:
sngcpp::ast::Visitor::Visit
Op Member Function
Operator
sngcpp::ast::PMExpressionNode::Op()
const
Definition at line
192
of
Expression.hpp
:
192
{
return
op
;
}
Read Member Function
void
sngcpp::ast::PMExpressionNode::Read(
Reader
& reader)
override
Definition at line
377
of
Expression.cpp
:
378
{
379
BinaryNode
::
Read
(
reader
)
;
380
op
=
reader
.
ReadOperator
(
)
;
381
}
Declaration at line
191
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::PMExpressionNode::Write(
Writer
& writer)
override
Definition at line
371
of
Expression.cpp
:
372
{
373
BinaryNode
::
Write
(
writer
)
;
374
writer
.
Write
(
op
)
;
375
}
Declaration at line
190
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