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)
| 154 | /// |
| 155 | /// It pushes the given kind to the token vector with the current token range. |
| 156 | pub(crate) fn bump(&mut self, kind: TokenKind) { |
| 157 | self.tokens |
| 158 | .push(Token::new(kind, self.current_range(), self.current_flags())); |
| 159 | self.do_bump(); |
| 160 | } |
| 161 | |
| 162 | /// Bumps the token source to the next non-trivia token without adding the current token to the |
| 163 | /// token vector. It does add the trivia tokens to the token vector. |
no test coverage detected