9 instantiations of RenameLocation
Microsoft.CodeAnalysis.Workspaces (9)
Rename\IRemoteRenamerService.cs (1)
95
return new
RenameLocation
(
Rename\SymbolicRenameLocations.ReferenceProcessing.cs (8)
247
results.Add(new
RenameLocation
(location, document.Id, isRenamableAccessor: isRenamableAccessor));
280
results.Add(new
RenameLocation
(location, location.Document.Id));
286
results.Add(new
RenameLocation
(aliasLocation, solution.GetRequiredDocument(aliasLocation.SourceTree).Id));
303
results.Add(new
RenameLocation
(location.Location, location.Document.Id,
309
results.Add(new
RenameLocation
(aliasLocation, solution.GetRequiredDocument(aliasLocation.SourceTree).Id));
315
results.Add(new
RenameLocation
(
323
results.Add(new
RenameLocation
(
440
var renameLocation = new
RenameLocation
(matchLocation, document.Id, containingLocationForStringOrComment: containingSpan);
42 references to RenameLocation
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Rename\CSharpRenameRewriterLanguageService.cs (1)
54
private readonly ImmutableDictionary<TextSpan,
RenameLocation
> _renameLocations;
Microsoft.CodeAnalysis.EditorFeatures (2)
InlineRename\AbstractEditorInlineRenameService.InlineRenameLocationSet.cs (2)
27
var validLocations = renameLocationSet.Locations.Where(
RenameLocation
.ShouldRename);
48
private static async ValueTask<InlineRenameLocation> ConvertLocationAsync(Solution solution,
RenameLocation
location, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.Workspaces (39)
Rename\ConflictEngine\ConflictResolver.Session.cs (6)
760
ImmutableArray<
RenameLocation
> renameLocations,
846
private static bool ShouldIncludeLocation(ImmutableArray<
RenameLocation
> renameLocations,
RenameLocation
location)
858
return
RenameLocation
.ShouldRename(location);
871
IEnumerable<
RenameLocation
> locationsToRename)
874
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)
163
public async ValueTask<ImmutableArray<
RenameLocation
>> RehydrateLocationsAsync(
166
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)
120
internal static IEnumerable<Document> GetDocumentsAffectedByRename(ISymbol symbol, Solution solution, IEnumerable<
RenameLocation
> renameLocations)
218
if (
RenameLocation
.ShouldRename(symbolInfo.CandidateReason) &&
Rename\SymbolicRenameLocations.cs (4)
29
public readonly ImmutableArray<
RenameLocation
> Locations;
37
ImmutableArray<
RenameLocation
> locations,
89
using var _0 = ArrayBuilder<
RenameLocation
>.GetInstance(out var mergedLocations);
138
var locations = ImmutableHashSet.CreateBuilder<
RenameLocation
>();
Rename\SymbolicRenameLocations.ReferenceProcessing.cs (13)
161
public static async Task<ImmutableArray<
RenameLocation
>> GetRenamableDefinitionLocationsAsync(
177
using var _ = ArrayBuilder<
RenameLocation
>.GetInstance(out var results);
251
internal static async Task<IEnumerable<
RenameLocation
>> GetRenamableReferenceLocationsAsync(
272
var results = new List<
RenameLocation
>();
335
internal static async Task<(ImmutableArray<
RenameLocation
> strings, ImmutableArray<
RenameLocation
> comments)> GetRenamableLocationsInStringsAndCommentsAsync(
338
ISet<
RenameLocation
> renameLocations,
348
using var _1 = ArrayBuilder<
RenameLocation
>.GetInstance(out var stringLocations);
349
using var _2 = ArrayBuilder<
RenameLocation
>.GetInstance(out var commentLocations);
380
ArrayBuilder<
RenameLocation
> renameLocations, CancellationToken cancellationToken)
398
Document document, string renameText, ArrayBuilder<
RenameLocation
> renameLocations, CancellationToken cancellationToken)
420
ArrayBuilder<
RenameLocation
> renameLocations)
440
var
renameLocation = new RenameLocation(matchLocation, document.Id, containingLocationForStringOrComment: containingSpan);
Rename\SymbolicRenameLocations.SearchResult.cs (2)
14
public readonly ImmutableHashSet<
RenameLocation
> Locations;
19
ImmutableHashSet<
RenameLocation
> locations,