location property

String get location

A human-friendly description of the code location.

Implementation

String get location {
  if (line == null) return library;
  if (column == null) return '$library $line';
  return '$library $line:$column';
}