Sha256: cffb828aff3abd0cc413d0823719da3a44787c1a3cf460c414168abc6f52f3f5

Contents?: true

Size: 598 Bytes

Versions: 4

Compression:

Stored size: 598 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(N_RAISE)
        end

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mutant-0.5.26 lib/mutant/mutator/node/block.rb
mutant-0.5.25 lib/mutant/mutator/node/block.rb
mutant-0.5.24 lib/mutant/mutator/node/block.rb
mutant-0.5.23 lib/mutant/mutator/node/block.rb