Get the comments collected so far, clearing out the internal list.
(&mut self)
| 526 | |
| 527 | // Get the comments collected so far, clearing out the internal list. |
| 528 | fn take_comments(&mut self) -> Vec<Comment<'a>> { |
| 529 | debug_assert!(!self.gathering_comments); |
| 530 | mem::replace(&mut self.comments, Vec::new()) |
| 531 | } |
| 532 | |
| 533 | // Match and consume a token without payload. |
| 534 | fn match_token(&mut self, want: Token<'a>, err_msg: &str) -> ParseResult<Token<'a>> { |
no test coverage detected