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

Method bump_ts

crates/sith_python_parser/src/parser/mod.rs:346–351  ·  view source on GitHub ↗

Bumps the current token assuming it is found in the given token set. # Panics If the current token is not found in the given token set.

(&mut self, ts: TokenSet)

Source from the content-addressed store, hash-verified

344 ///
345 /// If the current token is not found in the given token set.
346 fn bump_ts(&mut self, ts: TokenSet) {
347 let kind = self.current_token_kind();
348 assert!(ts.contains(kind));
349
350 self.do_bump(kind);
351 }
352
353 /// Bumps the current token regardless of its kind and advances to the next token.
354 ///

Calls 2

current_token_kindMethod · 0.80
do_bumpMethod · 0.45

Tested by

no test coverage detected