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

Function skip_if

nodedb/src/control/planner/procedural/parser/utils.rs:50–54  ·  view source on GitHub ↗
(tokens: &[Token], pos: &mut usize, token: &Token)

Source from the content-addressed store, hash-verified

48}
49
50pub(super) fn skip_if(tokens: &[Token], pos: &mut usize, token: &Token) {
51 if *pos < tokens.len() && token_matches(&tokens[*pos], token) {
52 *pos += 1;
53 }
54}
55
56/// Convert a token back to its SQL text representation.
57pub(super) fn token_to_sql(token: &Token) -> String {

Callers 15

parse_blockFunction · 0.85
parse_statementFunction · 0.85
parse_declareFunction · 0.85
parse_assignFunction · 0.85
parse_ifFunction · 0.85
parse_whileFunction · 0.85
parse_forFunction · 0.85
parse_loopFunction · 0.85
parse_returnFunction · 0.85
parse_return_queryFunction · 0.85
parse_raiseFunction · 0.85
parse_sqlFunction · 0.85

Calls 2

token_matchesFunction · 0.85
lenMethod · 0.45

Tested by

no test coverage detected