Adjusts the span of an error by adding the given offset to both start and end positions. Returns a new error with adjusted span, or the original error if it has no span.
Adjusts the span of an error by adding the given offset to both start and end positions. Returns a new error with adjusted span, or the original error if it has no span.