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)
| 117 | /// |
| 118 | /// It pushes the given kind to the token vector with the current token range. |
| 119 | pub(crate) fn bump(&mut self, kind: TokenKind) { |
| 120 | self.tokens |
| 121 | .push(Token::new(kind, self.current_range(), self.current_flags())); |
| 122 | self.do_bump(); |
| 123 | } |
| 124 | |
| 125 | /// Bumps the token source to the next non-trivia token without adding the current token to the |
| 126 | /// token vector. It does add the trivia tokens to the token vector. |
no test coverage detected