Skip to content

Commit 01fc224

Browse files
committed
Skip conjunction elements unrelated to the code completion token
1 parent 81ba817 commit 01fc224

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/Sema/CSClosure.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -865,6 +865,10 @@ class SyntacticElementConstraintGenerator
865865
}
866866
}
867867

868+
if (cs.isForCodeCompletion() && !cs.containsCodeCompletionLoc(element)) {
869+
continue;
870+
}
871+
868872
elements.push_back(
869873
makeElement(element,
870874
cs.getConstraintLocator(

0 commit comments

Comments
 (0)