while (type instanceof JCArrayTypeTree) {
inits.add(getPosition(type));
type = ((JCArrayTypeTree) type).getType();
}
crea.rawComponentTypeReference(toTree(type, FlagKey.TYPE_REFERENCE));
if (node.getDimensions() != null) for (JCExpression dim : node.getDimensions()) {
crea.astDimensions().addToEnd(setPos(dim, new ArrayDimension().rawDimension(toTree(dim))));
}
if (init != null) crea.astDimensions().addToEnd(new ArrayDimension());