frontend: remove deprecated cached annotation and phase
[nit.git] / src / frontend / frontend.nit
index 713c6fa..8c5079f 100644 (file)
@@ -21,7 +21,6 @@ import literal
 import modelize
 import semantize
 import div_by_zero
-import cached
 import serialization_phase
 import check_annotation
 import glsl_validation
@@ -29,8 +28,12 @@ import glsl_validation
 redef class ToolContext
        # FIXME: there is conflict in linex in nitc, so use this trick to force invocation
        private var dummy: Bool = do_dummy
-       fun do_dummy: Bool
+
+       # SEE `dummy`
+       private fun do_dummy: Bool
        do
+               # Force no warning before analysing classes
+               phases.add_edge(modelize_class_phase, no_warning_phase)
                # Force easy warnings after modelbuilder
                phases.add_edge(simple_misc_analysis_phase, modelize_property_phase)
                # Force easy warnings before intraproc-errors