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

Function is_next_token

crates/gitql-parser/src/parser.rs:3955–3957  ·  view source on GitHub ↗
(tokens: &[Token], position: &usize, expected_kind: TokenKind)

Source from the content-addressed store, hash-verified

3953
3954#[inline(always)]
3955pub(crate) fn is_next_token(tokens: &[Token], position: &usize, expected_kind: TokenKind) -> bool {
3956 *position + 1 < tokens.len() && tokens[*position + 1].kind == expected_kind
3957}
3958
3959#[inline(always)]
3960pub(crate) fn is_current_token_with_condition(

Callers 3

parse_between_expressionFunction · 0.85
parse_like_expressionFunction · 0.85
parse_regex_expressionFunction · 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…