mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
introduce: process parenthesis correctly
This commit is contained in:
@@ -173,7 +173,7 @@ public class CodeInsightUtil {
|
||||
addExpressionOccurrences(RefactoringUtil.unparenthesizeExpression(expr), array, scope);
|
||||
boolean found = false;
|
||||
for (PsiExpression psiExpression : array) {
|
||||
if (areExpressionsEquivalent(RefactoringUtil.unparenthesizeExpression(psiExpression), RefactoringUtil.unparenthesizeExpression(expr))) {
|
||||
if (PsiTreeUtil.isAncestor(expr, psiExpression, false) || PsiTreeUtil.isAncestor(psiExpression, expr, false)) {
|
||||
found = true;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user