
This is a reaction to the to_source rewrite * Do not use 1.8 specific nodes anymore * Do not generate AST nodes that would not be generatable from source
27 lines
591 B
Ruby
27 lines
591 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
|
|
mutation
|
|
end if node.arguments
|
|
end
|
|
|
|
end
|
|
end
|
|
end
|
|
end
|