pub fn span(&self) -> ByteSpan {
        match *self {
            Item::Import { span, .. } | Item::Error(span) => span,
            Item::Declaration {
                name: (start, _),
                ann: ref term,
            } => ByteSpan::new(start, term.span().end()),
            Item::Definition(ref definition) => definition.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::Import { span, .. } | Item::Error(span) => span,
            Item::Declaration {
                name: (start, _),
                ann: ref term,
            } => ByteSpan::new(start, term.span().end()),
            Item::Definition(ref definition) => definition.span(),
        }
    }
pub fn span ( & self ) -> ByteSpan { match * self { Item :: Import { span , .. } | Item :: Error ( span ) => span , Item :: Declaration { name : ( start , _ ) , ann : ref term , } => ByteSpan :: new ( start , term . span ( ) . end ( ) ) , Item :: Definition ( ref definition ) => definition . 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