MCPcopy Create free account
hub / github.com/astral-sh/ruff / bump

Method bump

crates/ruff_python_parser/src/parser/mod.rs:446–450  ·  view source on GitHub ↗

Bumps the current token assuming it is of the given kind. # Panics If the current token is not of the given kind.

(&mut self, kind: TokenKind)

Source from the content-addressed store, hash-verified

444 ///
445 /// If the current token is not of the given kind.
446 fn bump(&mut self, kind: TokenKind) {
447 assert_eq!(self.current_token_kind(), kind);
448
449 self.do_bump(kind);
450 }
451
452 fn bump_name(&mut self) -> Name {
453 let text = self.current_token_text();

Calls 1

do_bumpMethod · 0.45

Tested by

no test coverage detected