2 instantiations of TopLevelSyntaxTreeIndex
Microsoft.CodeAnalysis.Workspaces (2)
FindSymbols\TopLevelSyntaxTree\TopLevelSyntaxTreeIndex_Create.cs (1)
29return new TopLevelSyntaxTreeIndex(
FindSymbols\TopLevelSyntaxTree\TopLevelSyntaxTreeIndex_Persistence.cs (1)
36return new TopLevelSyntaxTreeIndex(
36 references to TopLevelSyntaxTreeIndex
IdeCoreBenchmarks (2)
NavigateToBenchmarks.cs (2)
181await TopLevelSyntaxTreeIndex.GetIndexAsync(d, default); 207await TopLevelSyntaxTreeIndex.GetIndexAsync(d, default);
Microsoft.CodeAnalysis.Features (16)
Completion\Providers\ImportCompletionProvider\ExtensionMethodImportCompletionCacheEntry.cs (1)
56public void AddItem(TopLevelSyntaxTreeIndex syntaxIndex)
Completion\Providers\ImportCompletionProvider\ExtensionMethodImportCompletionHelper.cs (2)
269var info = await TopLevelSyntaxTreeIndex.GetRequiredIndexAsync(document, cancellationToken).ConfigureAwait(false);
ExternalAccess\UnitTesting\API\UnitTestingSearchHelpers.cs (2)
200var index = await TopLevelSyntaxTreeIndex.GetRequiredIndexAsync(document, cancellationToken).ConfigureAwait(false);
NavigateTo\AbstractNavigateToSearchService.CachedDocumentSearch.cs (6)
21using CachedIndexMap = ConcurrentDictionary<(IChecksummedPersistentStorageService service, DocumentKey documentKey, StringTable stringTable), AsyncLazy<TopLevelSyntaxTreeIndex?>>; 131var index = await GetIndexAsync(storageService, documentKey, cancellationToken).ConfigureAwait(false); 143private static Task<TopLevelSyntaxTreeIndex?> GetIndexAsync( 151return SpecializedTasks.Null<TopLevelSyntaxTreeIndex>(); 161static t => new AsyncLazy<TopLevelSyntaxTreeIndex?>( 162c => TopLevelSyntaxTreeIndex.LoadAsync(
NavigateTo\AbstractNavigateToSearchService.InProcess.cs (5)
94var index = await TopLevelSyntaxTreeIndex.GetRequiredIndexAsync(document, cancellationToken).ConfigureAwait(false); 107TopLevelSyntaxTreeIndex index, 216var index = await TopLevelSyntaxTreeIndex.GetRequiredIndexAsync(linkedDocument, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Workspaces (14)
FindSymbols\FindReferences\DependentTypeFinder_ProjectIndex.cs (2)
61var syntaxTreeIndex = await TopLevelSyntaxTreeIndex.GetRequiredIndexAsync(document, cancellationToken).ConfigureAwait(false);
FindSymbols\SymbolTree\SymbolTreeInfo.Node.cs (1)
98/// Similar to <see cref="TopLevelSyntaxTreeIndex.ExtensionMethodInfo"/>, we divide extension methods into
FindSymbols\TopLevelSyntaxTree\TopLevelSyntaxTreeIndex.cs (4)
14internal sealed partial class TopLevelSyntaxTreeIndex : AbstractSyntaxIndex<TopLevelSyntaxTreeIndex> 46public static ValueTask<TopLevelSyntaxTreeIndex> GetRequiredIndexAsync(Document document, CancellationToken cancellationToken) 49public static ValueTask<TopLevelSyntaxTreeIndex?> GetIndexAsync(Document document, CancellationToken cancellationToken) 53public static ValueTask<TopLevelSyntaxTreeIndex?> GetIndexAsync(Document document, bool loadOnly, CancellationToken cancellationToken)
FindSymbols\TopLevelSyntaxTree\TopLevelSyntaxTreeIndex_Create.cs (1)
17private 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)
428Func<TopLevelSyntaxTreeIndex, CancellationToken, bool> predicate, CancellationToken cancellationToken) 432var index = await TopLevelSyntaxTreeIndex.GetRequiredIndexAsync(d, cancellationToken).ConfigureAwait(false);
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (4)
PersistentStorage\AbstractPersistentStorageTests.cs (4)
907var index = await TopLevelSyntaxTreeIndex.GetRequiredIndexAsync(document, default); 910var index2 = await TopLevelSyntaxTreeIndex.LoadAsync(_storageService!, DocumentKey.ToDocumentKey(document), checksum: null, new StringTable(), default);