MCPcopy Create free account
hub / github.com/hashintel/hash / peek2

Method peek2

libs/@local/hashql/syntax-jexpr/src/parser/state.rs:261–263  ·  view source on GitHub ↗

Peek at the second token

(&mut self)

Source from the content-addressed store, hash-verified

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.

Callers 2

parse_labelled_argumentFunction · 0.80

Calls 2

peek_nMethod · 0.80
lexerMethod · 0.80

Tested by 1