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)
| 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 | /// |
no test coverage detected