rta: do not enter in annotations
authorJean Privat <jean@pryen.org>
Tue, 16 Jul 2013 19:51:56 +0000 (15:51 -0400)
committerJean Privat <jean@pryen.org>
Thu, 25 Jul 2013 17:33:16 +0000 (13:33 -0400)
src/rapid_type_analysis.nit

index 6675dcd..fe49d70 100644 (file)
@@ -401,7 +401,10 @@ private class RapidTypeVisitor
                        var implicit_cast_to = node.implicit_cast_to
                        if implicit_cast_to != null then self.add_cast_type(implicit_cast_to)
                end
-               node.visit_all(self)
+               # RTA does not enter in AAnnotations
+               if not node isa AAnnotations then
+                       node.visit_all(self)
+               end
        end
 
        # Force to get the primitive class named `name' or abort