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