mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[IDE][SourceKit] Support escaped identifiers for the syntactic rename and related idents requests.
Resolves rdar://problem/46409010 Resolves rdar://problem/48256383
This commit is contained in:
@@ -131,6 +131,8 @@ static std::vector<CharSourceRange> getLabelRanges(const ParameterList* List,
|
||||
} else {
|
||||
NameLoc = ParamLoc;
|
||||
NameLength = Param->getNameStr().size();
|
||||
if (SM.extractText({NameLoc, 1}) == "`")
|
||||
NameLength += 2;
|
||||
LabelRanges.push_back(CharSourceRange(NameLoc, NameLength));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user