engines: no more `super_inits` method used in old-style automatic init
[nit.git] / src / metrics / mendel_metrics.nit
index cf1bc3a..6c63925 100644 (file)
 #  in Proceedings of the 16th IEEE International Conference on Program Comprehension (OCPC'08)
 module mendel_metrics
 
-import model
 import metrics_base
 import mclasses_metrics
-import phase
-import frontend
+import modelize
 
 redef class ToolContext
-       var mendel_metrics_phase = new MendelMetricsPhase(self, null)
+       var mendel_metrics_phase: Phase = new MendelMetricsPhase(self, null)
 end
 
 private class MendelMetricsPhase
        super Phase
-       redef fun process_mainmodule(mainmodule)
+       redef fun process_mainmodule(mainmodule, given_mmodules)
        do
                if not toolcontext.opt_mendel.value and not toolcontext.opt_all.value then return
                var csv = toolcontext.opt_csv.value