MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / advance

Method advance

nodedb/src/control/promql/parser.rs:40–44  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

38 }
39
40 fn advance(&mut self) -> &Token {
41 let tok = self.tokens.get(self.pos).unwrap_or(&Token::Eof);
42 self.pos += 1;
43 tok
44 }
45
46 fn at_eof(&self) -> bool {
47 matches!(self.peek(), Token::Eof)

Callers 12

expectMethod · 0.45
parse_exprMethod · 0.45
parse_unaryMethod · 0.45
parse_postfixMethod · 0.45
parse_primaryMethod · 0.45
parse_function_callMethod · 0.45
parse_aggregationMethod · 0.45
parse_label_matchersMethod · 0.45
parse_one_matcherMethod · 0.45
parse_durationMethod · 0.45
parse_label_listMethod · 0.45
try_keywordMethod · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected