Skip to main content

private_modifier_token_spans

Function private_modifier_token_spans 

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

#2618: the span of every private modifier on the unit’s declarations (and, #2841, every suite fixture keyword), for the keyword semantic token. private is contextual, so an editor grammar that matches keywords by spelling cannot tell the modifier from a binding named private; the parse can.