(&mut self, token: Token<'a>)
| 199 | } |
| 200 | |
| 201 | fn capture_token(&mut self, token: Token<'a>) { |
| 202 | let range = self.create_range_from_last_token(); |
| 203 | if let Some(tokens) = self.tokens.as_mut() { |
| 204 | tokens.push(TokenAndRange { |
| 205 | token: token.clone(), |
| 206 | range, |
| 207 | }); |
| 208 | } |
| 209 | } |
| 210 | |
| 211 | fn handle_comment(&mut self, comment: Comment<'a>) -> Result<(), ParseError> { |
| 212 | if !self.allow_comments { |
no test coverage detected