11 instantiations of ReferenceLocation
Microsoft.CodeAnalysis.Features (1)
ChangeSignature\DelegateInvokeMethodReferenceFinder.cs (1)
109new ReferenceLocation(
Microsoft.CodeAnalysis.Workspaces (10)
FindSymbols\FindReferences\Finders\AbstractReferenceFinder.cs (6)
213=> new( 419locations.Add(new FinderLocation(node, new ReferenceLocation( 457locations.Add(new FinderLocation(expression, new ReferenceLocation( 497locations.Add(new FinderLocation(node, new ReferenceLocation( 524locations.Add(new FinderLocation(node, new ReferenceLocation( 555locations.Add(new FinderLocation(node, new ReferenceLocation(
FindSymbols\FindReferences\Finders\AbstractReferenceFinder_GlobalSuppressions.cs (1)
235return new ReferenceLocation(document, location, containingStringLocation);
FindSymbols\FindReferences\Finders\ConstructorSymbolReferenceFinder.cs (1)
244locations.Add(new FinderLocation(node, new ReferenceLocation(
FindSymbols\FindReferences\Finders\PropertySymbolReferenceFinder.cs (1)
208new ReferenceLocation(
Remote\RemoteArguments.cs (1)
196return new ReferenceLocation(
100 references to ReferenceLocation
Microsoft.CodeAnalysis.CodeStyle.Fixes (4)
AbstractMakeMethodSynchronousCodeFixProvider.cs (4)
155Solution solution, ImmutableArray<ReferenceLocation> locations, CancellationToken cancellationToken) 171Solution currentSolution, IGrouping<Document, ReferenceLocation> group, CancellationToken cancellationToken) 179foreach (var location in group) 190SyntaxNode root, ReferenceLocation referenceLocation,
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
MakeLocalFunctionStaticCodeFixHelper.cs (2)
64foreach (var location in referencedSymbol.Locations) 132foreach (var location in referencedSymbol.Locations)
Microsoft.CodeAnalysis.CSharp.Features (3)
ImplementInterface\CSharpImplementExplicitlyCodeRefactoringProvider.cs (1)
77foreach (var refLocation in group)
MakeLocalFunctionStaticCodeFixHelper.cs (2)
64foreach (var location in referencedSymbol.Locations) 132foreach (var location in referencedSymbol.Locations)
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
Rename\CSharpRenameRewriterLanguageService.cs (2)
987ISymbol renameSymbol, ISymbol renamedSymbol, IEnumerable<ReferenceLocation> implicitReferenceLocations, CancellationToken cancellationToken) 1007foreach (var implicitReferenceLocation in implicitReferenceLocations)
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (1)
FindReferences\FindReferencesTests.vb (1)
409Optional locationFilterOpt As Func(Of ReferenceLocation, Boolean) = Nothing) As Dictionary(Of String, List(Of TextSpan))
Microsoft.CodeAnalysis.Features (39)
AbstractMakeMethodSynchronousCodeFixProvider.cs (4)
155Solution solution, ImmutableArray<ReferenceLocation> locations, CancellationToken cancellationToken) 171Solution currentSolution, IGrouping<Document, ReferenceLocation> group, CancellationToken cancellationToken) 179foreach (var location in group) 190SyntaxNode root, ReferenceLocation referenceLocation,
ChangeSignature\AbstractChangeSignatureService.cs (1)
354foreach (var location in symbol.Locations)
CodeLens\CodeLensFindReferenceProgress.cs (2)
126private bool FilterReference(ISymbol definition, ReferenceLocation reference) 140public void OnReferenceFound(ISymbol symbol, ReferenceLocation location)
CodeRefactorings\SyncNamespace\AbstractChangeNamespaceService.cs (2)
503public LocationForAffectedSymbol(ReferenceLocation location, bool isReferenceToExtensionMethod) 509public ReferenceLocation ReferenceLocation { get; }
DocumentHighlighting\AbstractDocumentHighlightsService.cs (1)
253foreach (var referenceLocation in reference.Locations)
FindUsages\AbstractFindUsagesService.ProgressAdapter.cs (1)
126public async ValueTask OnReferenceFoundAsync(SymbolGroup group, ISymbol definition, ReferenceLocation location, CancellationToken cancellationToken)
FindUsages\IDefinitionsAndReferencesFactory.cs (1)
239this ReferenceLocation referenceLocation,
IntroduceParameter\AbstractIntroduceParameterCodeRefactoringProvider.cs (1)
277foreach (var refLocation in referencedLocations)
MoveStaticMembers\MoveStaticMembersWithDialogCodeAction.cs (3)
212ILookup<ProjectId, (ReferenceLocation location, bool isExtensionMethod)> projectToLocations, 247ImmutableArray<(ReferenceLocation location, bool isExtensionMethod)> referenceLocations, 339private static async Task<ImmutableArray<(ReferenceLocation location, bool isExtension)>> FindMemberReferencesAsync(
RemoveUnusedVariable\AbstractRemoveUnusedVariableCodeFixProvider.cs (1)
95foreach (var location in referencedSymbol.Locations)
ReplaceMethodWithProperty\ReplaceMethodWithPropertyCodeRefactoringProvider.cs (12)
30IEqualityComparer<ReferenceLocation> 196private async Task<Solution> UpdateReferencesAsync(Solution updatedSolution, string propertyName, bool nameChanged, ILookup<Document, ReferenceLocation> getReferencesByDocument, ILookup<Document, ReferenceLocation> setReferencesByDocument, CancellationToken cancellationToken) 218IEnumerable<ReferenceLocation> getReferences, 219IEnumerable<ReferenceLocation> setReferences, 237IEnumerable<ReferenceLocation> getReferences, 249foreach (var referenceLocation in getReferences.Distinct(this)) 277IEnumerable<ReferenceLocation> setReferences, 289foreach (var referenceLocation in setReferences.Distinct(this)) 489public bool Equals([AllowNull] ReferenceLocation x, [AllowNull] ReferenceLocation y) 495public int GetHashCode([DisallowNull] ReferenceLocation obj)
ReplacePropertyWithMethods\ReplacePropertyWithMethodsCodeRefactoringProvider.cs (7)
31IEqualityComparer<(IPropertySymbol property, ReferenceLocation location)> 201ILookup<Document, (IPropertySymbol property, ReferenceLocation location)> referencesByDocument, 221IEnumerable<(IPropertySymbol property, ReferenceLocation location)> references, 242IEnumerable<(IPropertySymbol property, ReferenceLocation location)> references, 435public bool Equals((IPropertySymbol property, ReferenceLocation location) x, (IPropertySymbol property, ReferenceLocation location) y) 441public int GetHashCode((IPropertySymbol property, ReferenceLocation location) obj)
ValueTracking\ValueTracker.FindReferencesProgress.cs (3)
39public async ValueTask OnReferenceFoundAsync(SymbolGroup _, ISymbol symbol, ReferenceLocation location, CancellationToken cancellationToken) 140private async Task TrackConstructorAsync(ReferenceLocation referenceLocation, CancellationToken cancellationToken) 163private async Task TrackMethodInvocationArgumentsAsync(ReferenceLocation referenceLocation, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Services\SymbolFinder\RemoteSymbolFinderService.cs (1)
234public ValueTask OnReferenceFoundAsync(SymbolGroup group, ISymbol definition, ReferenceLocation reference, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
Rename\VisualBasicRenameRewriterLanguageService.vb (1)
800implicitReferenceLocations As IEnumerable(Of ReferenceLocation),
Microsoft.CodeAnalysis.Workspaces (46)
FindSymbols\FindReferences\Finders\AbstractReferenceFinder.cs (1)
212public static ReferenceLocation CreateReferenceLocation(FindReferencesDocumentState state, SyntaxToken token, CandidateReason reason, CancellationToken cancellationToken)
FindSymbols\FindReferences\Finders\AbstractReferenceFinder_GlobalSuppressions.cs (2)
88var referenceLocation = CreateReferenceLocation(offsetOfReferenceInToken, token, root, state.Document, syntaxFacts); 202static ReferenceLocation CreateReferenceLocation(
FindSymbols\FindReferences\Finders\FinderLocation.cs (4)
19/// also has a <see cref="ReferenceLocation.Location"/> property. Importantly, this value 27public readonly ReferenceLocation Location; 29public FinderLocation(SyntaxNode node, ReferenceLocation location) 35public void Deconstruct(out SyntaxNode node, out ReferenceLocation location)
FindSymbols\FindReferences\FindReferencesProgress.cs (1)
35public void OnReferenceFound(ISymbol symbol, ReferenceLocation location)
FindSymbols\FindReferences\FindReferencesSearchEngine_FindReferencesInDocuments.cs (1)
135var location = AbstractReferenceFinder.CreateReferenceLocation(state, token, candidateReason, cancellationToken);
FindSymbols\FindReferences\NoOpStreamingFindReferencesProgress.cs (1)
29public ValueTask OnReferenceFoundAsync(SymbolGroup group, ISymbol symbol, ReferenceLocation location, CancellationToken cancellationToken) => default;
FindSymbols\FindReferences\StreamingFindReferencesProgress.cs (1)
67public ValueTask OnReferenceFoundAsync(SymbolGroup group, ISymbol symbol, ReferenceLocation location, CancellationToken cancellationToken)
FindSymbols\IFindReferencesProgress.cs (1)
20void OnReferenceFound(ISymbol symbol, ReferenceLocation location);
FindSymbols\IStreamingFindReferencesProgress.cs (1)
75ValueTask OnReferenceFoundAsync(SymbolGroup group, ISymbol symbol, ReferenceLocation location, CancellationToken cancellationToken);
FindSymbols\ReferencedSymbol.cs (3)
34internal ImmutableArray<ReferenceLocation> LocationsArray { get; } 39public IEnumerable<ReferenceLocation> Locations => LocationsArray; 43ImmutableArray<ReferenceLocation> locations)
FindSymbols\ReferenceLocation.cs (9)
17public readonly struct ReferenceLocation : IComparable<ReferenceLocation>, IEquatable<ReferenceLocation> 113public static bool operator ==(ReferenceLocation left, ReferenceLocation right) 116public static bool operator !=(ReferenceLocation left, ReferenceLocation right) 121return obj is ReferenceLocation location && 125public bool Equals(ReferenceLocation other) 144public int CompareTo(ReferenceLocation other)
FindSymbols\ReferenceLocationExtensions.cs (4)
17this IEnumerable<ReferenceLocation> referenceLocations, 50IEnumerable<ReferenceLocation> references, 53foreach (var reference in references) 71ReferenceLocation reference)
FindSymbols\StreamingProgressCollector.cs (4)
20/// Collects all the <see cref="ISymbol"/> definitions and <see cref="ReferenceLocation"/> 31private readonly Dictionary<ISymbol, List<ReferenceLocation>> _symbolToLocations = new(); 71_symbolToLocations[definition] = new List<ReferenceLocation>(); 82public ValueTask OnReferenceFoundAsync(SymbolGroup group, ISymbol definition, ReferenceLocation location, CancellationToken cancellationToken)
FindSymbols\SymbolFinder.FindReferencesServerCallback.cs (1)
114var referenceLocation = await reference.RehydrateAsync(
Remote\RemoteArguments.cs (2)
177ReferenceLocation referenceLocation, CancellationToken cancellationToken) 189public async ValueTask<ReferenceLocation> RehydrateAsync(
Rename\ConflictEngine\ConflictResolver.cs (1)
180IEnumerable<ReferenceLocation> implicitReferenceLocations,
Rename\IRenameRewriterLanguageService.cs (2)
73IEnumerable<ReferenceLocation> implicitReferenceLocations, 127public abstract Task<ImmutableArray<Location>> ComputeImplicitReferenceConflictsAsync(ISymbol renameSymbol, ISymbol renamedSymbol, IEnumerable<ReferenceLocation> implicitReferenceLocations, CancellationToken cancellationToken);
Rename\RenameLocation.cs (1)
41public RenameLocation(ReferenceLocation referenceLocation, DocumentId documentId)
Rename\SymbolicRenameLocations.cs (3)
36public readonly ImmutableArray<ReferenceLocation> ImplicitLocations; 45ImmutableArray<ReferenceLocation> implicitLocations, 91using var _2 = ArrayBuilder<ReferenceLocation>.GetInstance(out var mergedImplicitLocations);
Rename\SymbolicRenameLocations.ReferenceProcessing.cs (1)
231internal static async Task<IEnumerable<RenameLocation>> GetRenamableReferenceLocationsAsync(ISymbol referencedSymbol, ISymbol originalSymbol, ReferenceLocation location, Solution solution, CancellationToken cancellationToken)
Rename\SymbolicRenameLocations.SearchResult.cs (2)
16public readonly ImmutableArray<ReferenceLocation> ImplicitLocations; 21ImmutableArray<ReferenceLocation> implicitLocations,
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
FindReferencesTests.cs (1)
634foreach (var location in reference.Locations)