9 instantiations of RenameLocation
Microsoft.CodeAnalysis.Workspaces (9)
Rename\IRemoteRenamerService.cs (1)
93
return new
RenameLocation
(
Rename\SymbolicRenameLocations.ReferenceProcessing.cs (8)
240
results.Add(new
RenameLocation
(location, document.Id, isRenamableAccessor: isRenamableAccessor));
268
results.Add(new
RenameLocation
(location, location.Document.Id));
274
results.Add(new
RenameLocation
(aliasLocation, solution.GetRequiredDocument(aliasLocation.SourceTree).Id));
287
results.Add(new
RenameLocation
(location.Location, location.Document.Id,
293
results.Add(new
RenameLocation
(aliasLocation, solution.GetRequiredDocument(aliasLocation.SourceTree).Id));
299
results.Add(new
RenameLocation
(
307
results.Add(new
RenameLocation
(
424
var renameLocation = new
RenameLocation
(matchLocation, document.Id, containingLocationForStringOrComment: containingSpan);
39 references to RenameLocation
Microsoft.CodeAnalysis.Workspaces (39)
Rename\ConflictEngine\ConflictResolver.Session.cs (6)
778
ImmutableArray<
RenameLocation
> renameLocations,
861
private static bool ShouldIncludeLocation(ImmutableArray<
RenameLocation
> renameLocations,
RenameLocation
location)
873
return
RenameLocation
.ShouldRename(location);
886
IEnumerable<
RenameLocation
> locationsToRename)
889
foreach (
var
renameLocation in locationsToRename)
Rename\IRemoteRenamerService.cs (4)
79
public static SerializableRenameLocation Dehydrate(
RenameLocation
location)
88
public async ValueTask<
RenameLocation
> RehydrateAsync(Solution solution, CancellationToken cancellation)
161
public async ValueTask<ImmutableArray<
RenameLocation
>> RehydrateLocationsAsync(
164
var locBuilder = new FixedSizeArrayBuilder<
RenameLocation
>(this.Locations.Length);
Rename\LightweightRenameLocations.cs (2)
28
public readonly ImmutableArray<
RenameLocation
> Locations;
35
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)
29
public readonly ImmutableArray<
RenameLocation
> Locations;
37
ImmutableArray<
RenameLocation
> locations,
81
using var _0 = ArrayBuilder<
RenameLocation
>.GetInstance(out var mergedLocations);
129
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)
14
public readonly ImmutableHashSet<
RenameLocation
> Locations;
19
ImmutableHashSet<
RenameLocation
> locations,