Ejemplo n.º 1
0
        public static AttributedTypesTrieCollection Build(IPsiSourceFile sourceFile, AttributedTypesCacheBuilder builder)
        {
            var roots = new AttributedTypesTrieCollection();

            foreach (var file in sourceFile.EnumerateDominantPsiFiles())
            {
                builder.BuildFile(file, roots);
            }

            return(roots);
        }
Ejemplo n.º 2
0
        public AttributedTypesCache(Lifetime lifetime, IDependencyStore dependencyStore, IShellLocks shellLocks, IPsiConfiguration psiConfiguration, IPersistentIndexManager persistentIndexManager, CommonIdentifierIntern identifierIntern, AttributedTypesCacheBuilder builder, ISolution solution, IShellLocks locks, IPsiFiles psiFiles)
        {
            myShellLocks             = shellLocks;
            myPersistentIndexManager = persistentIndexManager;
            Builder    = builder;
            myLocks    = locks;
            myPsiFiles = psiFiles;

            var solutionCacheFolder = psiConfiguration.SolutionCachesConfiguration.GetSolutionCacheFolder(solution);

            myCacheFile = solutionCacheFolder.Combine(IMAGE_FILE);
        }