2 instantiations of SyntaxTreeIndex
Microsoft.CodeAnalysis.Workspaces (2)
FindSymbols\SyntaxTree\SyntaxTreeIndex_Create.cs (1)
178return new SyntaxTreeIndex(
FindSymbols\SyntaxTree\SyntaxTreeIndex_Persistence.cs (1)
99return new SyntaxTreeIndex(
57 references to SyntaxTreeIndex
IdeCoreBenchmarks (2)
NavigateToBenchmarks.cs (2)
148await SyntaxTreeIndex.GetIndexAsync(document, default).ConfigureAwait(false); 195await SyntaxTreeIndex.GetIndexAsync(d, default);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (1)
466var syntaxIndex = await generatedDocument.GetSyntaxTreeIndexAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Features (5)
ConvertTupleToStruct\AbstractConvertTupleToStructCodeRefactoringProvider.cs (2)
493var info = await document.GetSyntaxTreeIndexAsync(cancellationToken).ConfigureAwait(false); 504private static bool InfoProbablyContainsTupleFieldNames(SyntaxTreeIndex info, ImmutableArray<string> tupleFieldNames)
ExternalAccess\UnitTesting\API\UnitTestingSearchHelpers.cs (2)
189var syntaxTreeIndex = await SyntaxTreeIndex.GetRequiredIndexAsync(document, cancellationToken).ConfigureAwait(false);
NavigateTo\AbstractNavigateToSearchService.CachedDocumentSearch.cs (1)
36/// String table we use to dedupe common values while deserializing <see cref="SyntaxTreeIndex"/>s. Once the
Microsoft.CodeAnalysis.Workspaces (45)
FindSymbols\FindLiterals\FindLiteralsSearchEngine.cs (2)
119var index = await SyntaxTreeIndex.GetIndexAsync(
FindSymbols\FindReferences\Finders\AbstractReferenceFinder.cs (12)
332Func<SyntaxTreeIndex, T, bool> predicate, 340var info = await SyntaxTreeIndex.GetRequiredIndexAsync(d, c).ConfigureAwait(false); 348Func<SyntaxTreeIndex, bool> predicate, 376Func<SyntaxTreeIndex, bool> isRelevantDocument, 382var syntaxTreeInfo = state.Cache.SyntaxTreeIndex; 439static bool IsRelevantDocument(SyntaxTreeIndex syntaxTreeInfo) 482static bool IsRelevantDocument(SyntaxTreeIndex syntaxTreeInfo) 520static bool IsRelevantDocument(SyntaxTreeIndex syntaxTreeInfo) 551static bool IsRelevantDocument(SyntaxTreeIndex syntaxTreeInfo) 882var index = await SyntaxTreeIndex.GetRequiredIndexAsync(document, cancellationToken).ConfigureAwait(false);
FindSymbols\FindReferences\Finders\AbstractReferenceFinder_GlobalSuppressions.cs (1)
63var info = state.Cache.SyntaxTreeIndex;
FindSymbols\FindReferences\Finders\ConstructorInitializerSymbolReferenceFinder.cs (2)
32var index = await SyntaxTreeIndex.GetRequiredIndexAsync(document, cancellationToken).ConfigureAwait(false);
FindSymbols\FindReferences\Finders\ExplicitConversionSymbolReferenceFinder.cs (2)
56var index = await SyntaxTreeIndex.GetRequiredIndexAsync(document, cancellationToken).ConfigureAwait(false);
FindSymbols\FindReferences\FindReferenceCache.cs (4)
45var index = await SyntaxTreeIndex.GetRequiredIndexAsync(document, cancellationToken).ConfigureAwait(false); 56public readonly SyntaxTreeIndex SyntaxTreeIndex; 74Document document, SourceText text, SemanticModel semanticModel, SemanticModel nullableEnabledSemanticModel, SyntaxNode root, SyntaxTreeIndex syntaxTreeIndex)
FindSymbols\Shared\AbstractSyntaxIndex_Persistence.cs (1)
48var stringTable = SyntaxTreeIndex.GetStringTable(project);
FindSymbols\SyntaxTree\SyntaxTreeIndex.cs (7)
14internal sealed partial class SyntaxTreeIndex : AbstractSyntaxIndex<SyntaxTreeIndex> 38public static ValueTask<SyntaxTreeIndex> GetRequiredIndexAsync(Document document, CancellationToken cancellationToken) 41public static ValueTask<SyntaxTreeIndex> GetRequiredIndexAsync(SolutionKey solutionKey, ProjectState project, DocumentState document, CancellationToken cancellationToken) 44public static ValueTask<SyntaxTreeIndex?> GetIndexAsync(Document document, CancellationToken cancellationToken) 47public static ValueTask<SyntaxTreeIndex?> GetIndexAsync(SolutionKey solutionKey, ProjectState project, DocumentState document, CancellationToken cancellationToken) 50public static ValueTask<SyntaxTreeIndex?> GetIndexAsync(Document document, bool loadOnly, CancellationToken cancellationToken) 53public static ValueTask<SyntaxTreeIndex?> GetIndexAsync(SolutionKey solutionKey, ProjectState project, DocumentState document, bool loadOnly, CancellationToken cancellationToken)
FindSymbols\SyntaxTree\SyntaxTreeIndex_Create.cs (1)
39private static SyntaxTreeIndex CreateIndex(
FindSymbols\SyntaxTree\SyntaxTreeIndex_Persistence.cs (2)
19public static Task<SyntaxTreeIndex?> LoadAsync( 56private static SyntaxTreeIndex? ReadIndex(
LanguageServices\DeclaredSymbolFactoryService\AbstractDeclaredSymbolInfoFactoryService.cs (1)
159var stringTable = SyntaxTreeIndex.GetStringTable(project);
Rename\ConflictEngine\ConflictResolver.Session.cs (2)
724var info = await SyntaxTreeIndex.GetRequiredIndexAsync(document, _cancellationToken).ConfigureAwait(false);
Shared\Extensions\DocumentExtensions.cs (5)
14public static async ValueTask<SyntaxTreeIndex> GetSyntaxTreeIndexAsync(this Document document, CancellationToken cancellationToken) 16var result = await SyntaxTreeIndex.GetIndexAsync(document, loadOnly: false, cancellationToken).ConfigureAwait(false); 21public static ValueTask<SyntaxTreeIndex?> GetSyntaxTreeIndexAsync(this Document document, bool loadOnly, CancellationToken cancellationToken) 22=> SyntaxTreeIndex.GetIndexAsync(document, loadOnly, cancellationToken);
Workspace\Solution\Project.cs (3)
468Func<SyntaxTreeIndex, CancellationToken, bool> predicate, CancellationToken cancellationToken) 472var index = await SyntaxTreeIndex.GetRequiredIndexAsync(d, cancellationToken).ConfigureAwait(false);
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (4)
PersistentStorage\AbstractPersistentStorageTests.cs (4)
879var index = await SyntaxTreeIndex.GetRequiredIndexAsync(document, default); 882var index2 = await SyntaxTreeIndex.LoadAsync(_storageService!, DocumentKey.ToDocumentKey(document), checksum: null, new StringTable(), default);