pub fn from_to(start: Span, end: Span) -> Self {
        let mut result = Self::from(start);
        result.length =
            std::cmp::max(1, end.location_offset() - start.location_offset());
        result
    }
/// Create a new SourcePos from a start and an end Span.
Create a new SourcePos from a start and an end Span.
Create a new SourcePos from a start and an end Span .
pub fn from_to(start: Span, end: Span) -> Self {
        let mut result = Self::from(start);
        result.length =
            std::cmp::max(1, end.location_offset() - start.location_offset());
        result
    }
pub fn from_to ( start : Span , end : Span ) -> Self { let mut result = Self :: from ( start ) ; result . length = std :: cmp :: max ( 1 , end . location_offset ( ) - start . location_offset ( ) ) ; result }
Create a new SourcePos from a start and an end Span.
Create a new SourcePos from a start and an end Span .
start
Span
end
Span