Sha256: f0d4bdd7c9b80760958487e8eba046ee154fd3435a583d14bcf19df04689755b

Contents?: true

Size: 591 Bytes

Versions: 6

Compression:

Stored size: 591 Bytes

Contents

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

        handle(Rubinius::AST::Iter19)

        # Emit mutants
        #
        # @return [undefined]
        #
        # @api private
        #
        def dispatch
          emit_attribute_mutations(:body)
          emit_attribute_mutations(:arguments) do |mutation|
            arguments = mutation.arguments
            arguments.names = arguments.required + arguments.optional
            mutation
          end if node.arguments
        end

      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mutant-0.2.20 lib/mutant/mutator/node/iter_19.rb
mutant-0.2.17 lib/mutant/mutator/node/iter_19.rb
mutant-0.2.16 lib/mutant/mutator/node/iter_19.rb
mutant-0.2.15 lib/mutant/mutator/node/iter_19.rb
mutant-0.2.14 lib/mutant/mutator/node/iter_19.rb
mutant-0.2.13 lib/mutant/mutator/node/iter_19.rb