(&mut self, kw: &str)
| 51 | } |
| 52 | |
| 53 | pub(super) fn match_kw(&mut self, kw: &str) -> bool { |
| 54 | match self.peek() { |
| 55 | Some(Tok::Ident(s)) if s.eq_ignore_ascii_case(kw) => { |
| 56 | self.i += 1; |
| 57 | true |
| 58 | } |
| 59 | _ => false, |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | pub(super) fn expect_ident(&mut self) -> Result<String> { |
| 64 | match self.bump().map(|t| &t.tok) { |
no test coverage detected