source property

Column source

Attempts to resolve the source of this column, if this is an AvailableColumn or a CommonTableExpressionColumn that refers to another column.

Implementation

Column get source {
  var current = this;
  while (current is DelegatedColumn) {
    final inner = current.innerColumn;
    if (inner != null) {
      current = inner;
    } else {
      return current;
    }
  }

  return current;
}