Sha256: 9176ff01cf2f12dc905af7640533695026d5d21d1e48d5c5f0a99fee969d55b9

Contents?: true

Size: 608 Bytes

Versions: 30

Compression:

Stored size: 608 Bytes

Contents

# encoding: utf-8

module Mutant
  class Mutator
    class Node
      # Emitter for mutations on 19 blocks
      class Block < self

        handle(:block)

        children :send, :arguments, :body

      private

        # Emit mutants
        #
        # @return [undefined]
        #
        # @api private
        #
        def dispatch
          emit(send)
          emit_arguments_mutations
          if body
            emit_body_mutations
          end
          emit_body(nil)
          emit_body(RAISE)
          emit_nil
        end

      end # Block
    end # Node
  end # Mutator
end # Mutant

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
mutant-0.5.18 lib/mutant/mutator/node/block.rb
mutant-0.5.17 lib/mutant/mutator/node/block.rb
mutant-0.5.16 lib/mutant/mutator/node/block.rb
mutant-0.5.15 lib/mutant/mutator/node/block.rb
mutant-0.5.14 lib/mutant/mutator/node/block.rb
mutant-0.5.13 lib/mutant/mutator/node/block.rb
mutant-0.5.12 lib/mutant/mutator/node/block.rb
mutant-0.5.11 lib/mutant/mutator/node/block.rb
mutant-0.5.10 lib/mutant/mutator/node/block.rb
mutant-0.5.9 lib/mutant/mutator/node/block.rb
mutant-0.5.8 lib/mutant/mutator/node/block.rb
mutant-0.5.7 lib/mutant/mutator/node/block.rb
mutant-0.5.6 lib/mutant/mutator/node/block.rb
mutant-0.5.5 lib/mutant/mutator/node/block.rb
mutant-0.5.4 lib/mutant/mutator/node/block.rb
mutant-0.5.3 lib/mutant/mutator/node/block.rb
mutant-0.5.2 lib/mutant/mutator/node/block.rb
mutant-0.5.1 lib/mutant/mutator/node/block.rb
mutant-0.5.0 lib/mutant/mutator/node/block.rb
mutant-0.3.6 lib/mutant/mutator/node/block.rb