Increments the value of the token ID.
(&mut self)
| 6 | impl TokenId { |
| 7 | /// Increments the value of the token ID. |
| 8 | pub(super) fn increment(&mut self) { |
| 9 | // It's fine to just wrap around because the main purpose is to check whether |
| 10 | // the previous token ID is different from the current token ID. |
| 11 | self.0 = self.0.wrapping_add(1); |
| 12 | } |
| 13 | } |
| 14 | |
| 15 | /// Captures the progress of the parser and allows to test if the parsing is still making progress |