4 instantiations of SymbolTreeInfo
Microsoft.CodeAnalysis.Workspaces (4)
FindSymbols\SymbolTree\SymbolTreeInfo.cs (3)
106return new SymbolTreeInfo(checksum, sortedNodes, 117return new SymbolTreeInfo( 441return new SymbolTreeInfo(
FindSymbols\SymbolTree\SymbolTreeInfo_Serialization.cs (1)
252return new SymbolTreeInfo(
92 references to SymbolTreeInfo
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (24)
FindSymbols\SymbolTreeInfoTests.cs (24)
31var info1 = await SymbolTreeInfo.GetInfoForMetadataReferenceAsync( 34var info2 = await SymbolTreeInfo.GetInfoForMetadataReferenceAsync( 38Assert.Equal(info1.Checksum, SymbolTreeInfo.GetMetadataChecksum(solution.Services, reference1, CancellationToken.None)); 39Assert.Equal(info2.Checksum, SymbolTreeInfo.GetMetadataChecksum(solution.Services, reference2, CancellationToken.None)); 52var checksum1 = SymbolTreeInfo.GetMetadataChecksum(solution.Services, reference1, CancellationToken.None); 53var info1 = await SymbolTreeInfo.GetInfoForMetadataReferenceAsync( 56var checksum2 = SymbolTreeInfo.GetMetadataChecksum(solution.Services, reference2, CancellationToken.None); 57var info2 = await SymbolTreeInfo.GetInfoForMetadataReferenceAsync( 75var checksum1 = SymbolTreeInfo.GetMetadataChecksum(solution.Services, reference1, CancellationToken.None); 76var info1 = await SymbolTreeInfo.GetInfoForMetadataReferenceAsync( 79var info2 = await SymbolTreeInfo.GetInfoForMetadataReferenceAsync( 84Assert.Equal(info2.Checksum, SymbolTreeInfo.GetMetadataChecksum(solution.Services, reference2, CancellationToken.None)); 97var info1 = await SymbolTreeInfo.GetInfoForMetadataReferenceAsync( 100var checksum2 = SymbolTreeInfo.GetMetadataChecksum(solution.Services, reference2, CancellationToken.None); 101var info2 = await SymbolTreeInfo.GetInfoForMetadataReferenceAsync( 105Assert.Equal(info1.Checksum, SymbolTreeInfo.GetMetadataChecksum(solution.Services, reference1, CancellationToken.None));
Microsoft.CodeAnalysis.Features (10)
AddImport\SearchScopes\MetadataSymbolsSearchScope.cs (1)
51var info = await service.TryGetPotentiallyStaleMetadataSymbolTreeInfoAsync(_assemblyProject, _metadataReference, CancellationToken).ConfigureAwait(false);
AddImport\SearchScopes\SourceSymbolsProjectSearchScope.cs (1)
39var info = await service.TryGetPotentiallyStaleSourceSymbolTreeInfoAsync(_project, CancellationToken).ConfigureAwait(false);
Completion\Providers\ImportCompletionProvider\AbstractTypeImportCompletionService.cs (2)
167var checksum = await SymbolTreeInfo.GetSourceSymbolsChecksumAsync(project, cancellationToken).ConfigureAwait(false); 200checksum: SymbolTreeInfo.GetMetadataChecksum(solution.Services, peReference, cancellationToken),
Completion\Providers\ImportCompletionProvider\ExtensionMethodImportCompletionHelper.cs (1)
251var checksum = await SymbolTreeInfo.GetSourceSymbolsChecksumAsync(project, cancellationToken).ConfigureAwait(false);
Completion\Providers\ImportCompletionProvider\ExtensionMethodImportCompletionHelper.SymbolComputer.cs (5)
89await SymbolTreeInfo.GetInfoForMetadataReferenceAsync(project.Solution, peReference, checksum: null, cancellationToken).ConfigureAwait(false); 198SymbolTreeInfo? symbolInfo; 201symbolInfo = await SymbolTreeInfo.GetInfoForMetadataReferenceAsync( 206var cachedInfoTask = SymbolTreeInfo.TryGetCachedInfoForMetadataReferenceIgnoreChecksumAsync(peReference, cancellationToken); 459private MultiDictionary<string, (string methodName, string receiverTypeName)> CreateAggregatedFilter(SymbolTreeInfo symbolInfo)
Microsoft.CodeAnalysis.Workspaces (54)
FindSymbols\Declarations\DeclarationFinder.cs (2)
84var info = await SymbolTreeInfo.GetInfoForMetadataReferenceAsync(
FindSymbols\FindReferences\DependentTypeFinder.cs (2)
344var symbolTreeInfo = await SymbolTreeInfo.GetInfoForMetadataReferenceAsync(
FindSymbols\SymbolTree\ISymbolTreeInfoCacheService.cs (3)
12/// Computes and caches <see cref="SymbolTreeInfo"/> indices for the source symbols in <see cref="Project"/>s and 17ValueTask<SymbolTreeInfo?> TryGetPotentiallyStaleSourceSymbolTreeInfoAsync(Project project, CancellationToken cancellationToken); 18ValueTask<SymbolTreeInfo?> TryGetPotentiallyStaleMetadataSymbolTreeInfoAsync(Project project, PortableExecutableReference reference, CancellationToken cancellationToken);
FindSymbols\SymbolTree\MetadataInfo.cs (2)
18public readonly SymbolTreeInfo SymbolTreeInfo; 29public MetadataInfo(SymbolTreeInfo info, HashSet<ProjectId> referencingProjects)
FindSymbols\SymbolTree\SymbolTreeInfo.cs (4)
101public static SymbolTreeInfo CreateEmpty(Checksum checksum) 112public SymbolTreeInfo WithChecksum(Checksum checksum) 406internal void AssertEquivalentTo(SymbolTreeInfo other) 432private static SymbolTreeInfo CreateSymbolTreeInfo(
FindSymbols\SymbolTree\SymbolTreeInfo.Node.cs (1)
21/// produce the final <see cref="SymbolTreeInfo"/> though we will then convert
FindSymbols\SymbolTree\SymbolTreeInfo_Metadata.cs (16)
40private static readonly ConditionalWeakTable<PortableExecutableReference, AsyncLazy<SymbolTreeInfo>> s_peReferenceToInfo = new(); 49/// computation of the <see cref="SymbolTreeInfo"/> once per <see cref="MetadataId"/>, but we may then have to 52private static readonly ConditionalWeakTable<MetadataId, AsyncLazy<SymbolTreeInfo>> s_metadataIdToSymbolTreeInfo = new(); 95/// Produces a <see cref="SymbolTreeInfo"/> for a given <see cref="PortableExecutableReference"/>. 100/// and used for the <see cref="SymbolTreeInfo"/>.</param> 102public static async ValueTask<SymbolTreeInfo> GetInfoForMetadataReferenceAsync( 112var info = await infoTask.GetValueAsync(cancellationToken).ConfigureAwait(false); 120static async Task<SymbolTreeInfo> GetInfoForMetadataReferenceSlowAsync( 138id => new AsyncLazy<SymbolTreeInfo>( 145static async Task<SymbolTreeInfo> CreateMetadataSymbolTreeInfoAsync( 158metadataId => new AsyncLazy<SymbolTreeInfo>( 163createAsync: checksum => new ValueTask<SymbolTreeInfo>(new MetadataInfoCreator(checksum, GetMetadataNoThrow(reference)).Create()), 168var metadataIdSymbolTreeInfo = await asyncLazy.GetValueAsync(cancellationToken).ConfigureAwait(false); 178public static async Task<SymbolTreeInfo?> TryGetCachedInfoForMetadataReferenceIgnoreChecksumAsync(PortableExecutableReference reference, CancellationToken cancellationToken) 224public static Task<SymbolTreeInfo?> LoadAnyInfoForMetadataReferenceAsync( 298internal SymbolTreeInfo Create()
FindSymbols\SymbolTree\SymbolTreeInfo_Serialization.cs (7)
28private static async Task<SymbolTreeInfo> LoadOrCreateAsync( 32Func<Checksum, ValueTask<SymbolTreeInfo>> createAsync, 41var read = await LoadAsync(services, solutionKey, checksum, checksumMustMatch: true, keySuffix, cancellationToken).ConfigureAwait(false); 53SymbolTreeInfo result; 82private static async Task<SymbolTreeInfo?> LoadAsync( 184private static SymbolTreeInfo? TryReadSymbolTreeInfo( 265public static SymbolTreeInfo? ReadSymbolTreeInfo(ObjectReader reader, Checksum checksum)
FindSymbols\SymbolTree\SymbolTreeInfo_Source.cs (3)
35public static Task<SymbolTreeInfo> GetInfoForSourceAssemblyAsync( 54public static async Task<SymbolTreeInfo?> LoadAnyInfoForSourceAssemblyAsync( 117internal static async ValueTask<SymbolTreeInfo> CreateSourceSymbolTreeInfoAsync(
FindSymbols\SymbolTree\SymbolTreeInfoCacheService.cs (14)
29private readonly ConcurrentDictionary<ProjectId, (VersionStamp semanticVersion, SymbolTreeInfo info)> _projectIdToInfo = new(); 63/// Gets the latest computed <see cref="SymbolTreeInfo"/> for the requested <paramref name="reference"/>. 67public async ValueTask<SymbolTreeInfo?> TryGetPotentiallyStaleMetadataSymbolTreeInfoAsync( 84var info = await SymbolTreeInfo.LoadAnyInfoForMetadataReferenceAsync(solution, reference, cancellationToken).ConfigureAwait(false); 94public async ValueTask<SymbolTreeInfo?> TryGetPotentiallyStaleSourceSymbolTreeInfoAsync( 108var info = await SymbolTreeInfo.LoadAnyInfoForSourceAssemblyAsync(project, cancellationToken).ConfigureAwait(false); 172var checksum = await SymbolTreeInfo.GetSourceSymbolsChecksumAsync(project, cancellationToken).ConfigureAwait(false); 176var info = await SymbolTreeInfo.GetInfoForSourceAssemblyAsync( 194var checksum = SymbolTreeInfo.GetMetadataChecksum(project.Solution.Services, reference, cancellationToken); 198var info = await SymbolTreeInfo.GetInfoForMetadataReferenceAsync(
Microsoft.CodeAnalysis.Workspaces.UnitTests (4)
FindAllDeclarationsTests.cs (4)
670var info = await SymbolTreeInfo.CreateSourceSymbolTreeInfoAsync( 681var readInfo = SymbolTreeInfo.TestAccessor.ReadSymbolTreeInfo(reader, Checksum.Null);