friendz: use ai::backtrack instead of the ad-hoc solver
[nit.git] / src / frontend.nit
index 62c1d4a..9b6e84b 100644 (file)
@@ -26,6 +26,7 @@ import auto_super_init
 import div_by_zero
 import cached
 import serialization_phase
+import check_annotation
 
 redef class ToolContext
        # FIXME: there is conflict in linex in nitc, so use this trick to force invocation
@@ -37,7 +38,8 @@ redef class ToolContext
                # Force easy warnings before intraproc-errors
                phases.add_edge(scope_phase, simple_misc_analysis_phase)
                # Code genrated by the serialization phase must be analyzed for literals
-               phases.add_edge(literal_phase, serialization_phase)
+               phases.add_edge(literal_phase, serialization_phase_pre_model)
+               phases.add_edge(modelize_class_phase, serialization_phase_pre_model)
                return true
        end
 end