Skip to main content

PurescriptToken

Type Alias PurescriptToken 

Source
pub type PurescriptToken = Token<PurescriptTokenType>;

Aliased Type§

pub struct PurescriptToken {
    pub kind: PurescriptTokenType,
    pub span: Range<usize>,
}

Fields§

§kind: PurescriptTokenType

The kind/category of this kind (e.g., keyword, identifier, number)

§span: Range<usize>

The byte range in the source text that this kind occupies