1 instantiation of SymbolTreeInfo
Microsoft.CodeAnalysis.Workspaces (1)
FindSymbols\SymbolTree\SymbolTreeInfo.cs (1)
465
return new
SymbolTreeInfo
(
54 references to SymbolTreeInfo
Microsoft.CodeAnalysis.Workspaces (54)
FindSymbols\Declarations\DeclarationFinder.cs (2)
82
var
info = await
SymbolTreeInfo
.GetInfoForMetadataReferenceAsync(
FindSymbols\FindReferences\DependentProjectsFinder.cs (1)
338
var metadataId =
SymbolTreeInfo
.GetMetadataIdNoThrow(peReference);
FindSymbols\FindReferences\DependentTypeFinder.cs (2)
344
var
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
17
ValueTask<
SymbolTreeInfo
?> TryGetPotentiallyStaleSourceSymbolTreeInfoAsync(Project project, CancellationToken cancellationToken);
18
ValueTask<
SymbolTreeInfo
?> TryGetPotentiallyStaleMetadataSymbolTreeInfoAsync(Project project, PortableExecutableReference reference, CancellationToken cancellationToken);
FindSymbols\SymbolTree\MetadataInfo.cs (2)
18
public readonly
SymbolTreeInfo
SymbolTreeInfo;
29
public MetadataInfo(
SymbolTreeInfo
info, HashSet<ProjectId> referencingProjects)
FindSymbols\SymbolTree\SymbolTreeInfo.cs (4)
99
public static
SymbolTreeInfo
CreateEmpty(Checksum checksum)
109
public
SymbolTreeInfo
WithChecksum(Checksum checksum)
431
internal void AssertEquivalentTo(
SymbolTreeInfo
other)
457
private static
SymbolTreeInfo
CreateSymbolTreeInfo(
FindSymbols\SymbolTree\SymbolTreeInfo.Node.cs (1)
20
/// produce the final <see cref="
SymbolTreeInfo
"/> though we will then convert
FindSymbols\SymbolTree\SymbolTreeInfo_Metadata.cs (15)
40
private 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
52
private 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>
102
public static ValueTask<
SymbolTreeInfo
> GetInfoForMetadataReferenceAsync(
117
/// Produces a <see cref="
SymbolTreeInfo
"/> for a given <see cref="PortableExecutableReference"/>.
122
/// and used for the <see cref="
SymbolTreeInfo
"/>.</param>
124
public static async ValueTask<
SymbolTreeInfo
> GetInfoForMetadataReferenceAsync(
143
static async Task<
SymbolTreeInfo
> GetInfoForMetadataReferenceSlowAsync(
168
static async Task<
SymbolTreeInfo
> CreateMetadataSymbolTreeInfoAsync(
186
createAsync: checksum => new ValueTask<
SymbolTreeInfo
>(new MetadataInfoCreator(checksum, GetMetadataNoThrow(arg.reference)).Create()),
201
public static async Task<
SymbolTreeInfo
?> TryGetCachedInfoForMetadataReferenceIgnoreChecksumAsync(PortableExecutableReference reference, CancellationToken cancellationToken)
236
public static Task<
SymbolTreeInfo
?> LoadAnyInfoForMetadataReferenceAsync(
295
internal
SymbolTreeInfo
Create()
FindSymbols\SymbolTree\SymbolTreeInfo_Serialization.cs (7)
28
private static async Task<
SymbolTreeInfo
> LoadOrCreateAsync(
32
Func<Checksum, ValueTask<
SymbolTreeInfo
>> createAsync,
41
var
read = await LoadAsync(services, solutionKey, checksum, checksumMustMatch: true, keySuffix, cancellationToken).ConfigureAwait(false);
53
SymbolTreeInfo
result;
81
private static async Task<
SymbolTreeInfo
?> LoadAsync(
191
private static
SymbolTreeInfo
? TryReadSymbolTreeInfo(
274
public static
SymbolTreeInfo
? ReadSymbolTreeInfo(ObjectReader reader, Checksum checksum)
FindSymbols\SymbolTree\SymbolTreeInfo_Source.cs (3)
33
public static Task<
SymbolTreeInfo
> GetInfoForSourceAssemblyAsync(
52
public static async Task<
SymbolTreeInfo
?> LoadAnyInfoForSourceAssemblyAsync(
118
internal static async ValueTask<
SymbolTreeInfo
> CreateSourceSymbolTreeInfoAsync(
FindSymbols\SymbolTree\SymbolTreeInfoCacheService.cs (14)
29
private readonly ConcurrentDictionary<ProjectId, (VersionStamp semanticVersion,
SymbolTreeInfo
info)> _projectIdToInfo = [];
63
/// Gets the latest computed <see cref="
SymbolTreeInfo
"/> for the requested <paramref name="reference"/>.
67
public async ValueTask<
SymbolTreeInfo
?> TryGetPotentiallyStaleMetadataSymbolTreeInfoAsync(
84
var
info = await
SymbolTreeInfo
.LoadAnyInfoForMetadataReferenceAsync(solution, reference, cancellationToken).ConfigureAwait(false);
94
public async ValueTask<
SymbolTreeInfo
?> TryGetPotentiallyStaleSourceSymbolTreeInfoAsync(
108
var
info = await
SymbolTreeInfo
.LoadAnyInfoForSourceAssemblyAsync(project, cancellationToken).ConfigureAwait(false);
172
var checksum = await
SymbolTreeInfo
.GetSourceSymbolsChecksumAsync(project, cancellationToken).ConfigureAwait(false);
176
var
info = await
SymbolTreeInfo
.GetInfoForSourceAssemblyAsync(
194
var checksum =
SymbolTreeInfo
.GetMetadataChecksum(project.Solution.Services, reference, cancellationToken);
198
var
info = await
SymbolTreeInfo
.GetInfoForMetadataReferenceAsync(