Пример #1
0
        public void Crawl(CrawlOptions options)
        {
            List <Project> projects;

            if (!options.IsSolutionFile && options.File != null)
            {
                parseFile(new FileRef(options.File, null));
                return;
            }
            else if (options.IsSolutionFile)
            {
                projects = new SolutionReader(options.File).ReadProjects();
            }
            else
            {
                projects = getProjects(options.Directory);
            }
            loadmscorlib();
            projects.ForEach(x => crawl(x));

            if (_typeMatching)
            {
                _builder.BuildTypeIndex();
                new TypeResolver(new OutputWriterCacheReader(_builder, _globalCache))
                .ResolveAllUnresolved(_builder);
            }
        }
Пример #2
0
        public void Crawl(CrawlOptions options)
        {
            Logger.Write("Crawling " + options.ToString());
            List<Project> projects;
            if (!options.IsSolutionFile && options.File != null)
            {
                parseFile(new FileRef(options.File, null));
                Logger.Write("Done crawling single file " + options.ToString());
                return;
            }
            else if (options.IsSolutionFile)
                projects = new SolutionReader(options.File).ReadProjects();
            else
                projects = getProjects(options.Directory);
            loadmscorlib();
            projects.ForEach(x => crawl(x));

            if (_typeMatching) {
                _builder.BuildTypeIndex();
                new TypeResolver(new OutputWriterCacheReader(_builder, _globalCache))
                    .ResolveAllUnresolved(_builder);
            }
            Logger.Write("Done crawling " + options.ToString());
        }