6b2e2a8bb0
* Remove some RBX only nodes * Register parser types * Remove all occurences of ::Rubinius when loading libraries
27 lines
609 B
Ruby
27 lines
609 B
Ruby
module Mutant
|
|
class Mutator
|
|
class Node
|
|
# Emitter for mutations on 19 blocks
|
|
class Block < self
|
|
|
|
handle(:block)
|
|
|
|
# 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 # Block
|
|
end # Node
|
|
end # Mutator
|
|
end # Mutant
|