free_mutant/lib/mutant/mutator/node/iter_19.rb
Markus Schirp 40d5230c68 Introduce noop mutation guards and argument mutators
* Sorry for not splitting up into smaller commit
2012-12-11 00:17:19 +01:00

26 lines
570 B
Ruby

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