MCPcopy Create free account
hub / github.com/AmrDeveloper/GQL / is_current_token_with_condition

Function is_current_token_with_condition

crates/gitql-parser/src/parser.rs:3960–3966  ·  view source on GitHub ↗
(
    tokens: &[Token],
    position: &usize,
    condition: fn(&Token) -> bool,
)

Source from the content-addressed store, hash-verified

3958
3959#[inline(always)]
3960pub(crate) fn is_current_token_with_condition(
3961 tokens: &[Token],
3962 position: &usize,
3963 condition: fn(&Token) -> bool,
3964) -> bool {
3965 *position < tokens.len() && condition(&tokens[*position])
3966}
3967
3968#[inline(always)]
3969pub(crate) fn consume_token_or_error<'a>(

Callers 2

parse_set_queryFunction · 0.85

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…