class RDG::Control::When

Public Instance Methods

internal_flow_edges() click to toggle source
# File lib/rdg/control/when.rb, line 12
def internal_flow_edges
  [[@test, @action]]
end
prepare() click to toggle source
# File lib/rdg/control/when.rb, line 8
def prepare
  @test, @action = children
end
propogate_outgoing_flow() click to toggle source
# File lib/rdg/control/when.rb, line 20
def propogate_outgoing_flow
  successors = graph.each_successor(@ast_node).to_a
  graph.add_edge(@test, successors.first)
  graph.add_edge(@action, successors.last)
end
start_node() click to toggle source
# File lib/rdg/control/when.rb, line 16
def start_node
  @test
end