46 references to SerializableSymbolAndProjectId
Microsoft.CodeAnalysis.Features (2)
FindUsages\AbstractFindUsagesService_FindImplementations.cs (1)
52
var
symbolAndProjectId = SerializableSymbolAndProjectId.Create(symbol, project, cancellationToken);
FindUsages\AbstractFindUsagesService_FindReferences.cs (1)
140
var
symbolAndProjectId = SerializableSymbolAndProjectId.Create(symbol, project, cancellationToken);
Microsoft.CodeAnalysis.Workspaces (44)
FindSymbols\Declarations\DeclarationFinder_AllDeclarations.cs (3)
42
var result = await client.TryInvokeAsync<IRemoteSymbolFinderService, ImmutableArray<
SerializableSymbolAndProjectId
>>(
159
Solution solution, IList<
SerializableSymbolAndProjectId
> array, CancellationToken cancellationToken)
163
foreach (
var
dehydrated in array)
FindSymbols\Declarations\DeclarationFinder_SourceDeclarations.cs (4)
46
var result = await client.TryInvokeAsync<IRemoteSymbolFinderService, ImmutableArray<
SerializableSymbolAndProjectId
>>(
84
var result = await client.TryInvokeAsync<IRemoteSymbolFinderService, ImmutableArray<
SerializableSymbolAndProjectId
>>(
117
var result = await client.TryInvokeAsync<IRemoteSymbolFinderService, ImmutableArray<
SerializableSymbolAndProjectId
>>(
150
var result = await client.TryInvokeAsync<IRemoteSymbolFinderService, ImmutableArray<
SerializableSymbolAndProjectId
>>(
FindSymbols\FindReferences\DependentTypeFinder_Remote.cs (4)
26
if (
SerializableSymbolAndProjectId
.TryCreate(type, solution, cancellationToken, out var serializedType))
33
var result = await client.TryInvokeAsync<IRemoteDependentTypeFinderService, ImmutableArray<
SerializableSymbolAndProjectId
>>(
82
private static async Task<ImmutableArray<INamedTypeSymbol>> RehydrateAsync(Solution solution, ImmutableArray<
SerializableSymbolAndProjectId
> values, CancellationToken cancellationToken)
86
foreach (
var
item in values)
FindSymbols\FindReferences\IRemoteDependentTypeFinderService.cs (2)
14
ValueTask<ImmutableArray<
SerializableSymbolAndProjectId
>> FindTypesAsync(
16
SerializableSymbolAndProjectId
type,
FindSymbols\IRemoteSymbolFinderService.cs (7)
23
ValueTask OnReferencesFoundAsync(RemoteServiceCallbackId callbackId, ImmutableArray<(SerializableSymbolGroup group,
SerializableSymbolAndProjectId
definition, SerializableReferenceLocation reference)> references, CancellationToken cancellationToken);
30
ValueTask FindReferencesAsync(Checksum solutionChecksum, RemoteServiceCallbackId callbackId,
SerializableSymbolAndProjectId
symbolAndProjectIdArg, ImmutableArray<DocumentId> documentArgs,
35
ValueTask<ImmutableArray<
SerializableSymbolAndProjectId
>> FindAllDeclarationsWithNormalQueryAsync(
38
ValueTask<ImmutableArray<
SerializableSymbolAndProjectId
>> FindSolutionSourceDeclarationsWithNormalQueryAsync(
41
ValueTask<ImmutableArray<
SerializableSymbolAndProjectId
>> FindProjectSourceDeclarationsWithNormalQueryAsync(
44
ValueTask<ImmutableArray<
SerializableSymbolAndProjectId
>> FindSolutionSourceDeclarationsWithPatternAsync(
47
ValueTask<ImmutableArray<
SerializableSymbolAndProjectId
>> FindProjectSourceDeclarationsWithPatternAsync(
FindSymbols\SymbolFinder.CallbackDispatcher.cs (1)
47
public ValueTask OnReferencesFoundAsync(RemoteServiceCallbackId callbackId, ImmutableArray<(SerializableSymbolGroup group,
SerializableSymbolAndProjectId
definition, SerializableReferenceLocation reference)> references, CancellationToken cancellationToken)
FindSymbols\SymbolFinder.FindReferencesServerCallback.cs (3)
28
private readonly Dictionary<
SerializableSymbolAndProjectId
, ISymbol> _definitionMap = [];
46
using var _ = PooledDictionary<
SerializableSymbolAndProjectId
, ISymbol>.GetInstance(out var map);
69
ImmutableArray<(SerializableSymbolGroup serializableSymbolGroup,
SerializableSymbolAndProjectId
serializableSymbol, SerializableReferenceLocation reference)> references,
FindSymbols\SymbolFinder_FindReferences_Current.cs (1)
42
if (!SymbolKey.IsBodyLevelSymbol(symbol) &&
SerializableSymbolAndProjectId
.TryCreate(symbol, solution, cancellationToken, out var serializedSymbol))
Remote\RemoteArguments.cs (8)
24
internal sealed class SerializableSymbolAndProjectId(string symbolKeyData, ProjectId projectId) : IEquatable<
SerializableSymbolAndProjectId
>
33
=> Equals(obj as
SerializableSymbolAndProjectId
);
35
public bool Equals(
SerializableSymbolAndProjectId
? other)
51
public static
SerializableSymbolAndProjectId
? Dehydrate(
59
public static
SerializableSymbolAndProjectId
Dehydrate(
68
public static
SerializableSymbolAndProjectId
Create(ISymbol symbol, Project project, CancellationToken cancellationToken)
73
[NotNullWhen(true)] out
SerializableSymbolAndProjectId
? result)
87
[NotNullWhen(true)] out
SerializableSymbolAndProjectId
? result)
Rename\ConflictEngine\ConflictResolver.cs (1)
67
var serializableSymbol =
SerializableSymbolAndProjectId
.Dehydrate(lightweightRenameLocations.Solution, symbol, cancellationToken);
Rename\IRemoteRenamerService.cs (5)
31
SerializableSymbolAndProjectId
symbolAndProjectId,
39
SerializableSymbolAndProjectId
symbolAndProjectId,
45
SerializableSymbolAndProjectId
symbolAndProjectId,
151
ImmutableArray<
SerializableSymbolAndProjectId
> referencedSymbols)
163
public readonly ImmutableArray<
SerializableSymbolAndProjectId
> ReferencedSymbols = referencedSymbols;
Rename\LightweightRenameLocations.cs (4)
31
private readonly ImmutableArray<
SerializableSymbolAndProjectId
> _referencedSymbols;
38
ImmutableArray<
SerializableSymbolAndProjectId
> referencedSymbols)
83
if (
SerializableSymbolAndProjectId
.TryCreate(symbol, solution, cancellationToken, out var serializedSymbol))
115
renameLocations.ReferencedSymbols.SelectAsArray(sym =>
SerializableSymbolAndProjectId
.Dehydrate(solution, sym, cancellationToken)));
Rename\Renamer.cs (1)
160
if (
SerializableSymbolAndProjectId
.TryCreate(symbol, solution, cancellationToken, out var serializedSymbol))