File tree Expand file tree Collapse file tree 2 files changed +0
-13
lines changed Expand file tree Collapse file tree 2 files changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -103,13 +103,6 @@ class SourceManager {
103
103
rangeContainsTokenLoc (Enclosing, Inner.End );
104
104
}
105
105
106
- // / Returns true if range \p R contains the code-completion location, if any.
107
- bool rangeContainsCodeCompletionLoc (SourceRange R) const {
108
- return CodeCompletionBufferID
109
- ? rangeContainsTokenLoc (R, getCodeCompletionLoc ())
110
- : false ;
111
- }
112
-
113
106
// / Returns the buffer ID for the specified *valid* location.
114
107
// /
115
108
// / Because a valid source location always corresponds to a source buffer,
Original file line number Diff line number Diff line change @@ -566,12 +566,6 @@ ConstraintSystem::TypeMatchResult ConstraintSystem::applyFunctionBuilder(
566
566
assert (!builderType->hasTypeParameter ());
567
567
}
568
568
569
- // If we are performing code-completion inside the closure body, supress
570
- // diagnostics to workaround typechecking performance problems.
571
- if (getASTContext ().SourceMgr .rangeContainsCodeCompletionLoc (
572
- closure->getSourceRange ()))
573
- Options |= ConstraintSystemFlags::SuppressDiagnostics;
574
-
575
569
BuilderClosureVisitor visitor (getASTContext (), this ,
576
570
/* wantExpr=*/ true , builderType);
577
571
Expr *singleExpr = visitor.visit (closure->getBody ());
You can’t perform that action at this time.
0 commit comments