Port while mutator to parser

This commit is contained in:
Markus Schirp 2013-06-14 20:00:42 +02:00
parent c230ca74b9
commit 7b4eea36d8

View file

@ -7,6 +7,8 @@ module Mutant
handle(:while)
CONDITION_INDEX, BODY_INDEX = 0, 1
private
# Emit mutations
@ -16,8 +18,8 @@ module Mutant
# @api private
#
def dispatch
emit_attribute_mutations(:condition)
emit_attribute_mutations(:body)
mutate_child(CONDITION_INDEX)
mutate_child(BODY_INDEX)
end
end # While