pub fn span(&self) -> ByteSpan {
        match *self {
            Pattern::Ann(ref pattern, Embed(ref ty)) => pattern.span().to(ty.span()),
            Pattern::Binder(span, _) => span,
            Pattern::Literal(ref literal) => literal.span(),
        }
    }
/// 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::Ann(ref pattern, Embed(ref ty)) => pattern.span().to(ty.span()),
            Pattern::Binder(span, _) => span,
            Pattern::Literal(ref literal) => literal.span(),
        }
    }
pub fn span ( & self ) -> ByteSpan { match * self { Pattern :: Ann ( ref pattern , Embed ( ref ty ) ) => pattern . span ( ) . to ( ty . span ( ) ) , Pattern :: Binder ( span , _ ) => span , Pattern :: Literal ( ref literal ) => literal . span ( ) , } }
Return the span of source code that this pattern originated from
Return the span of source code that this pattern originated from
&self
&self