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