2 instantiations of TopLevelSyntaxTreeIndex
Microsoft.CodeAnalysis.Workspaces (2)
FindSymbols\TopLevelSyntaxTree\TopLevelSyntaxTreeIndex_Create.cs (1)
26return new TopLevelSyntaxTreeIndex(
FindSymbols\TopLevelSyntaxTree\TopLevelSyntaxTreeIndex_Persistence.cs (1)
36return new TopLevelSyntaxTreeIndex(
42 references to TopLevelSyntaxTreeIndex
IdeCoreBenchmarks (2)
NavigateToBenchmarks.cs (2)
168await TopLevelSyntaxTreeIndex.GetIndexAsync(d, default); 194await TopLevelSyntaxTreeIndex.GetIndexAsync(d, default);
Microsoft.CodeAnalysis.Features (19)
Completion\Providers\ImportCompletionProvider\ExtensionMethodImportCompletionCacheEntry.cs (1)
48public void AddItem(TopLevelSyntaxTreeIndex syntaxIndex)
Completion\Providers\ImportCompletionProvider\ExtensionMethodImportCompletionHelper.cs (2)
258var info = await TopLevelSyntaxTreeIndex.GetRequiredIndexAsync(document, cancellationToken).ConfigureAwait(false);
ExternalAccess\UnitTesting\API\UnitTestingSearchHelpers.cs (2)
199var index = await TopLevelSyntaxTreeIndex.GetRequiredIndexAsync(document, cancellationToken).ConfigureAwait(false);
NavigateTo\AbstractNavigateToSearchService.CachedDocumentSearch.cs (6)
24using CachedIndexMap = ConcurrentDictionary<(IChecksummedPersistentStorageService service, DocumentKey documentKey, StringTable stringTable), AsyncLazy<TopLevelSyntaxTreeIndex?>>; 146var index = await GetIndexAsync(storageService, documentKey, cancellationToken).ConfigureAwait(false); 160private static Task<TopLevelSyntaxTreeIndex?> GetIndexAsync( 166return SpecializedTasks.Null<TopLevelSyntaxTreeIndex>(); 171return SpecializedTasks.Null<TopLevelSyntaxTreeIndex>(); 182TopLevelSyntaxTreeIndex.LoadAsync(t.service, t.documentKey, checksum: null, t.stringTable, c),
NavigateTo\AbstractNavigateToSearchService.InProcess.cs (8)
54var index = await TopLevelSyntaxTreeIndex.GetRequiredIndexAsync(document, cancellationToken).ConfigureAwait(false); 55using var _ = ArrayBuilder<(TopLevelSyntaxTreeIndex, ProjectId)>.GetInstance(out var linkedIndices); 60var linkedIndex = await TopLevelSyntaxTreeIndex.GetRequiredIndexAsync(linkedDocument, cancellationToken).ConfigureAwait(false); 75TopLevelSyntaxTreeIndex index, 76ArrayBuilder<(TopLevelSyntaxTreeIndex, ProjectId)>? linkedIndices, 167ArrayBuilder<(TopLevelSyntaxTreeIndex, ProjectId)>? linkedIndices)
Microsoft.CodeAnalysis.Workspaces (17)
FindSymbols\FindReferences\DependentTypeFinder_ProjectIndex.cs (2)
90var syntaxTreeIndex = await TopLevelSyntaxTreeIndex.GetRequiredIndexAsync(
FindSymbols\SymbolTree\SymbolTreeInfo.Node.cs (1)
84/// Similar to <see cref="TopLevelSyntaxTreeIndex.ExtensionMethodInfo"/>, we divide extension methods into
FindSymbols\TopLevelSyntaxTree\TopLevelSyntaxTreeIndex.cs (7)
14internal sealed partial class TopLevelSyntaxTreeIndex : AbstractSyntaxIndex<TopLevelSyntaxTreeIndex> 46public static ValueTask<TopLevelSyntaxTreeIndex> GetRequiredIndexAsync(Document document, CancellationToken cancellationToken) 49public static ValueTask<TopLevelSyntaxTreeIndex> GetRequiredIndexAsync(SolutionKey solutionKey, ProjectState project, DocumentState document, CancellationToken cancellationToken) 52public static ValueTask<TopLevelSyntaxTreeIndex?> GetIndexAsync(Document document, CancellationToken cancellationToken) 55public static ValueTask<TopLevelSyntaxTreeIndex?> GetIndexAsync(SolutionKey solutionKey, ProjectState project, DocumentState document, CancellationToken cancellationToken) 58public static ValueTask<TopLevelSyntaxTreeIndex?> GetIndexAsync(Document document, bool loadOnly, CancellationToken cancellationToken) 61public static ValueTask<TopLevelSyntaxTreeIndex?> GetIndexAsync(SolutionKey solutionKey, ProjectState project, DocumentState document, bool loadOnly, CancellationToken cancellationToken)
FindSymbols\TopLevelSyntaxTree\TopLevelSyntaxTreeIndex_Create.cs (1)
14private static TopLevelSyntaxTreeIndex CreateIndex(
FindSymbols\TopLevelSyntaxTree\TopLevelSyntaxTreeIndex_Persistence.cs (2)
15public static Task<TopLevelSyntaxTreeIndex?> LoadAsync( 27private static TopLevelSyntaxTreeIndex? ReadIndex(
LanguageServices\DeclaredSymbolFactoryService\AbstractDeclaredSymbolInfoFactoryService.cs (1)
82/// "complex" method (as described at <see cref="TopLevelSyntaxTreeIndex.ExtensionMethodInfo"/>).
Workspace\Solution\Project.cs (3)
478Func<TopLevelSyntaxTreeIndex, CancellationToken, bool> predicate, CancellationToken cancellationToken) 482var index = await TopLevelSyntaxTreeIndex.GetRequiredIndexAsync(d, cancellationToken).ConfigureAwait(false);
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (4)
PersistentStorage\AbstractPersistentStorageTests.cs (4)
899var index = await TopLevelSyntaxTreeIndex.GetRequiredIndexAsync(document, default); 902var index2 = await TopLevelSyntaxTreeIndex.LoadAsync(_storageService!, DocumentKey.ToDocumentKey(document), checksum: null, new StringTable(), default);