36 references to FindReferencesAsync
IdeCoreBenchmarks (1)
FindReferencesBenchmarks.cs (1)
108var references = await SymbolFinder.FindReferencesAsync(_type, _solution);
Microsoft.CodeAnalysis.CodeStyle.Fixes (4)
src\Analyzers\Core\CodeFixes\AddParameter\AddParameterService.cs (1)
150var referencedSymbols = await SymbolFinder.FindReferencesAsync(
src\Analyzers\Core\CodeFixes\MakeMethodSynchronous\AbstractMakeMethodSynchronousCodeFixProvider.cs (1)
132var references = await SymbolFinder.FindReferencesAsync(
src\Analyzers\Core\CodeFixes\RemoveUnusedParametersAndValues\AbstractRemoveUnusedValuesCodeFixProvider.cs (1)
921var referencedSymbols = await SymbolFinder.FindReferencesAsync(local, document.Project.Solution, cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.State.cs (1)
91var findReferencesResult = await SymbolFinder.FindReferencesAsync(LocalSymbol, document.Project.Solution, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (1)
477.FindReferencesAsync(type, solutionEditor.OriginalSolution, cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\UseSystemThreadingLock\CSharpUseSystemThreadingLockCodeFixProvider.cs (1)
116var fieldReferences = await SymbolFinder.FindReferencesAsync(field, solution, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.Features (2)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (1)
477.FindReferencesAsync(type, solutionEditor.OriginalSolution, cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\UseSystemThreadingLock\CSharpUseSystemThreadingLockCodeFixProvider.cs (1)
116var fieldReferences = await SymbolFinder.FindReferencesAsync(field, solution, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Features (5)
ReplaceMethodWithProperty\ReplaceMethodWithPropertyCodeRefactoringProvider.cs (2)
163var getMethodReferences = await SymbolFinder.FindReferencesAsync( 167: await SymbolFinder.FindReferencesAsync(
ReplacePropertyWithMethods\ReplacePropertyWithMethodsCodeRefactoringProvider.cs (1)
89var propertyReferences = await SymbolFinder.FindReferencesAsync(propertySymbol, originalSolution, cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\AddParameter\AddParameterService.cs (1)
150var referencedSymbols = await SymbolFinder.FindReferencesAsync(
src\Analyzers\Core\CodeFixes\RemoveUnusedParametersAndValues\AbstractRemoveUnusedValuesCodeFixProvider.cs (1)
921var referencedSymbols = await SymbolFinder.FindReferencesAsync(local, document.Project.Solution, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Workspaces (2)
FindSymbols\LinkedFileReferenceLocationEqualityComparer.cs (1)
12/// Helper comparer to enable consumers of <see cref="SymbolFinder.FindReferencesAsync(ISymbol, Solution,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.State.cs (1)
91var findReferencesResult = await SymbolFinder.FindReferencesAsync(LocalSymbol, document.Project.Solution, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Workspaces.UnitTests (18)
FindReferencesTests.cs (18)
106var result = (await SymbolFinder.FindReferencesAsync(symbol, solution)).ToList(); 131var result = (await SymbolFinder.FindReferencesAsync(symbol.Type, solution)).ToList(); 188var references = await SymbolFinder.FindReferencesAsync(symbol, prj.Solution); 193references = await SymbolFinder.FindReferencesAsync(symbol, prj.Solution); 224var references = await SymbolFinder.FindReferencesAsync(symbol, prj.Solution); 292var references = await SymbolFinder.FindReferencesAsync(symbol, prj.Solution); 297references = await SymbolFinder.FindReferencesAsync(symbol, prj.Solution); 329var result = (await SymbolFinder.FindReferencesAsync(boo, solution)).ToList(); 340result = (await SymbolFinder.FindReferencesAsync(boo, solution)).ToList(); 351result = (await SymbolFinder.FindReferencesAsync(boo, solution)).ToList(); 393var references = (await SymbolFinder.FindReferencesAsync(interfaceMethod, solution)).ToList(); 439var references = await SymbolFinder.FindReferencesAsync(nameProperty, solution); 488var refsFromVirtual = await SymbolFinder.FindReferencesAsync(baseVirtualMethodSymbol, solution); 492var refsFromOverride = await SymbolFinder.FindReferencesAsync(overriddenMethodSymbol, solution); 517var result = (await SymbolFinder.FindReferencesAsync(constraint, solution)).Single(); 544var result = (await SymbolFinder.FindReferencesAsync(symbol, solution)).ToList(); 577var result = (await SymbolFinder.FindReferencesAsync(symbol, solution)).ToList(); 619var result = (await SymbolFinder.FindReferencesAsync(symbol, solution)).ToList();
Microsoft.Interop.LibraryImportGenerator (1)
Analyzers\ConvertToLibraryImportFixer.cs (1)
274IEnumerable<ReferencedSymbol>? referencedSymbols = await SymbolFinder.FindReferencesAsync(
Microsoft.VisualStudio.LanguageServices (1)
Progression\GraphQueries\IsUsedByGraphQuery.cs (1)
27var references = await SymbolFinder.FindReferencesAsync(symbol, solution, cancellationToken).ConfigureAwait(false);