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