phase: add an indirection to process_npropdef so that specifc toolcontext can control it
authorJean Privat <jean@pryen.org>
Sat, 6 Sep 2014 15:33:46 +0000 (11:33 -0400)
committerJean Privat <jean@pryen.org>
Sat, 6 Sep 2014 15:33:57 +0000 (11:33 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

src/phase.nit

index 7cefaf0..367cffa 100644 (file)
@@ -106,7 +106,7 @@ redef class ToolContext
                                        phase.process_nclassdef(nclassdef)
                                        for npropdef in nclassdef.n_propdefs do
                                                assert phase.toolcontext == self
-                                               phase.process_npropdef(npropdef)
+                                               phase_process_npropdef(phase, npropdef)
                                        end
                                end
                                if errcount != self.error_count then
@@ -127,6 +127,11 @@ redef class ToolContext
                var time1 = get_time
                self.info("*** END SEMANTIC ANALYSIS: {time1-time0} ***", 2)
        end
+
+       fun phase_process_npropdef(phase: Phase, npropdef: APropdef)
+       do
+               phase.process_npropdef(npropdef)
+       end
 end
 
 # Collect all annotation