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