Add guard to ensure generic mutator only visits nodes

This commit is contained in:
Markus Schirp 2013-07-05 01:32:05 +02:00
parent df3ec6c0bf
commit 93da846051

View file

@ -28,7 +28,7 @@ module Mutant
#
def dispatch
children.each_index do |index|
mutate_child(index) if children.at(index)
mutate_child(index) if children.at(index).kind_of?(Parser::AST::Node)
end
end