typing: add `ARangeExpr::init_callsite` and use it everywhere
[nit.git] / src / phase.nit
index 70d3a71..3a93084 100644 (file)
@@ -60,8 +60,10 @@ redef class ToolContext
                                end
                                errcount = self.error_count
                                for nclassdef in nmodule.n_classdefs do
+                                       self.info(" phase: {phase.class_name} for {nclassdef.location}", 3)
+                                       assert phase.toolcontext == self
+                                       phase.process_nclassdef(nclassdef)
                                        for npropdef in nclassdef.n_propdefs do
-                                               self.info(" phase: {phase.class_name} for {npropdef.location}", 4)
                                                assert phase.toolcontext == self
                                                phase.process_npropdef(npropdef)
                                        end
@@ -124,6 +126,11 @@ abstract class Phase
        # @toimplement
        fun process_nmodule(nmodule: AModule) do end
 
+       # Specific actions to execute on the tree of a class definition
+       # Note that the order of the visit is the one of the file
+       # @toimplement
+       fun process_nclassdef(nclassdef: AClassdef) do end
+
        # Specific actions to execute on the tree of a property
        # Note that the order of the visit is the one of the file
        # @toimplement