X-Git-Url: http://nitlanguage.org diff --git a/src/phase.nit b/src/phase.nit index 0a32484..682d23e 100644 --- a/src/phase.nit +++ b/src/phase.nit @@ -110,13 +110,11 @@ redef class ToolContext for phase in phases do if phase.disabled then continue - self.info(" phase: {phase}", 3) assert phase.toolcontext == self var errcount = self.error_count phase.process_nmodule(nmodule) if errcount != self.error_count then self.check_errors - break end errcount = self.error_count for nclassdef in nmodule.n_classdefs do @@ -129,7 +127,6 @@ redef class ToolContext end if errcount != self.error_count then self.check_errors - break end for na in vannot.annotations do var p = na.parent @@ -139,7 +136,6 @@ redef class ToolContext end if errcount != self.error_count then self.check_errors - break end end self.check_errors @@ -148,7 +144,7 @@ redef class ToolContext var time1 = get_time self.info("*** END SEMANTIC ANALYSIS: {time1-time0} ***", 2) - errors_info + self.check_errors end # Process the given `phase` on the `npropdef` @@ -223,7 +219,7 @@ abstract class Phase end # By default, the name is the lowercased prefix of the classname - redef fun to_s do return class_name.strip_extension("Phase").to_lower + redef fun to_s do return class_name.strip_extension("Phase").to_snake_case # Is the phase globally disabled? # A disabled phase is not called automatically called by `ToolContext::run_phases` and cie.