fn consume_to_semicolon(&mut self) {
        loop {
            if matches!(
                self.next_token().to_parts().0,
                Token::Semi | Token::EndOfFile
            ) {
                break;
            }
        }
    }
/// Consumes tokens up to and including the next semicolon.
/// This is intended to be used in error handling scenarios where there is no way
/// to recover the current state, but you know there is a semicolon coming.
Consumes tokens up to and including the next semicolon.
This is intended to be used in error handling scenarios where there is no way
to recover the current state, but you know there is a semicolon coming.
Consumes tokens up to and including the next semicolon . This is intended to be used in error handling scenarios where there is no way to recover the current state but you know there is a semicolon coming .
fn consume_to_semicolon(&mut self) {
        loop {
            if matches!(
                self.next_token().to_parts().0,
                Token::Semi | Token::EndOfFile
            ) {
                break;
            }
        }
    }
fn consume_to_semicolon ( & mut self ) { loop { if matches ! ( self next_token ( ) to_parts ( ) 0 Token Semi Token EndOfFile ) { break ; } } }
Consumes tokens up to and including the next semicolon.
Consumes tokens up to and including the next semicolon .
&mut self
&mut self