2013-01-01 21:41:39 +01:00
|
|
|
module Mutant
|
|
|
|
class Mutator
|
|
|
|
class Node
|
2013-01-04 22:16:03 +01:00
|
|
|
|
|
|
|
# Mutator for while expressions
|
2013-01-01 21:41:39 +01:00
|
|
|
class While < self
|
|
|
|
|
|
|
|
handle(Rubinius::AST::While)
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
# Emit mutations
|
|
|
|
#
|
|
|
|
# @return [undefined]
|
|
|
|
#
|
|
|
|
# @api private
|
|
|
|
#
|
|
|
|
def dispatch
|
|
|
|
emit_attribute_mutations(:condition)
|
|
|
|
emit_attribute_mutations(:body)
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|