
* Do not follow rubinius names anymore. An explict declaration now declares a mutator handles specific AST node. * Has a nice impact on metrics.
23 lines
367 B
Ruby
23 lines
367 B
Ruby
module Mutant
|
|
class Mutator
|
|
# Mutator on AST blocks
|
|
class Block < Mutator
|
|
|
|
handle Rubinius::AST::Block
|
|
|
|
private
|
|
|
|
# Emit mutants
|
|
#
|
|
# @return [undefined]
|
|
#
|
|
# @api private
|
|
#
|
|
def dispatch
|
|
array = node.array
|
|
emit_elements(array)
|
|
emit_element_presence(array)
|
|
end
|
|
end
|
|
end
|
|
end
|