Class: RDG::Control::ConditionalLoop
Instance Method Summary
collapse
#analyse
#initialize, register_analyser, register_default_analyser
Instance Method Details
#end_nodes ⇒ Object
20
21
22
|
# File 'lib/rdg/control/conditional_loop.rb', line 20
def end_nodes
[@predicate]
end
|
#internal_flow_edges ⇒ Object
12
13
14
|
# File 'lib/rdg/control/conditional_loop.rb', line 12
def internal_flow_edges
[[@predicate, @body], [@body, @predicate]]
end
|
#prepare ⇒ Object
8
9
10
|
# File 'lib/rdg/control/conditional_loop.rb', line 8
def prepare
@predicate, @body = children
end
|
#start_node ⇒ Object
16
17
18
|
# File 'lib/rdg/control/conditional_loop.rb', line 16
def start_node
@predicate
end
|