protected virtual void InspectTypes(MemberResolver resolver, IAssemblyInfo config)
        {
            Inspector inspector = this.CreateInspector();

            inspector.AssemblyInfo = config;
            inspector.Resolver     = resolver;

            for (int i = 0; i < this.ParsedSourceFiles.Count; i++)
            {
                inspector.VisitSyntaxTree(this.ParsedSourceFiles[i].SyntaxTree);
            }

            this.AssemblyInfo = inspector.AssemblyInfo;
            this.Types        = inspector.Types;
        }
示例#2
0
        protected virtual void InspectTypes(MemberResolver resolver, IAssemblyInfo config)
        {
            this.Log.Info("Inspecting types...");

            Inspector inspector = this.CreateInspector(config);
            inspector.AssemblyInfo = config;
            inspector.Resolver = resolver;

            for (int i = 0; i < this.ParsedSourceFiles.Length; i++)
            {
                var sourceFile = this.ParsedSourceFiles[i];
                this.Log.Trace("Visiting syntax tree " + (sourceFile != null && sourceFile.ParsedFile != null && sourceFile.ParsedFile.FileName != null ? sourceFile.ParsedFile.FileName : ""));

                inspector.VisitSyntaxTree(sourceFile.SyntaxTree);
            }

            this.AssemblyInfo = inspector.AssemblyInfo;
            this.Types = inspector.Types;

            this.Log.Info("Inspecting types done");
        }