pub fn span(&self) -> ByteSpan {
        match *self {
            ParseError::Lexer(ref err) => err.span(),
            ParseError::IdentifierExpectedInPiType { span }
            | ParseError::UnknownReplCommand { span, .. }
            | ParseError::UnexpectedToken { span, .. }
            | ParseError::ExtraToken { span, .. }
            | ParseError::IntegerLiteralOverflow { span, .. } => span,
            ParseError::UnexpectedE { end, .. } => ByteSpan::new(end, end),
        }
    }
/// Return the span of source code that this error originated from
Return the span of source code that this error originated from
Return the span of source code that this error originated from
pub fn span(&self) -> ByteSpan {
        match *self {
            ParseError::Lexer(ref err) => err.span(),
            ParseError::IdentifierExpectedInPiType { span }
            | ParseError::UnknownReplCommand { span, .. }
            | ParseError::UnexpectedToken { span, .. }
            | ParseError::ExtraToken { span, .. }
            | ParseError::IntegerLiteralOverflow { span, .. } => span,
            ParseError::UnexpectedE { end, .. } => ByteSpan::new(end, end),
        }
    }
pub fn span ( & self ) -> ByteSpan { match * self { ParseError :: Lexer ( ref err ) => err . span ( ) , ParseError :: IdentifierExpectedInPiType { span } | ParseError :: UnknownReplCommand { span , .. } | ParseError :: UnexpectedToken { span , .. } | ParseError :: ExtraToken { span , .. } | ParseError :: IntegerLiteralOverflow { span , .. } => span , ParseError :: UnexpectedE { end , .. } => ByteSpan :: new ( end , end ) , } }
Return the span of source code that this error originated from
Return the span of source code that this error originated from
&self
&self