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