Skip to main content

JavaScriptToken

Type Alias JavaScriptToken 

Source
pub type JavaScriptToken = Token<JavaScriptTokenType>;
Expand description

Type alias for JavaScript tokens.

Aliased Type§

pub struct JavaScriptToken {
    pub kind: JavaScriptTokenType,
    pub span: Range<usize>,
}

Fields§

§kind: JavaScriptTokenType

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