Skip to main content

classify_token

Function classify_token 

Source
pub fn classify_token(kind: &TokenType) -> (Option<u32>, u32)
Expand description

Map a TokenType to a semantic token type index and modifier bitset.

Delegates the CLASS decision to the language crate’s [logicaffeine_language::token_class] — the single classification truth every surface (this server, the terminal REPL) shares — and adds the legend-level concerns: index mapping and the ProperName declaration bit. tests/locks.rs pins every classification inside the advertised legend.