public static AttributedTypesTrieCollection Build(IPsiSourceFile sourceFile, AttributedTypesCacheBuilder builder) { var roots = new AttributedTypesTrieCollection(); foreach (var file in sourceFile.EnumerateDominantPsiFiles()) { builder.BuildFile(file, roots); } return(roots); }
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); }