Sha256: 87bc75a073d554f70b56ca5887d0c6cde0ff64c04f214bb803e0841d7a35bfd4

Contents?: true

Size: 570 Bytes

Versions: 8

Compression:

Stored size: 570 Bytes

Contents

# encoding: utf-8

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_condition_mutations
          emit_body_mutations if body
          emit_body(nil)
          emit_body(RAISE)
          emit_nil
        end

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mutant-0.5.18 lib/mutant/mutator/node/conditional_loop.rb
mutant-0.5.17 lib/mutant/mutator/node/conditional_loop.rb
mutant-0.5.16 lib/mutant/mutator/node/conditional_loop.rb
mutant-0.5.15 lib/mutant/mutator/node/conditional_loop.rb
mutant-0.5.14 lib/mutant/mutator/node/conditional_loop.rb
mutant-0.5.13 lib/mutant/mutator/node/conditional_loop.rb
mutant-0.5.12 lib/mutant/mutator/node/conditional_loop.rb
mutant-0.5.11 lib/mutant/mutator/node/conditional_loop.rb