Skip to main content

validate_control_flow_keyword

Function validate_control_flow_keyword 

Source
fn validate_control_flow_keyword(
    seq: &[TokenTree],
    paren_pos: usize,
    paren_span: Span,
) -> Result<(), Error>
Expand description

Validates that control-flow keywords (if, while, for, function, repeat) are followed by the correct next token.