mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 06:05:01 +07:00
Java: introduce PsiArrayInitializerExpression.isEmpty() as well (IJ-CR-176760)
GitOrigin-RevId: 2f0757929d780ff01930cc8001001daf59ec4500
This commit is contained in:
committed by
intellij-monorepo-bot
parent
5db7b62f2e
commit
1143fea0b7
+5
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user