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