MCPcopy Create free account
hub / github.com/LaBatata101/sith-language-server / bump

Method bump

crates/sith_python_parser/src/parser/mod.rs:324–328  ·  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

322 ///
323 /// If the current token is not of the given kind.
324 fn bump(&mut self, kind: TokenKind) {
325 assert_eq!(self.current_token_kind(), kind);
326
327 self.do_bump(kind);
328 }
329
330 /// Take the token value from the underlying token source and bump the current token.
331 ///

Calls 1

do_bumpMethod · 0.45

Tested by

no test coverage detected