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

Function token_matches

nodedb/src/control/planner/procedural/parser/utils.rs:9–11  ·  view source on GitHub ↗

Check if a token matches a pattern token (ignoring content for parameterized variants).

(token: &Token, pattern: &Token)

Source from the content-addressed store, hash-verified

7
8/// Check if a token matches a pattern token (ignoring content for parameterized variants).
9pub(super) fn token_matches(token: &Token, pattern: &Token) -> bool {
10 std::mem::discriminant(token) == std::mem::discriminant(pattern)
11}
12
13pub(super) fn skip_token(
14 tokens: &[Token],

Callers 3

expect_tokenFunction · 0.85
skip_ifFunction · 0.85
collect_raw_sql_untilFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected