Port while mutator to parser
This commit is contained in:
parent
c230ca74b9
commit
7b4eea36d8
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue