top
|
up
|
prev
|
next
DivNode Class
Definition at line
225
of
Expression.hpp
Constructors
DivNode
(
const
Span& span_)
DivNode
(
const
Span& span_,
Node
* left_,
Node
* right_)
Member Functions
void
Accept
(
Visitor
& visitor)
override
Node
*
Clone
(
CloneContext
& cloneContext)
const override
std::string
ToString
()
const override
Constructor Details
DivNode Constructor
sngcm::ast::DivNode::DivNode(
const
Span& span_)
Definition at line
500
of
Expression.cpp
:
500
:
BinaryNode
(
NodeType
::
divNode
,
span_
)
501
{
502
}
Declaration at line
228
of
Expression.hpp
DivNode Constructor
sngcm::ast::DivNode::DivNode(
const
Span& span_,
Node
* left_,
Node
* right_)
Definition at line
504
of
Expression.cpp
:
504
:
BinaryNode
(
NodeType
::
divNode
,
span_
,
left_
,
right_
)
505
{
506
}
Declaration at line
229
of
Expression.hpp
Member Function Details
Accept Member Function
void
sngcm::ast::DivNode::Accept(
Visitor
& visitor)
override
Definition at line
513
of
Expression.cpp
:
514
{
515
visitor
.
Visit
(
*
this
)
;
516
}
Declaration at line
231
of
Expression.hpp
Base class overridden functions:
sngcm::ast::Node::Accept
Calls:
sngcm::ast::Visitor::Visit
Clone Member Function
Node
* sngcm::ast::DivNode::Clone(
CloneContext
& cloneContext)
const override
Definition at line
508
of
Expression.cpp
:
509
{
510
return
new
DivNode
(
GetSpan
(
)
,
Left
(
)
->
Clone
(
cloneContext
)
,
Right
(
)
->
Clone
(
cloneContext
)
)
;
511
}
Declaration at line
230
of
Expression.hpp
Base class overridden functions:
sngcm::ast::Node::Clone
Calls:
sngcm::ast::BinaryNode::Left
,
sngcm::ast::BinaryNode::Right
,
sngcm::ast::Node::Clone
,
sngcm::ast::Node::GetSpan
ToString Member Function
std::string sngcm::ast::DivNode::ToString()
const override
Definition at line
518
of
Expression.cpp
:
519
{
520
return
Left
(
)
->
ToString
(
)
+
" / "
+
Right
(
)
->
ToString
(
)
;
521
}
Declaration at line
232
of
Expression.hpp
Base class overridden functions:
sngcm::ast::Node::ToString
Calls:
sngcm::ast::BinaryNode::Left
,
sngcm::ast::BinaryNode::Right
,
sngcm::ast::Node::ToString
top
|
up
|
prev
|
next