RangeInfo: Add a new range info kind that describes part of a parent expression. rdar://32039874 (#9707)

This commit is contained in:
Xi Ge
2017-05-17 14:21:47 -07:00
committed by GitHub
parent 8876655f6b
commit 83183abc38
5 changed files with 95 additions and 9 deletions

View File

@@ -1357,6 +1357,7 @@ static void resolveRange(SwiftLangSupport &Lang,
Receiver(Result);
return;
}
case RangeKind::PartOfExpression:
case RangeKind::Invalid:
if (!getPreviousASTSnaps().empty()) {
// Attempt again using the up-to-date AST.