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(
1531
1531
}
1532
1532
1533
1533
namespace {
1534
- class CompletionLookup ;
1535
1534
1536
1535
class CodeCompletionCallbacksImpl : public CodeCompletionCallbacks {
1537
1536
CodeCompletionContext &CompletionContext;
Original file line number Diff line number Diff line change @@ -739,9 +739,8 @@ bool TypeChecker::typeCheckForCodeCompletion(
739
739
ContextFinder contextAnalyzer (expr);
740
740
expr->walk (contextAnalyzer);
741
741
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.
745
744
if (!contextAnalyzer.hasCompletionExpr ())
746
745
return false ;
747
746
You can’t perform that action at this time.
0 commit comments