2012-12-10 11:11:08 -05:00
|
|
|
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|
|
2012-12-10 18:17:19 -05:00
|
|
|
arguments = mutation.arguments
|
|
|
|
arguments.names = arguments.required + arguments.optional
|
2012-12-10 11:11:08 -05:00
|
|
|
end if node.arguments
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|