rta: do not enter in annotations
[nit.git] / src / abstracttool.nit
index d1a53bf..d76a3f8 100644 (file)
@@ -21,10 +21,10 @@ package abstracttool
 
 import mmloader
 import syntax
-import nit_version
+private import nit_version
 
-class AbstractCompiler
-special ToolContext
+abstract class AbstractCompiler
+       super ToolContext
 
        init(tool_name: String)
        do
@@ -118,7 +118,7 @@ redef class MMLocalClass
                file.write("class {self}\n")
                if global.visibility_level == 3 and not self == global.intro then
                        file.write("\tclass not visible in this module\n")
-               else if module.visibility_for(global.module) == 0 then
+               else if mmmodule.visibility_for(global.mmmodule) == 0 then
                        file.write("\tclass is defined later in the hierarchy\n")
                else
                        for p in global_properties do
@@ -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