mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
ExpectedTypesProvider: tolerate binary expressions with malformed PSI (EA-72106 - assert: ExpectedTypesProvider$MyParentVisitor.visitPolyadicExpression)
This commit is contained in:
@@ -627,7 +627,7 @@ public class ExpectedTypesProvider {
|
||||
public void visitPolyadicExpression(@NotNull PsiPolyadicExpression expr) {
|
||||
PsiExpression[] operands = expr.getOperands();
|
||||
final int index = Arrays.asList(operands).indexOf(myExpr);
|
||||
assert index >= 0;
|
||||
if (index < 0) return; // broken syntax
|
||||
|
||||
if (myForCompletion && index == 0) {
|
||||
final MyParentVisitor visitor = new MyParentVisitor(expr, myForCompletion, myClassProvider, myVoidable, myUsedAfter);
|
||||
|
||||
Reference in New Issue
Block a user