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

Method advance

libs/@local/hashql/syntax-jexpr/src/parser/state.rs:81–90  ·  view source on GitHub ↗
(
        &mut self,
        context: &mut LexerContext,
    )

Source from the content-addressed store, hash-verified

79 }
80
81 fn advance(
82 &mut self,
83 context: &mut LexerContext,
84 ) -> Option<Result<Token<'source>, LexerDiagnostic>> {
85 if let Some(token) = self.buffer.pop_front() {
86 return Some(Ok(token));
87 }
88
89 self.lexer.advance(context)
90 }
91
92 fn span(&self) -> TextRange {
93 self.lexer.span()

Calls 8

OkInterface · 0.85
ErrInterface · 0.85
unexpected_eofFunction · 0.85
lexerMethod · 0.80
into_setMethod · 0.80
validate_tokenMethod · 0.80
insert_rangeMethod · 0.45
spanMethod · 0.45