Skip to content

Commit 186a747

Browse files
Make synchronous
1 parent 4a1ff0e commit 186a747

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Workspaces/Core/Portable/FindSymbols/FindReferences/FindReferencesSearchEngine.SymbolSet.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public static async Task<SymbolSet> CreateAsync(
6666
var options = engine._options;
6767

6868
// Start by mapping the initial symbol to the appropriate source symbol in originating project if possible.
69-
var searchSymbols = await MapToAppropriateSymbolsAsync(solution, symbols, cancellationToken).ConfigureAwait(false);
69+
var searchSymbols = MapToAppropriateSymbols(solution, symbols, cancellationToken);
7070

7171
// If the caller doesn't want any cascading then just return an appropriate set that will just point at
7272
// only the search symbol and won't cascade to any related symbols, linked symbols, or inheritance
@@ -90,17 +90,17 @@ public static async Task<SymbolSet> CreateAsync(
9090
: new BidirectionalSymbolSet(engine, initialSymbols, upSymbols, includeImplementationsThroughDerivedTypes);
9191
}
9292

93-
private static async Task<MetadataUnifyingSymbolHashSet> MapToAppropriateSymbolsAsync(
93+
private static MetadataUnifyingSymbolHashSet MapToAppropriateSymbols(
9494
Solution solution, MetadataUnifyingSymbolHashSet symbols, CancellationToken cancellationToken)
9595
{
9696
var result = new MetadataUnifyingSymbolHashSet();
9797
foreach (var symbol in symbols)
98-
result.AddIfNotNull(await TryMapToAppropriateSymbolAsync(solution, symbol, cancellationToken).ConfigureAwait(false));
98+
result.AddIfNotNull(TryMapToAppropriateSymbol(solution, symbol, cancellationToken));
9999

100100
return result;
101101
}
102102

103-
private static async Task<ISymbol?> TryMapToAppropriateSymbolAsync(
103+
private static ISymbol? TryMapToAppropriateSymbol(
104104
Solution solution, ISymbol symbol, CancellationToken cancellationToken)
105105
{
106106
// Never search for an alias. Always search for it's target. Note: if the caller was
@@ -133,7 +133,7 @@ private static async Task<MetadataUnifyingSymbolHashSet> MapToAppropriateSymbols
133133
// source definition as the 'truth' of a symbol versus seeing it projected into dependent cross language
134134
// projects as a metadata symbol. If there is no source symbol, then continue to just use the metadata
135135
// symbol as the one to be looking for.
136-
var sourceSymbol = await SymbolFinder.FindSourceDefinitionAsync(searchSymbol, solution, cancellationToken).ConfigureAwait(false);
136+
var sourceSymbol = SymbolFinder.FindSourceDefinition(searchSymbol, solution, cancellationToken);
137137
return sourceSymbol ?? searchSymbol;
138138
}
139139

@@ -210,7 +210,7 @@ protected static async Task AddCascadedAndLinkedSymbolsToAsync(
210210

211211
async Task<ISymbol?> TryMapAndAddLinkedSymbolsAsync(ISymbol symbol)
212212
{
213-
var mapped = await TryMapToAppropriateSymbolAsync(solution, symbol, cancellationToken).ConfigureAwait(false);
213+
var mapped = TryMapToAppropriateSymbol(solution, symbol, cancellationToken);
214214
if (mapped is null)
215215
return null;
216216

0 commit comments

Comments
 (0)