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

Method peek

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

Peek at the first token

(&mut self)

Source from the content-addressed store, hash-verified

254
255 // Peek at the first token
256 pub(crate) fn peek(&mut self) -> Result<Option<&Token<'source>>, LexerDiagnostic> {
257 self.lexer.peek_n(&mut self.context.lexer(), 0)
258 }
259
260 // Peek at the second token
261 pub(crate) fn peek2(&mut self) -> Result<Option<&Token<'source>>, LexerDiagnostic> {

Callers 11

resolve_multiMethod · 0.45
resolve_implMethod · 0.45
resolve_relativeMethod · 0.45
struct_field_mismatchFunction · 0.45
advance_consumes_tokenFunction · 0.45
verify_no_repeatFunction · 0.45
parse_labelled_argumentFunction · 0.45
cancelMethod · 0.45

Calls 2

peek_nMethod · 0.80
lexerMethod · 0.80