2013-11-03 15:37:47 -05:00
|
|
|
module Mutant
|
|
|
|
class Mutator
|
|
|
|
class Node
|
|
|
|
|
|
|
|
# Yield mutator
|
|
|
|
class Yield < Generic
|
|
|
|
|
|
|
|
handle(:yield)
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
# Emit mutations
|
|
|
|
#
|
|
|
|
# @return [undefined]
|
|
|
|
#
|
|
|
|
# @api private
|
|
|
|
#
|
|
|
|
def dispatch
|
|
|
|
super
|
2014-06-05 12:37:31 -04:00
|
|
|
emit_singletons
|
2013-11-03 15:37:47 -05:00
|
|
|
children.each_index(&method(:delete_child))
|
|
|
|
end
|
|
|
|
|
|
|
|
end # Yield
|
|
|
|
end # Node
|
|
|
|
end # Mutator
|
|
|
|
end # Mutant
|