restore bug compatibility

This commit is contained in:
Dmitry Batkovich
2018-09-24 17:37:31 +03:00
parent 8a21ac6fee
commit 4b74d87090
2 changed files with 6 additions and 3 deletions

View File

@@ -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) {