Class: RDG::Control::Break

Inherits:
Jump show all
Defined in:
lib/rdg/control/break.rb

Instance Method Summary collapse

Methods inherited from Jump

#analyse

Methods inherited from Analysis::Analyser

#initialize, register_analyser, register_default_analyser

Constructor Details

This class inherits a constructor from RDG::Analysis::Analyser

Instance Method Details

#new_successorsObject



8
9
10
11
12
# File 'lib/rdg/control/break.rb', line 8

def new_successors
  graph
    .each_successor(test)
    .reject { |s| s.ancestors.include?(block) }
end

#testObject



14
15
16
# File 'lib/rdg/control/break.rb', line 14

def test
  equivalences.first(block.children.first)
end