spanForLocation method

SourceMapSpan? spanForLocation(
  1. SourceLocation location, {
  2. Map<String, SourceFile>? files,
})

Returns the span associated with location.

Implementation

SourceMapSpan? spanForLocation(SourceLocation location,
    {Map<String, SourceFile>? files}) {
  return spanFor(location.line, location.column,
      uri: location.sourceUrl?.toString(), files: files);
}