CodeQL library for Ruby
codeql/ruby-all 0.8.15-dev (changelog, source)
Search

Class SuccessorTypes::BreakSuccessor

A break control flow successor.

Example:

def m
  while x >= 0
    x -= 1
    if num > 100
      break
    end
  end
  puts "done"
end

The node puts "done" is break successor of the node break.

Import path

import codeql.ruby.CFG

Direct supertypes

Indirect supertypes

Predicates

toString

Gets a textual representation of successor type.