final int sheets = to.getSheetIndex() - from.getSheetIndex() + 1;
final int rows = to.getRowIndex() - from.getRowIndex() + 1;
final int cols = to.getColumnIndex() - from.getColumnIndex() + 1;
final ExpressionNode result = new ExpressionNodeForArrayReference( new ArrayDescriptor( from.getSheetIndex(),
from.getRowIndex(), from.getColumnIndex(), sheets, rows, cols ) );
buildExpressionModelsForLocalRangeCells( _range, result.arguments() );
return result;
}
private void buildExpressionModelsForLocalRangeCells( CellRange _range, Collection<ExpressionNode> _elts )
throws CompilerException