Skip to main content

compute_semantic_tokens

Function compute_semantic_tokens 

Source
pub(super) fn compute_semantic_tokens(text: &str) -> Vec<SemanticToken>
Expand description

Computes the semantic tokens for a SQL document.

Produces a delta-encoded Vec<SemanticToken> suitable for returning in a SemanticTokensResult::Tokens. Returns an empty vec on empty input. On lexer error, emits the tokens collected up to the error site plus comments from the full pre-scan; never panics.