sourceSpanWithLineInfo function
Creates a source span with line and column numbers.
Implementation
SourceSpan sourceSpanWithLineInfo(
int offset,
int length,
String source,
Uri uri,
) {
final sourceFile = SourceFile.fromString(source, url: uri);
return sourceFile.span(offset, offset + length);
}