if (isRowOrCol(secondIden) && look == ':') {
GetChar();
String thirdIden = parseUnquotedIdentifier();
return new Area3DPtg(secondIden + ":" + thirdIden, externIdx);
}
AreaReference areaRef = parseArea(secondIden);
if (areaRef == null) {
return new Ref3DPtg(secondIden, externIdx);
}
// will happen if dots are used instead of colon
return new Area3DPtg(areaRef.formatAsString(), externIdx);
}
String name = iden.getName();
AreaReference areaRef = parseArea(name);
if (areaRef != null) {
// will happen if dots are used instead of colon
return new AreaPtg(areaRef.formatAsString());
}
// This can be either a cell ref or a named range
int nameType = CellReference.classifyCellReference(name);