Skip to content

Commit d30cd06

Browse files
committed
[CodeCompletion] Skip conjunction elements unrelated to the code completion token
1 parent 225084f commit d30cd06

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/Sema/CSSyntacticElement.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -983,6 +983,10 @@ class SyntacticElementConstraintGenerator
983983
}
984984
}
985985

986+
if (cs.isForCodeCompletion() && !cs.containsCodeCompletionLoc(element)) {
987+
continue;
988+
}
989+
986990
elements.push_back(
987991
makeElement(element,
988992
cs.getConstraintLocator(

0 commit comments

Comments
 (0)