Skip to main content

TypeScriptToken

Type Alias TypeScriptToken 

Source
pub type TypeScriptToken = Token<TypeScriptTokenType>;
Expand description

Alias for Token<TypeScriptTokenType>.

Aliased Type§

pub struct TypeScriptToken {
    pub kind: TypeScriptTokenType,
    pub span: Range<usize>,
}

Fields§

§kind: TypeScriptTokenType

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