23 references to TypeImportCompletionCacheEntry
Microsoft.CodeAnalysis.Features (23)
Completion\Providers\ImportCompletionProvider\AbstractTypeImportCompletionService.cs (18)
26private IImportCompletionCacheService<TypeImportCompletionCacheEntry, TypeImportCompletionCacheEntry> CacheService { get; } 36CacheService = services.GetRequiredService<IImportCompletionCacheService<TypeImportCompletionCacheEntry, TypeImportCompletionCacheEntry>>(); 56ImmutableArray<CompletionItem> GetItemsFromCacheResult(TypeImportCompletionCacheEntry cacheEntry) 67private async Task<(ImmutableArray<TypeImportCompletionCacheEntry> results, bool isPartial)> GetCacheEntriesAsync(Project currentProject, Compilation originCompilation, bool forceCacheCreation, CancellationToken cancellationToken) 72using var _1 = ArrayBuilder<TypeImportCompletionCacheEntry>.GetInstance(out var resultBuilder); 95else if (CacheService.ProjectItemsCache.TryGetValue(projectId, out var cacheEntry)) 117if (TryGetUpToDateCacheForPEReference(originCompilation, solution, editorBrowsableInfo.Value, peReference, cancellationToken, out var upToDateCacheEntry)) 122else if (CacheService.PEItemsCache.TryGetValue(peReferenceKey, out var cacheEntry)) 164private async Task<TypeImportCompletionCacheEntry> GetUpToDateCacheForProjectAsync(Project project, CancellationToken cancellationToken) 188out TypeImportCompletionCacheEntry cacheEntry) 208private TypeImportCompletionCacheEntry CreateCacheWorker<TKey>( 212IDictionary<TKey, TypeImportCompletionCacheEntry> cache, 218if (cache.TryGetValue(key, out var cacheEntry) && cacheEntry.Checksum == checksum) 223using var builder = new TypeImportCompletionCacheEntry.Builder(SymbolKey.Create(assembly, cancellationToken), checksum, Language, GenericTypeSuffix, editorBrowsableInfo); 235TypeImportCompletionCacheEntry.Builder builder, 244TypeImportCompletionCacheEntry.Builder builder,
Completion\Providers\ImportCompletionProvider\DefaultTypeImportCompletionCacheServiceFactory.cs (4)
13[ExportWorkspaceServiceFactory(typeof(IImportCompletionCacheService<TypeImportCompletionCacheEntry, TypeImportCompletionCacheEntry>), ServiceLayer.Default), Shared] 17: AbstractImportCompletionCacheServiceFactory<TypeImportCompletionCacheEntry, TypeImportCompletionCacheEntry>(listenerProvider, AbstractTypeImportCompletionService.BatchUpdateCacheAsync, CancellationToken.None)
Completion\Providers\ImportCompletionProvider\TypeImportCompletionCacheEntry.cs (1)
159public TypeImportCompletionCacheEntry ToReferenceCacheEntry()