rta: do not enter in annotations
[nit.git] / src / abstracttool.nit
index 3f5e50b..d76a3f8 100644 (file)
@@ -21,9 +21,9 @@ package abstracttool
 
 import mmloader
 import syntax
-import nit_version
+private import nit_version
 
-class AbstractCompiler
+abstract class AbstractCompiler
        super ToolContext
 
        init(tool_name: String)
@@ -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