mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[SourceKit] Remove newName from RenameLoc
We should (and do) have one new name for the entire rename operation, not a separate new name for different positions at which the renamed symbol occurs.
This commit is contained in:
@@ -110,8 +110,7 @@ getNotableRegions(StringRef SourceText, unsigned NameOffset, StringRef Name,
|
||||
|
||||
RenameLoc RenameConfig = {LineAndCol.first, LineAndCol.second,
|
||||
NameUsage::Definition, /*OldName=*/Name,
|
||||
/*NewName=*/"", IsFunctionLike,
|
||||
IsNonProtocolType};
|
||||
IsFunctionLike, IsNonProtocolType};
|
||||
RenameRangeDetailCollector Renamer(SM, Name);
|
||||
Renamer.addSyntacticRenameRanges(Resolved.back(), RenameConfig);
|
||||
auto Ranges = Renamer.Ranges;
|
||||
|
||||
Reference in New Issue
Block a user