(&self, pos: Pos, msg: String)
| 53 | } |
| 54 | |
| 55 | fn error(&self, pos: Pos, msg: String) -> Error { |
| 56 | Error::ParseError { |
| 57 | msg, |
| 58 | span: Span::new_single(pos), |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | fn expect<F: Fn(&Token) -> bool>(&mut self, f: F) -> Result<Token> { |
| 63 | if let Some(&(pos, ref peek)) = self.lexer.peek() { |
no outgoing calls
no test coverage detected