Sha256: 04ab2ec7fbf8bffb5eed1d6b4b279236f694e1a866d0f6b044e3a232ea81c38b

Contents?: true

Size: 517 Bytes

Versions: 6

Compression:

Stored size: 517 Bytes

Contents

# encoding: utf-8

module Mutant
  class Mutator
    class Node

      # Mutator for while expressions
      class While < self

        handle(:while)

        children :condition, :body

      private

        # Emit mutations
        #
        # @return [undefined]
        #
        # @api private
        #
        def dispatch
          emit_condition_mutations
          emit_body_mutations
          emit_body(nil)
          emit_nil
        end

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mutant-0.3.1 lib/mutant/mutator/node/while.rb
mutant-0.3.0 lib/mutant/mutator/node/while.rb
mutant-0.3.0.rc5 lib/mutant/mutator/node/while.rb
mutant-0.3.0.rc4 lib/mutant/mutator/node/while.rb
mutant-0.3.0.rc3 lib/mutant/mutator/node/while.rb
mutant-0.3.0.rc2 lib/mutant/mutator/node/while.rb