mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
introduce variable: use right expression if left ref is unresolved (IDEA-72914)
This commit is contained in:
@@ -499,6 +499,10 @@ public class RefactoringUtil {
|
||||
return initType.createArrayType();
|
||||
}
|
||||
}
|
||||
|
||||
if (expr instanceof PsiReferenceExpression && PsiUtil.isOnAssignmentLeftHand(expr)) {
|
||||
return getTypeByExpression(((PsiAssignmentExpression)expr.getParent()).getRExpression());
|
||||
}
|
||||
return null;
|
||||
}
|
||||
PsiClass refClass = PsiUtil.resolveClassInType(type);
|
||||
|
||||
Reference in New Issue
Block a user