Skip to main content

TokenWithLocation

Type Alias TokenWithLocation 

Source
pub type TokenWithLocation = TokenWithSpan;
👎Deprecated since 0.53.0:

please use TokenWithSpan instead

Expand description

Backwards compatibility struct for TokenWithSpan

Aliased Type§

pub struct TokenWithLocation {
    pub token: Token,
    pub span: Span,
}

Fields§

§token: Token

The token value.

§span: Span

The span covering the token in the input.