top
|
up
| prev |
next
AddNode Class
Definition at line
195
of
Expression.hpp
Constructors
AddNode
(
const
Span& span_)
AddNode
(
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
AddNode Constructor
sngcm::ast::AddNode::AddNode(
const
Span& span_)
Definition at line
431
of
Expression.cpp
:
431
:
BinaryNode
(
NodeType
::
addNode
,
span_
)
432
{
433
}
Declaration at line
198
of
Expression.hpp
AddNode Constructor
sngcm::ast::AddNode::AddNode(
const
Span& span_,
Node
* left_,
Node
* right_)
Definition at line
435
of
Expression.cpp
:
435
:
BinaryNode
(
NodeType
::
addNode
,
span_
,
left_
,
right_
)
436
{
437
}
Declaration at line
199
of
Expression.hpp
Member Function Details
Accept Member Function
void
sngcm::ast::AddNode::Accept(
Visitor
& visitor)
override
Definition at line
444
of
Expression.cpp
:
445
{
446
visitor
.
Visit
(
*
this
)
;
447
}
Declaration at line
201
of
Expression.hpp
Base class overridden functions:
sngcm::ast::Node::Accept
Calls:
sngcm::ast::Visitor::Visit
Clone Member Function
Node
* sngcm::ast::AddNode::Clone(
CloneContext
& cloneContext)
const override
Definition at line
439
of
Expression.cpp
:
440
{
441
return
new
AddNode
(
GetSpan
(
)
,
Left
(
)
->
Clone
(
cloneContext
)
,
Right
(
)
->
Clone
(
cloneContext
)
)
;
442
}
Declaration at line
200
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::AddNode::ToString()
const override
Definition at line
449
of
Expression.cpp
:
450
{
451
return
Left
(
)
->
ToString
(
)
+
" + "
+
Right
(
)
->
ToString
(
)
;
452
}
Declaration at line
202
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