location property

String location
override

A string indicating the URI of this Locatable, usually derived from Element.location.

Implementation

@override
String get location {
  // Call nothing from here that can emit warnings or you'll cause stack overflows.
  if (characterLocation != null) {
    return '(${path.toUri(sourceFileName)}:${characterLocation.toString()})';
  }
  return '(${path.toUri(sourceFileName)})';
}