pub fn span(&self) -> ByteSpan {
        match *self {
            Item::Definition {
                name: (start, _),
                body: ref term,
                ..
            }
            | Item::Declaration {
                name: (start, _),
                ann: ref term,
            } => ByteSpan::new(start, term.span().end()),
            Item::Error(span) => span,
        }
    }
/// Return the span of source code that this declaration originated from
Return the span of source code that this declaration originated from
Return the span of source code that this declaration originated from
pub fn span(&self) -> ByteSpan {
        match *self {
            Item::Definition {
                name: (start, _),
                body: ref term,
                ..
            }
            | Item::Declaration {
                name: (start, _),
                ann: ref term,
            } => ByteSpan::new(start, term.span().end()),
            Item::Error(span) => span,
        }
    }
pub fn span ( & self ) -> ByteSpan { match * self { Item :: Definition { name : ( start , _ ) , body : ref term , .. } | Item :: Declaration { name : ( start , _ ) , ann : ref term , } => ByteSpan :: new ( start , term . span ( ) . end ( ) ) , Item :: Error ( span ) => span , } }
Return the span of source code that this declaration originated from
Return the span of source code that this declaration originated from
&self
&self