pub fn span(&self) -> ByteSpan {
        match *self {
            Pattern::Parens(span, _) | Pattern::Error(span) => span,
            Pattern::Ann(ref pattern, ref ty) => pattern.span().to(ty.span()),
            Pattern::Literal(ref literal) => literal.span(),
            Pattern::Name(start, ref name) => {
                ByteSpan::from_offset(start, ByteOffset::from_str(name))
            },
        }
    }
/// Return the span of source code that this pattern originated from
Return the span of source code that this pattern originated from
Return the span of source code that this pattern originated from
pub fn span(&self) -> ByteSpan {
        match *self {
            Pattern::Parens(span, _) | Pattern::Error(span) => span,
            Pattern::Ann(ref pattern, ref ty) => pattern.span().to(ty.span()),
            Pattern::Literal(ref literal) => literal.span(),
            Pattern::Name(start, ref name) => {
                ByteSpan::from_offset(start, ByteOffset::from_str(name))
            },
        }
    }
pub fn span ( & self ) -> ByteSpan { match * self { Pattern :: Parens ( span , _ ) | Pattern :: Error ( span ) => span , Pattern :: Ann ( ref pattern , ref ty ) => pattern . span ( ) . to ( ty . span ( ) ) , Pattern :: Literal ( ref literal ) => literal . span ( ) , Pattern :: Name ( start , ref name ) => { ByteSpan :: from_offset ( start , ByteOffset :: from_str ( name ) ) } , } }
Return the span of source code that this pattern originated from
Return the span of source code that this pattern originated from
&self
&self