propagateSource method

void propagateSource(
  1. BlobNode? original
)

Assign another BlobNode's SourceRange to this BlobNode's source property.

Typically, this is used exclusively by the Runtime.

If the original BlobNode is null or has no source, then this has no effect. Otherwise, the source for this BlobNode is set to match that of the given original BlobNode, replacing any existing association.

Implementation

void propagateSource(BlobNode? original) {
  if (original == null) {
    return;
  }
  final SourceRange? source = _sources[original];
  if (source != null) {
    _sources[this] = source;
  }
}