top
|
up
|
prev
|
next
ImplicationNode Class
Definition at line
55
of
Expression.hpp
Constructors
ImplicationNode
(
const
Span& span_)
ImplicationNode
(
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
ImplicationNode Constructor
sngcm::ast::ImplicationNode::ImplicationNode(
const
Span& span_)
Definition at line
109
of
Expression.cpp
:
109
:
BinaryNode
(
NodeType
::
implicationNode
,
span_
)
110
{
111
}
Declaration at line
58
of
Expression.hpp
ImplicationNode Constructor
sngcm::ast::ImplicationNode::ImplicationNode(
const
Span& span_,
Node
* left_,
Node
* right_)
Definition at line
113
of
Expression.cpp
:
113
:
BinaryNode
(
NodeType
::
implicationNode
,
span_
,
left_
,
right_
)
114
{
115
}
Declaration at line
59
of
Expression.hpp
Member Function Details
Accept Member Function
void
sngcm::ast::ImplicationNode::Accept(
Visitor
& visitor)
override
Definition at line
122
of
Expression.cpp
:
123
{
124
visitor
.
Visit
(
*
this
)
;
125
}
Declaration at line
61
of
Expression.hpp
Base class overridden functions:
sngcm::ast::Node::Accept
Calls:
sngcm::ast::Visitor::Visit
Clone Member Function
Node
* sngcm::ast::ImplicationNode::Clone(
CloneContext
& cloneContext)
const override
Definition at line
117
of
Expression.cpp
:
118
{
119
return
new
ImplicationNode
(
GetSpan
(
)
,
Left
(
)
->
Clone
(
cloneContext
)
,
Right
(
)
->
Clone
(
cloneContext
)
)
;
120
}
Declaration at line
60
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::ImplicationNode::ToString()
const override
Definition at line
127
of
Expression.cpp
:
128
{
129
return
Left
(
)
->
ToString
(
)
+
"=>"
+
Right
(
)
->
ToString
(
)
;
130
}
Declaration at line
62
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