entry.astArrayDimensions(extraDims);
entry.astName(setPos(varDecl, new Identifier().astValue(varDecl.name.toString())));
entry.rawInitializer(toTree(varDecl.init));
setPos(varDecl, entry);
if (extraDims > 0) {
JCArrayTypeTree arrayType = (JCArrayTypeTree) varDecl.vartype;
for (int i = 0; i < extraDims; i++) {
if (arrayType != null) setConversionPositionInfo(entry, "[]" + (extraDims - i - 1), getPosition(arrayType));
arrayType = arrayType.elemtype instanceof JCArrayTypeTree ? (JCArrayTypeTree) arrayType.elemtype : null;
}
}