[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:
Nathan Hawes
2020-04-29 19:13:25 -07:00
parent 5239668b29
commit 0f8619b943
16 changed files with 135 additions and 10 deletions

View File

@@ -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));
}
}