9 instantiations of RenameLocation
Microsoft.CodeAnalysis.Workspaces (9)
Rename\IRemoteRenamerService.cs (1)
94
return new
RenameLocation
(
Rename\SymbolicRenameLocations.ReferenceProcessing.cs (8)
241
results.Add(new
RenameLocation
(location, document.Id, isRenamableAccessor: isRenamableAccessor));
270
results.Add(new
RenameLocation
(location, location.Document.Id));
276
results.Add(new
RenameLocation
(aliasLocation, solution.GetRequiredDocument(aliasLocation.SourceTree).Id));
293
results.Add(new
RenameLocation
(location.Location, location.Document.Id,
299
results.Add(new
RenameLocation
(aliasLocation, solution.GetRequiredDocument(aliasLocation.SourceTree).Id));
305
results.Add(new
RenameLocation
(
313
results.Add(new
RenameLocation
(
430
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)
758
ImmutableArray<
RenameLocation
> renameLocations,
844
private static bool ShouldIncludeLocation(ImmutableArray<
RenameLocation
> renameLocations,
RenameLocation
location)
856
return
RenameLocation
.ShouldRename(location);
869
IEnumerable<
RenameLocation
> locationsToRename)
872
foreach (
var
renameLocation in locationsToRename)
Rename\IRemoteRenamerService.cs (4)
78
public static SerializableRenameLocation Dehydrate(
RenameLocation
location)
87
public async ValueTask<
RenameLocation
> RehydrateAsync(Solution solution, CancellationToken cancellation)
162
public async ValueTask<ImmutableArray<
RenameLocation
>> RehydrateLocationsAsync(
165
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)
161
public static async Task<ImmutableArray<
RenameLocation
>> GetRenamableDefinitionLocationsAsync(
177
using var _ = ArrayBuilder<
RenameLocation
>.GetInstance(out var results);
245
internal static async Task<IEnumerable<
RenameLocation
>> GetRenamableReferenceLocationsAsync(
262
var results = new List<
RenameLocation
>();
325
internal static async Task<(ImmutableArray<
RenameLocation
> strings, ImmutableArray<
RenameLocation
> comments)> GetRenamableLocationsInStringsAndCommentsAsync(
328
ISet<
RenameLocation
> renameLocations,
338
using var _1 = ArrayBuilder<
RenameLocation
>.GetInstance(out var stringLocations);
339
using var _2 = ArrayBuilder<
RenameLocation
>.GetInstance(out var commentLocations);
370
ArrayBuilder<
RenameLocation
> renameLocations, CancellationToken cancellationToken)
388
Document document, string renameText, ArrayBuilder<
RenameLocation
> renameLocations, CancellationToken cancellationToken)
410
ArrayBuilder<
RenameLocation
> renameLocations)
430
var
renameLocation = new RenameLocation(matchLocation, document.Id, containingLocationForStringOrComment: containingSpan);
Rename\SymbolicRenameLocations.SearchResult.cs (2)
14
public readonly ImmutableHashSet<
RenameLocation
> Locations;
19
ImmutableHashSet<
RenameLocation
> locations,