1 instantiation of ReferencedSymbol
Microsoft.CodeAnalysis.Workspaces (1)
Shared\Extensions\IFindReferencesResultExtensions.cs (1)
108select new ReferencedSymbol(r.Definition, aliasLocations);
66 references to ReferencedSymbol
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Analyzers\Core\CodeFixes\MakeMethodSynchronous\AbstractMakeMethodSynchronousCodeFixProvider.cs (1)
142var referencedSymbol = references.FirstOrDefault(r => Equals(r.Definition, methodSymbol));
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeFixHelper.cs (1)
128foreach (var referencedSymbol in referencedCaptureSymbols)
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeFixHelper.cs (1)
128foreach (var referencedSymbol in referencedCaptureSymbols)
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (3)
FindReferences\FindReferencesTests.vb (3)
254Dim result = ImmutableArray(Of ReferencedSymbol).Empty 371Private Shared Function GetActualReferences(result As ImmutableArray(Of ReferencedSymbol), 459Private Shared Function IsImplicitNamespace(referencedSymbol As ReferencedSymbol) As Boolean
Microsoft.CodeAnalysis.Features (18)
ChangeSignature\AbstractChangeSignatureService.cs (1)
226private static async Task<ImmutableArray<ReferencedSymbol>> FindChangeSignatureReferencesAsync(
CodeRefactorings\SyncNamespace\AbstractChangeNamespaceService.cs (1)
548private static async Task<ImmutableArray<ReferencedSymbol>> FindReferencesAsync(ISymbol symbol, Document document, CancellationToken cancellationToken)
DocumentHighlighting\AbstractDocumentHighlightsService.cs (3)
162ImmutableArray<ReferencedSymbol> references, Document startingDocument, 204IEnumerable<ReferencedSymbol> references, 228foreach (var reference in references)
MoveStaticMembers\MoveStaticMembersWithDialogCodeAction.cs (1)
353using var _ = ArrayBuilder<Task<IEnumerable<ReferencedSymbol>>>.GetInstance(out var tasks);
RemoveUnusedVariable\AbstractRemoveUnusedVariableCodeFixProvider.cs (1)
91foreach (var referencedSymbol in referencedSymbols)
ReplaceMethodWithProperty\ReplaceMethodWithPropertyCodeRefactoringProvider.cs (5)
316IEnumerable<ReferencedSymbol> getMethodReferences, 317IEnumerable<ReferencedSymbol> setMethodReferences, 447IEnumerable<ReferencedSymbol> referencedSymbols, 451foreach (var referencedSymbol in referencedSymbols) 474private static string? GetDefinitionIssues(IEnumerable<ReferencedSymbol> getMethodReferences)
ReplacePropertyWithMethods\ReplacePropertyWithMethodsCodeRefactoringProvider.cs (6)
119private static ImmutableDictionary<IPropertySymbol, IFieldSymbol?> CreateDefinitionToBackingFieldMap(IEnumerable<ReferencedSymbol> propertyReferences) 123foreach (var reference in propertyReferences) 188private static string? GetDefinitionIssues(IEnumerable<ReferencedSymbol> getMethodReferences) 299IEnumerable<ReferencedSymbol> references, 320IEnumerable<ReferencedSymbol> referencedSymbols, 324foreach (var referencedSymbol in referencedSymbols)
Microsoft.CodeAnalysis.Workspaces (26)
FindSymbols\ReferencedSymbol.cs (1)
58internal readonly struct TestAccessor(ReferencedSymbol referencedSymbol)
FindSymbols\StreamingProgressCollector.cs (3)
21/// of <see cref="ReferencedSymbol" />. This is used by the old non-streaming Find-References 38public ImmutableArray<ReferencedSymbol> GetReferencedSymbols() 42var result = new FixedSizeArrayBuilder<ReferencedSymbol>(_symbolToLocations.Count);
FindSymbols\SymbolFinder_Callers.cs (4)
46var directReference = references.Where( 58foreach (var indirectReference in indirectReferences) 65async Task AddReferencingSymbolsAsync(ReferencedSymbol reference, bool isDirect) 75private static async Task<ImmutableArray<ReferencedSymbol>> FindCallReferencesAsync(
FindSymbols\SymbolFinder_FindReferences_Legacy.cs (6)
25public static Task<IEnumerable<ReferencedSymbol>> FindReferencesAsync( 38internal static async Task<IEnumerable<ReferencedSymbol>> FindReferencesAsync( 58public static Task<IEnumerable<ReferencedSymbol>> FindReferencesAsync( 80public static async Task<IEnumerable<ReferencedSymbol>> FindReferencesAsync( 96internal static async Task<ImmutableArray<ReferencedSymbol>> FindReferencesAsync( 115internal static Task<ImmutableArray<ReferencedSymbol>> FindReferencesAsync(
FindSymbols\SymbolFinder_FindRenamableReferences.cs (1)
15internal static async Task<ImmutableArray<ReferencedSymbol>> FindRenamableReferencesAsync(
Shared\Extensions\IFindReferencesResultExtensions.cs (11)
27public static ImmutableArray<ReferencedSymbol> FilterToItemsToShow( 28this ImmutableArray<ReferencedSymbol> result, FindReferencesSearchOptions options) 34this ReferencedSymbol referencedSymbol, FindReferencesSearchOptions options) 96public static ImmutableArray<ReferencedSymbol> FilterToAliasMatches( 97this ImmutableArray<ReferencedSymbol> result, 113public static ImmutableArray<ReferencedSymbol> FilterNonMatchingMethodNames( 114this ImmutableArray<ReferencedSymbol> result, 123private static ImmutableArray<ReferencedSymbol> FilterNonMatchingMethodNamesWorker( 124ImmutableArray<ReferencedSymbol> references, 128using var _ = ArrayBuilder<ReferencedSymbol>.GetInstance(out var result); 129foreach (var reference in references)
Microsoft.CodeAnalysis.Workspaces.UnitTests (10)
FindReferencesTests.cs (10)
134var typeSymbol = result.Where(@ref => @ref.Definition.Kind == SymbolKind.NamedType).Single(); 397foreach (var r in references) 517var result = (await SymbolFinder.FindReferencesAsync(constraint, solution)).Single(); 547var typeResult = result.Single(r => r.Definition.Kind == SymbolKind.NamedType); 548var constructorResult = result.Single(r => r.Definition.Kind == SymbolKind.Method); 580var typeResult = result.Single(r => r.Definition.Kind == SymbolKind.NamedType); 581var constructorResult = result.Single(r => r.Definition.Kind == SymbolKind.Method); 622var typeResult = result.Single(r => r.Definition.Kind == SymbolKind.NamedType); 623var constructorResult = result.Single(r => r.Definition.Kind == SymbolKind.Method); 640private static void Verify(ReferencedSymbol reference, HashSet<int> expectedMatchedLines)
Microsoft.Interop.LibraryImportGenerator (2)
Analyzers\ConvertToLibraryImportFixer.cs (2)
274IEnumerable<ReferencedSymbol>? referencedSymbols = await SymbolFinder.FindReferencesAsync( 282foreach (ReferencedSymbol? referencedSymbol in referencedSymbols)
Microsoft.VisualStudio.LanguageServices (2)
Progression\GraphQueries\IsUsedByGraphQuery.cs (1)
29foreach (var reference in references)
ProjectSystem\VisualStudioWorkspace.cs (1)
69public abstract void DisplayReferencedSymbols(Solution solution, IEnumerable<ReferencedSymbol> referencedSymbols);
Microsoft.VisualStudio.LanguageServices.Test.Utilities2 (2)
CodeModel\Mocks\MockVisualStudioWorkspace.vb (1)
80Public Overrides Sub DisplayReferencedSymbols(solution As Solution, referencedSymbols As IEnumerable(Of ReferencedSymbol))
ProjectSystemShim\Framework\TestEnvironment.vb (1)
106Public Overrides Sub DisplayReferencedSymbols(solution As Solution, referencedSymbols As IEnumerable(Of ReferencedSymbol))