nitc: globally skip annotation nodes
authorJean Privat <jean@pryen.org>
Tue, 16 Jul 2013 19:51:34 +0000 (15:51 -0400)
committerJean Privat <jean@pryen.org>
Thu, 25 Jul 2013 17:33:16 +0000 (13:33 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

src/abstracttool.nit

index dc3187e..d76a3f8 100644 (file)
@@ -129,3 +129,11 @@ redef class MMLocalClass
                file.write("end # {self}\n")
        end
 end
+
+redef class AAnnotations
+       # Shortcut annotations and skip them completely
+       redef fun visit_all(v)
+       do
+               # Do notning
+       end
+end