Skip to main content

can_be_label

Function can_be_label 

Source
pub fn can_be_label(kind: &TokenKind) -> bool
Expand description

Returns true if the token kind can be used as a label or reference segment (identifier, or one of the keywords past / future / permille / is in label position).