spanFor method
Returns the span associated with line
and column
.
uri
is the optional location of the output file to find the span for
to disambiguate cases where a mapping may have different mappings for
different output files.
Implementation
@override
SourceMapSpan? spanFor(int line, int column,
{Map<String, SourceFile>? files, String? uri}) {
// TODO(jacobr): perhaps verify that targetUrl matches the actual uri
// or at least ends in the same file name.
var index = _indexFor(line, column);
return _maps[index].spanFor(
line - _lineStart[index], column - _columnStart[index],
files: files);
}