Sha256: 10e307d6397fc0cdc0b9bf9f011824b3343b9ac7187e38e3303ee9cb6c76f4e7

Contents?: true

Size: 570 Bytes

Versions: 7

Compression:

Stored size: 570 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
          end if node.arguments
        end

      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
mutant-0.2.12 lib/mutant/mutator/node/iter_19.rb
mutant-0.2.11 lib/mutant/mutator/node/iter_19.rb
mutant-0.2.9 lib/mutant/mutator/node/iter_19.rb
mutant-0.2.8 lib/mutant/mutator/node/iter_19.rb
mutant-0.2.7 lib/mutant/mutator/node/iter_19.rb
mutant-0.2.6 lib/mutant/mutator/node/iter_19.rb
mutant-0.2.5 lib/mutant/mutator/node/iter_19.rb