Bumps the token source to the next non-trivia token without adding the current token to the token vector. It does add the trivia tokens to the token vector.
(&mut self)
| 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. |
| 127 | fn do_bump(&mut self) { |
| 128 | loop { |
| 129 | let kind = self.lexer.next_token(); |
| 130 | if kind.is_trivia() { |
| 131 | self.tokens |
| 132 | .push(Token::new(kind, self.current_range(), self.current_flags())); |
| 133 | continue; |
| 134 | } |
| 135 | break; |
| 136 | } |
| 137 | } |
| 138 | |
| 139 | /// Returns the next non-trivia token without adding it to the token vector. |
| 140 | fn next_non_trivia_token(&mut self) -> TokenKind { |
no test coverage detected