Skip to content

Commit f64a751

Browse files
Make synchronous
1 parent 186a747 commit f64a751

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Workspaces/Core/Portable/FindSymbols/SymbolFinder_Callers.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public static async Task<IEnumerable<SymbolCallerInfo>> FindCallersAsync(
3838
throw new System.ArgumentNullException(nameof(solution));
3939

4040
symbol = symbol.OriginalDefinition;
41-
var foundSymbol = await FindSourceDefinitionAsync(symbol, solution, cancellationToken).ConfigureAwait(false);
41+
var foundSymbol = FindSourceDefinition(symbol, solution, cancellationToken);
4242
symbol = foundSymbol ?? symbol;
4343

4444
var references = await FindCallReferencesAsync(solution, symbol, documents, cancellationToken).ConfigureAwait(false);

src/Workspaces/Core/Portable/FindSymbols/SymbolFinder_Hierarchy.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ internal static async Task<ImmutableArray<ISymbol>> FindImplementedInterfaceMemb
166166
{
167167
foreach (var interfaceMember in interfaceType.GetMembers(symbol.Name))
168168
{
169-
var sourceMethod = await FindSourceDefinitionAsync(interfaceMember, solution, cancellationToken).ConfigureAwait(false);
169+
var sourceMethod = FindSourceDefinition(interfaceMember, solution, cancellationToken);
170170
var bestMethod = sourceMethod ?? interfaceMember;
171171

172172
var implementations = type.FindImplementationsForInterfaceMember(bestMethod, solution, cancellationToken);
@@ -373,7 +373,7 @@ internal static async Task<ImmutableArray<ISymbol>> FindMemberImplementationsArr
373373
var implementations = t.FindImplementationsForInterfaceMember(symbol, solution, cancellationToken);
374374
foreach (var implementation in implementations)
375375
{
376-
var sourceDef = await FindSourceDefinitionAsync(implementation, solution, cancellationToken).ConfigureAwait(false);
376+
var sourceDef = FindSourceDefinition(implementation, solution, cancellationToken);
377377
var bestDef = sourceDef ?? implementation;
378378
if (IsAccessible(bestDef))
379379
results.Add(bestDef.OriginalDefinition);

0 commit comments

Comments
 (0)