From 6c09b5567b34b7e39fef07bf9c0037157eebf6ef Mon Sep 17 00:00:00 2001 From: Jean Privat Date: Fri, 6 Mar 2015 10:06:59 +0700 Subject: [PATCH] autosuperinit: verbose info for debuging Signed-off-by: Jean Privat --- src/semantize/auto_super_init.nit | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/semantize/auto_super_init.nit b/src/semantize/auto_super_init.nit index b16eaf5..6627047 100644 --- a/src/semantize/auto_super_init.nit +++ b/src/semantize/auto_super_init.nit @@ -102,6 +102,7 @@ redef class AMethPropdef if not mpropdef.is_intro then auto_super_call = true mpropdef.has_supercall = true + modelbuilder.toolcontext.info("Auto-super call for {mpropdef}", 4) return end @@ -136,6 +137,7 @@ redef class AMethPropdef var callsite = new CallSite(self, recvtype, mmodule, anchor, true, candidate, candidatedef, msignature, false) auto_super_inits.add(callsite) + modelbuilder.toolcontext.info("Old-style auto-super init for {mpropdef} to {candidate.full_name}", 4) end # No old style? The look for new-style super constructors (called from a old style constructor) @@ -170,6 +172,7 @@ redef class AMethPropdef var callsite = new CallSite(self, recvtype, mmodule, anchor, true, the_root_init_mmethod, candidatedef, msignature, false) auto_super_inits.add(callsite) + modelbuilder.toolcontext.info("Auto-super init for {mpropdef} to {the_root_init_mmethod.full_name}", 4) end if auto_super_inits.is_empty then modelbuilder.error(self, "Error: No constructors to call implicitely in {mpropdef}. Call one explicitely.") -- 1.7.9.5