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