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

Method bump_value

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

Take the token value from the underlying token source and bump the current token. # Panics If the current token is not of the given kind.

(&mut self, kind: TokenKind)

Source from the content-addressed store, hash-verified

333 ///
334 /// If the current token is not of the given kind.
335 fn bump_value(&mut self, kind: TokenKind) -> TokenValue {
336 let value = self.tokens.take_value();
337 self.bump(kind);
338 value
339 }
340
341 /// Bumps the current token assuming it is found in the given token set.
342 ///

Calls 2

take_valueMethod · 0.45
bumpMethod · 0.45

Tested by

no test coverage detected