// Here's where we do the real work... public static void addAppSigTranslation(string fullName) { int saveDebugLevel = cfg.DebugLevel; if (!cfg.DebugTemplateExtraction) { cfg.DebugLevel = 0; } if (cfg.DebugLevel > 3) { Console.Out.WriteLine("Extracting type info from file {0}", fullName); } ITreeNodeStream csTree = parseFile(fullName); if (csTree != null) { TemplateExtracter templateWalker = new TemplateExtracter(csTree); templateWalker.Filename = fullName; templateWalker.TraceDestination = Console.Error; templateWalker.Cfg = cfg; templateWalker.AppEnv = AppEnv; templateWalker.compilation_unit(); } cfg.DebugLevel = saveDebugLevel; }
// Here's where we do the real work... public static void addAppSigTranslation(string fullName) { int saveDebugLevel = cfg.DebugLevel; if (!cfg.DebugTemplateExtraction) { cfg.DebugLevel = 0; } if (cfg.DebugLevel > 3) Console.Out.WriteLine("Extracting type info from file {0}", fullName); ITreeNodeStream csTree = parseFile(fullName); if (csTree != null) { TemplateExtracter templateWalker = new TemplateExtracter(csTree); templateWalker.Filename = fullName; templateWalker.TraceDestination = Console.Error; templateWalker.Cfg = cfg; templateWalker.AppEnv = AppEnv; templateWalker.compilation_unit(); } cfg.DebugLevel = saveDebugLevel; }