Skip to main content

JsonToken

Type Alias JsonToken 

Source
pub type JsonToken = Token<JsonTokenType>;
Expand description

Alias for Token<JsonTokenType>.

Aliased Type§

pub struct JsonToken {
    pub kind: JsonTokenType,
    pub span: Range<usize>,
}

Fields§

§kind: JsonTokenType

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