free_mutant/lib/mutant/mutator/node/break.rb
2014-06-06 13:06:52 +00:00

29 lines
475 B
Ruby

# encoding: utf-8
module Mutant
class Mutator
class Node
# Mutator for loop control keywords
class Break < Generic
handle(:break)
private
# Emit mutations
#
# @return [undefined]
#
# @api private
#
def dispatch
super
emit_singletons
children.each_index(&method(:delete_child))
end
end # Break
end # Node
end # Mutator
end # Mutant