free_mutant/lib/mutant/mutator/node/literal/empty_array.rb
2012-12-06 21:30:28 +01:00

26 lines
488 B
Ruby

module Mutant
class Mutator
class Node
class Literal < self
# Mutator for empty array literals
class EmptyArray < self
handle(Rubinius::AST::EmptyArray)
private
# Emit mutants
#
# @return [undefined]
#
# @api private
#
def dispatch
emit_nil
emit_node(Rubinius::AST::ArrayLiteral, [new_nil])
end
end
end
end
end
end