mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
ConstantSubexpressionPredicate: don't treat expression as subexpression if it's just parenthesized
This commit is contained in:
+1
-1
@@ -88,7 +88,7 @@ class ConstantSubexpressionPredicate implements PsiElementPredicate {
|
||||
if (expression.getOperands().length > 2) {
|
||||
return true;
|
||||
}
|
||||
final PsiElement containingElement = expression.getParent();
|
||||
final PsiElement containingElement = PsiUtil.skipParenthesizedExprUp(expression.getParent());
|
||||
if (containingElement instanceof PsiExpression) {
|
||||
final PsiExpression containingExpression =
|
||||
(PsiExpression)containingElement;
|
||||
|
||||
Reference in New Issue
Block a user