Peek at the second token
(&mut self)
| 259 | |
| 260 | // Peek at the second token |
| 261 | pub(crate) fn peek2(&mut self) -> Result<Option<&Token<'source>>, LexerDiagnostic> { |
| 262 | self.lexer.peek_n(&mut self.context.lexer(), 1) |
| 263 | } |
| 264 | |
| 265 | /// Returns a reference to the next token without consuming it, validating it against the |
| 266 | /// expected syntax kinds. |