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)
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue