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