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.
  var sourceUri = pathContext.toUri(sourceFileName);
  if (characterLocation != null) {
    return '($sourceUri:${characterLocation.toString()})';
  }
  return '($sourceUri)';
}