Sha256: 2fd4327621dd02181abb5a13ac030d50adc75f2b06c196ed656c38069f16fecd

Contents?: true

Size: 596 Bytes

Versions: 3

Compression:

Stored size: 596 Bytes

Contents

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_singletons
          emit(send)
          emit_arguments_mutations
          if body
            emit_body_mutations
          end
          emit_body(nil)
          emit_body(RAISE)
        end

      end # Block
    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/block.rb
mutant-0.5.21 lib/mutant/mutator/node/block.rb
mutant-0.5.20 lib/mutant/mutator/node/block.rb