2 references to SelectFirstOrDefaultAsync
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService_FindDeclaration.cs (2)
190
declaration = await
SelectFirstOrDefaultAsync
(declarations.Where(r => r.SyntaxTree == location.SourceTree), node => true, cancellationToken).ConfigureAwait(false);
210
declaration = fallbackDeclaration ?? await
SelectFirstOrDefaultAsync
(declarations, node => true, cancellationToken).ConfigureAwait(false);