free_mutant/lib/mutant/mutator/node/while.rb

27 lines
422 B
Ruby
Raw Normal View History

module Mutant
class Mutator
class Node
# Mutator for while expressions
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