예제 #1
0
        // 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;
        }
예제 #2
0
파일: CS2JMain.cs 프로젝트: exaphaser/cs2j
        // 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;
        }