(p: &Parser<'a, I>, _: Cursor)
| 422 | const PEEK_KINDSET: KindSet = KindSet::new(&[Kind::Whitespace]); |
| 423 | |
| 424 | fn peek<I>(p: &Parser<'a, I>, _: Cursor) -> bool |
| 425 | where |
| 426 | I: Iterator<Item = Cursor> + Clone, |
| 427 | { |
| 428 | // Whitespace needs to peek its own cursor because it was likely given one that skipped Whitespace. |
| 429 | let c = p.peek_n_with_skip(1, KindSet::COMMENTS); |
| 430 | c == Kind::Whitespace |
| 431 | } |
| 432 | } |
| 433 | |
| 434 | impl<'a> Parse<'a> for Whitespace { |
nothing calls this directly
no test coverage detected