public static DataType RefType(Token tokRef, ObjectName objRef, bool rowType, bool extRef) { if (extRef) { throw new NotSupportedException(); } if (objRef == null && tokRef != null) { objRef = ObjectName(tokRef.image); } return(rowType ? (DataType)PrimitiveTypes.RowType(objRef) : PrimitiveTypes.ColumnType(objRef)); }