37 references to RenameLocation
Microsoft.CodeAnalysis.Workspaces (37)
Rename\ConflictEngine\ConflictResolver.Session.cs (6)
780
ImmutableArray<
RenameLocation
> renameLocations,
863
private static bool ShouldIncludeLocation(ImmutableArray<
RenameLocation
> renameLocations,
RenameLocation
location)
875
return
RenameLocation
.ShouldRename(location);
888
IEnumerable<
RenameLocation
> locationsToRename)
891
foreach (
var
renameLocation in locationsToRename)
Rename\IRemoteRenamerService.cs (2)
83
public static SerializableRenameLocation Dehydrate(
RenameLocation
location)
92
public async ValueTask<
RenameLocation
> RehydrateAsync(Solution solution, CancellationToken cancellation)
Rename\LightweightRenameLocations.cs (2)
29
public readonly ImmutableArray<
RenameLocation
> Locations;
36
ImmutableArray<
RenameLocation
> locations,
Rename\RenameLocation.cs (4)
18
TextSpan containingLocationForStringOrComment = default) : IEquatable<
RenameLocation
>
37
public bool Equals(
RenameLocation
other)
42
return obj is
RenameLocation
loc &&
49
internal static bool ShouldRename(
RenameLocation
location)
Rename\RenameRewriterParameters.cs (2)
21
ImmutableDictionary<TextSpan,
RenameLocation
> renameLocations,
42
internal readonly ImmutableDictionary<TextSpan,
RenameLocation
> RenameLocations = renameLocations;
Rename\RenameUtilities.cs (2)
82
internal static IEnumerable<Document> GetDocumentsAffectedByRename(ISymbol symbol, Solution solution, IEnumerable<
RenameLocation
> renameLocations)
180
if (
RenameLocation
.ShouldRename(symbolInfo.CandidateReason) &&
Rename\SymbolicRenameLocations.cs (4)
30
public readonly ImmutableArray<
RenameLocation
> Locations;
38
ImmutableArray<
RenameLocation
> locations,
82
using var _0 = ArrayBuilder<
RenameLocation
>.GetInstance(out var mergedLocations);
130
var locations = ImmutableHashSet.CreateBuilder<
RenameLocation
>();
Rename\SymbolicRenameLocations.ReferenceProcessing.cs (13)
160
public static async Task<ImmutableArray<
RenameLocation
>> GetRenamableDefinitionLocationsAsync(
176
var results = ArrayBuilder<
RenameLocation
>.GetInstance();
244
internal static async Task<IEnumerable<
RenameLocation
>> GetRenamableReferenceLocationsAsync(ISymbol referencedSymbol, ISymbol originalSymbol, ReferenceLocation location, Solution solution, CancellationToken cancellationToken)
260
var results = new List<
RenameLocation
>();
319
internal static async Task<(ImmutableArray<
RenameLocation
> strings, ImmutableArray<
RenameLocation
> comments)> GetRenamableLocationsInStringsAndCommentsAsync(
322
ISet<
RenameLocation
> renameLocations,
332
using var _1 = ArrayBuilder<
RenameLocation
>.GetInstance(out var stringLocations);
333
using var _2 = ArrayBuilder<
RenameLocation
>.GetInstance(out var commentLocations);
364
ArrayBuilder<
RenameLocation
> renameLocations, CancellationToken cancellationToken)
382
Document document, string renameText, ArrayBuilder<
RenameLocation
> renameLocations, CancellationToken cancellationToken)
404
ArrayBuilder<
RenameLocation
> renameLocations)
424
var
renameLocation = new RenameLocation(matchLocation, document.Id, containingLocationForStringOrComment: containingSpan);
Rename\SymbolicRenameLocations.SearchResult.cs (2)
15
public readonly ImmutableHashSet<
RenameLocation
> Locations;
20
ImmutableHashSet<
RenameLocation
> locations,