Skip to main content

JavaToken

Type Alias JavaToken 

Source
pub type JavaToken = Token<JavaTokenType>;
Expand description

A token in the Java language.

Aliased Type§

pub struct JavaToken {
    pub kind: JavaTokenType,
    pub span: Range<usize>,
}

Fields§

§kind: JavaTokenType

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