source property

SourceRange? source

The source location that corresponds to this BlobNode, if known.

In normal use, this returns null. However, if source location tracking is enabled (e.g. by specifying the sourceIdentifier argument to parseLibraryFile), then this will return the range of the source file that corresponds to this BlobNode.

A BlobNode can also be manually associated with a given SourceRange using associateSource or propagateSource.

Implementation

SourceRange? get source {
  return _sources[this];
}