top
|
up
|
prev
|
next
DisjunctionNode Class
Definition at line
65
of
Expression.hpp
Constructors
DisjunctionNode
(
const
Span& span_)
DisjunctionNode
(
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
DisjunctionNode Constructor
sngcm::ast::DisjunctionNode::DisjunctionNode(
const
Span& span_)
Definition at line
132
of
Expression.cpp
:
132
:
BinaryNode
(
NodeType
::
disjunctionNode
,
span_
)
133
{
134
}
Declaration at line
68
of
Expression.hpp
DisjunctionNode Constructor
sngcm::ast::DisjunctionNode::DisjunctionNode(
const
Span& span_,
Node
* left_,
Node
* right_)
Definition at line
136
of
Expression.cpp
:
136
:
BinaryNode
(
NodeType
::
disjunctionNode
,
span_
,
left_
,
right_
)
137
{
138
}
Declaration at line
69
of
Expression.hpp
Member Function Details
Accept Member Function
void
sngcm::ast::DisjunctionNode::Accept(
Visitor
& visitor)
override
Definition at line
145
of
Expression.cpp
:
146
{
147
visitor
.
Visit
(
*
this
)
;
148
}
Declaration at line
71
of
Expression.hpp
Base class overridden functions:
sngcm::ast::Node::Accept
Calls:
sngcm::ast::Visitor::Visit
Clone Member Function
Node
* sngcm::ast::DisjunctionNode::Clone(
CloneContext
& cloneContext)
const override
Definition at line
140
of
Expression.cpp
:
141
{
142
return
new
DisjunctionNode
(
GetSpan
(
)
,
Left
(
)
->
Clone
(
cloneContext
)
,
Right
(
)
->
Clone
(
cloneContext
)
)
;
143
}
Declaration at line
70
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::DisjunctionNode::ToString()
const override
Definition at line
150
of
Expression.cpp
:
151
{
152
return
Left
(
)
->
ToString
(
)
+
" || "
+
Right
(
)
->
ToString
(
)
;
153
}
Declaration at line
72
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