free_mutant/lib/mutant/mutator/node/while.rb
Markus Schirp 6b2e2a8bb0 Initial round of refactoring
* Remove some RBX only nodes
* Register parser types
* Remove all occurences of ::Rubinius when loading libraries
2013-06-14 21:11:54 +02:00

26 lines
442 B
Ruby

module Mutant
class Mutator
class Node
# Mutator for while expressions
class While < self
handle(:while)
private
# Emit mutations
#
# @return [undefined]
#
# @api private
#
def dispatch
emit_attribute_mutations(:condition)
emit_attribute_mutations(:body)
end
end # While
end # Node
end # Mutator
end # Mutant