parser: `Visitor::visit` does not accepts `null`
[nit.git] / src / abstracttool.nit
index bed57f4..d76a3f8 100644 (file)
@@ -23,7 +23,7 @@ import mmloader
 import syntax
 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