Bumps the token source to the next non-trivia token. It pushes the given kind to the token vector with the current token range.
(&mut self, kind: TokenKind)
| 160 | /// |
| 161 | /// It pushes the given kind to the token vector with the current token range. |
| 162 | pub(crate) fn bump(&mut self, kind: TokenKind) { |
| 163 | self.tokens |
| 164 | .push(Token::new(kind, self.current_range(), self.current_flags())); |
| 165 | self.do_bump(); |
| 166 | } |
| 167 | |
| 168 | /// Bumps the token source to the next non-trivia token without adding the current token to the |
| 169 | /// token vector. It does add the trivia tokens to the token vector. |
no test coverage detected