Sha256: 4e2a76587c015434d0938687f560dcc66ac88f733e7dd7292411fdb96dd5f707

Contents?: true

Size: 558 Bytes

Versions: 3

Compression:

Stored size: 558 Bytes

Contents

module Mutant
  class Mutator
    class Node

      # Mutator for while expressions
      class ConditionalLoop < self

        handle(:until, :while)

        children :condition, :body

      private

        # Emit mutations
        #
        # @return [undefined]
        #
        # @api private
        #
        def dispatch
          emit_singletons
          emit_condition_mutations
          emit_body_mutations if body
          emit_body(nil)
          emit_body(RAISE)
        end

      end # While
    end # Node
  end # Mutator
end # Mutant

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mutant-0.5.22 lib/mutant/mutator/node/conditional_loop.rb
mutant-0.5.21 lib/mutant/mutator/node/conditional_loop.rb
mutant-0.5.20 lib/mutant/mutator/node/conditional_loop.rb