示例#1
0
 public static SerializableSearchResult?Dehydrate(Solution solution, RenameLocations.SearchResult?result, CancellationToken cancellationToken)
 => result == null ? null : new SerializableSearchResult
 {
     Locations         = result.Locations.Select(loc => SerializableRenameLocation.Dehydrate(loc)).ToArray(),
     ImplicitLocations = result.ImplicitLocations.IsDefault ? null : result.ImplicitLocations.Select(loc => SerializableReferenceLocation.Dehydrate(loc, cancellationToken)).ToArray(),
     ReferencedSymbols = result.ReferencedSymbols.IsDefault ? null : result.ReferencedSymbols.Select(s => SerializableSymbolAndProjectId.Dehydrate(solution, s, cancellationToken)).ToArray(),
 };
示例#2
0
 public ValueTask OnReferenceFoundAsync(SerializableSymbolAndProjectId definition, SerializableReferenceLocation reference)
 => throw ExceptionUtilities.Unreachable;
示例#3
0
 public ValueTask OnReferenceFoundAsync(RemoteServiceCallbackId callbackId, SerializableSymbolGroup symbolGroup, SerializableSymbolAndProjectId definition, SerializableReferenceLocation reference, CancellationToken cancellationToken)
 => GetFindReferencesCallback(callbackId).OnReferenceFoundAsync(symbolGroup, definition, reference, cancellationToken);