File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -1531,7 +1531,6 @@ void CodeCompletionContext::sortCompletionResults(
15311531}
15321532
15331533namespace {
1534- class CompletionLookup ;
15351534
15361535class CodeCompletionCallbacksImpl : public CodeCompletionCallbacks {
15371536 CodeCompletionContext &CompletionContext;
Original file line number Diff line number Diff line change @@ -739,9 +739,8 @@ bool TypeChecker::typeCheckForCodeCompletion(
739739 ContextFinder contextAnalyzer (expr);
740740 expr->walk (contextAnalyzer);
741741
742- // If there was no completion expr (e.g. if the code completion location is
743- // within an ErrorExpr without an valid subexpr due to parser error recovery)
744- // bail.
742+ // If there was no completion expr (e.g. if the code completion location was
743+ // among tokens that were skipped over during parser error recovery) bail.
745744 if (!contextAnalyzer.hasCompletionExpr ())
746745 return false ;
747746
You can’t perform that action at this time.
0 commit comments