Skip to main content

handler_annotation_token_spans

Function handler_annotation_token_spans 

Source
pub fn handler_annotation_token_spans(source: &str) -> Vec<Span>
Expand description

v0.140 (ADR 0163): the spans to classify as decorator semantic tokens — each handler annotation’s @name (the @ through the name) and its argument labels (maxAge:, scope:). Parsed from source; empty when it carries no handler annotations. Feeds the semantic-tokens producer, which is otherwise a parse-free index read, so the parse lives here beside the hover parse.