mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-03 19:58:23 +07:00
restore bug compatibility
This commit is contained in:
@@ -667,7 +667,7 @@ public class RefJavaUtilImpl extends RefJavaUtil {
|
||||
UElement parent = skipParenthesises(expression);
|
||||
return !(parent instanceof UBinaryExpression) ||
|
||||
!(((UBinaryExpression)parent).getOperator() instanceof UastBinaryOperator.AssignOperator) ||
|
||||
UastUtils.isChildOf(((UBinaryExpression)parent).getRightOperand(), expression, false);
|
||||
UastUtils.isUastChildOf(((UBinaryExpression)parent).getRightOperand(), expression, false);
|
||||
}
|
||||
|
||||
private static boolean isOnAssignmentLeftHand(@NotNull UElement expression) {
|
||||
@@ -675,7 +675,7 @@ public class RefJavaUtilImpl extends RefJavaUtil {
|
||||
if (parent == null) return false;
|
||||
return parent instanceof UBinaryExpression
|
||||
&& ((UBinaryExpression)parent).getOperator() instanceof UastBinaryOperator.AssignOperator
|
||||
&& UastUtils.isChildOf(expression, ((UBinaryExpression)parent).getLeftOperand(), false);
|
||||
&& UastUtils.isUastChildOf(expression, ((UBinaryExpression)parent).getLeftOperand(), false);
|
||||
}
|
||||
|
||||
private static UElement skipParenthesises(@NotNull UElement expression) {
|
||||
|
||||
Reference in New Issue
Block a user