9 instantiations of RenameLocation
Microsoft.CodeAnalysis.Workspaces (9)
Rename\IRemoteRenamerService.cs (1)
131
return new
RenameLocation
(
Rename\SymbolicRenameLocations.ReferenceProcessing.cs (8)
227
results.Add(new
RenameLocation
(location, document.Id, isRenamableAccessor: isRenamableAccessor));
261
results.Add(new
RenameLocation
(location, location.Document.Id));
267
results.Add(new
RenameLocation
(aliasLocation, solution.GetRequiredDocument(aliasLocation.SourceTree).Id));
280
results.Add(new
RenameLocation
(location.Location, location.Document.Id,
286
results.Add(new
RenameLocation
(aliasLocation, solution.GetRequiredDocument(aliasLocation.SourceTree).Id));
292
results.Add(new
RenameLocation
(
300
results.Add(new
RenameLocation
(
417
var renameLocation = new
RenameLocation
(matchLocation, document.Id, containingLocationForStringOrComment: containingSpan);
49 references to RenameLocation
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Rename\CSharpRenameRewriterLanguageService.cs (1)
56
private readonly ImmutableDictionary<TextSpan,
RenameLocation
> _renameLocations;
Microsoft.CodeAnalysis.EditorFeatures (2)
InlineRename\AbstractEditorInlineRenameService.InlineRenameLocationSet.cs (2)
28
this.Locations = renameLocationSet.Locations.Where(
RenameLocation
.ShouldRename)
33
private InlineRenameLocation ConvertLocation(
RenameLocation
location)
Microsoft.CodeAnalysis.Features (1)
UseAutoProperty\AbstractUseAutoPropertyCodeFixProvider.cs (1)
309
RenameLocation
location,
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
Rename\VisualBasicRenameRewriterLanguageService.vb (1)
46
Private ReadOnly _renameLocations As ImmutableDictionary(Of TextSpan,
RenameLocation
)
Microsoft.CodeAnalysis.Workspaces (44)
Rename\ConflictEngine\ConflictResolver.Session.cs (6)
773
ImmutableArray<
RenameLocation
> renameLocations,
856
private static bool ShouldIncludeLocation(ImmutableArray<
RenameLocation
> renameLocations,
RenameLocation
location)
868
return
RenameLocation
.ShouldRename(location);
881
IEnumerable<
RenameLocation
> locationsToRename)
884
foreach (
var
renameLocation in locationsToRename)
Rename\IRemoteRenamerService.cs (4)
117
public static SerializableRenameLocation Dehydrate(
RenameLocation
location)
126
public async ValueTask<
RenameLocation
> RehydrateAsync(Solution solution, CancellationToken cancellation)
208
public async ValueTask<ImmutableArray<
RenameLocation
>> RehydrateLocationsAsync(
211
using var _ = ArrayBuilder<
RenameLocation
>.GetInstance(this.Locations.Length, out var locBuilder);
Rename\LightweightRenameLocations.cs (2)
30
public readonly ImmutableArray<
RenameLocation
> Locations;
38
ImmutableArray<
RenameLocation
> locations,
Rename\RenameLocation.cs (4)
11
internal readonly struct RenameLocation : IEquatable<
RenameLocation
>
48
public bool Equals(
RenameLocation
other)
53
return obj is
RenameLocation
loc &&
60
internal static bool ShouldRename(
RenameLocation
location)
Rename\RenameRewriterParameters.cs (2)
25
internal readonly ImmutableDictionary<TextSpan,
RenameLocation
> RenameLocations;
44
ImmutableDictionary<TextSpan,
RenameLocation
> renameLocations,
Rename\RenameUtilities.cs (2)
82
internal static IEnumerable<Document> GetDocumentsAffectedByRename(ISymbol symbol, Solution solution, IEnumerable<
RenameLocation
> renameLocations)
174
if (
RenameLocation
.ShouldRename(symbolInfo.CandidateReason) &&
Rename\SymbolicRenameLocations.cs (4)
35
public readonly ImmutableArray<
RenameLocation
> Locations;
44
ImmutableArray<
RenameLocation
> locations,
89
using var _0 = ArrayBuilder<
RenameLocation
>.GetInstance(out var mergedLocations);
137
var locations = ImmutableHashSet.CreateBuilder<
RenameLocation
>();
Rename\SymbolicRenameLocations.ReferenceProcessing.cs (18)
149
public static async Task<ImmutableArray<
RenameLocation
>> GetRenamableDefinitionLocationsAsync(
155
return ImmutableArray<
RenameLocation
>.Empty;
162
return ImmutableArray<
RenameLocation
>.Empty;
165
var results = ArrayBuilder<
RenameLocation
>.GetInstance();
231
internal static async Task<IEnumerable<
RenameLocation
>> GetRenamableReferenceLocationsAsync(ISymbol referencedSymbol, ISymbol originalSymbol, ReferenceLocation location, Solution solution, CancellationToken cancellationToken)
237
return SpecializedCollections.EmptyEnumerable<
RenameLocation
>();
243
return SpecializedCollections.EmptyEnumerable<
RenameLocation
>();
250
return SpecializedCollections.EmptyEnumerable<
RenameLocation
>();
253
var results = new List<
RenameLocation
>();
312
internal static async Task<(ImmutableArray<
RenameLocation
> strings, ImmutableArray<
RenameLocation
> comments)> GetRenamableLocationsInStringsAndCommentsAsync(
315
ISet<
RenameLocation
> renameLocations,
325
using var _1 = ArrayBuilder<
RenameLocation
>.GetInstance(out var stringLocations);
326
using var _2 = ArrayBuilder<
RenameLocation
>.GetInstance(out var commentLocations);
357
ArrayBuilder<
RenameLocation
> renameLocations, CancellationToken cancellationToken)
375
Document document, string renameText, ArrayBuilder<
RenameLocation
> renameLocations, CancellationToken cancellationToken)
397
ArrayBuilder<
RenameLocation
> renameLocations)
417
var
renameLocation = new RenameLocation(matchLocation, document.Id, containingLocationForStringOrComment: containingSpan);
Rename\SymbolicRenameLocations.SearchResult.cs (2)
15
public readonly ImmutableHashSet<
RenameLocation
> Locations;
20
ImmutableHashSet<
RenameLocation
> locations,