fn span_to_range(source_map: &SourceMap, span: Span) -> Range<usize>
Returns the range of the given span in the source map.