Skip to main content

GraphQLToken

Type Alias GraphQLToken 

Source
pub type GraphQLToken = Token<GraphQLTokenType>;

Aliased Type§

pub struct GraphQLToken {
    pub kind: GraphQLTokenType,
    pub span: Range<usize>,
}

Fields§

§kind: GraphQLTokenType

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