Java: introduce PsiArrayInitializerExpression.isEmpty() as well (IJ-CR-176760)

GitOrigin-RevId: 2f0757929d780ff01930cc8001001daf59ec4500
This commit is contained in:
Bas Leijdekkers
2025-09-26 14:02:14 +00:00
committed by intellij-monorepo-bot
parent 5db7b62f2e
commit 1143fea0b7
7 changed files with 18 additions and 6 deletions
@@ -27,6 +27,11 @@ public class PsiArrayInitializerExpressionImpl extends ExpressionPsiElement impl
return countChildren(ElementType.EXPRESSION_BIT_SET);
}
@Override
public boolean isEmpty() {
return findChildByType(ElementType.EXPRESSION_BIT_SET) == null;
}
@Override
public PsiType getType(){
if (getTreeParent() instanceof PsiNewExpression){