(
&mut self,
context: &mut LexerContext,
n: usize,
)
| 67 | } |
| 68 | |
| 69 | fn peek_n_span( |
| 70 | &mut self, |
| 71 | context: &mut LexerContext, |
| 72 | n: usize, |
| 73 | ) -> Result<Result<&Token<'source>, TextRange>, LexerDiagnostic> { |
| 74 | if self.peek_fill(context, n)? == LookaheadStatus::EndOfInput { |
| 75 | return Ok(Err(self.span())); |
| 76 | } |
| 77 | |
| 78 | Ok(Ok(&self.buffer[n])) |
| 79 | } |
| 80 | |
| 81 | fn advance( |
| 82 | &mut self, |
no test coverage detected