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

Function is_current_token

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

Source from the content-addressed store, hash-verified

3944
3945#[inline(always)]
3946pub(crate) fn is_current_token(
3947 tokens: &[Token],
3948 position: &usize,
3949 expected_kind: TokenKind,
3950) -> bool {
3951 *position < tokens.len() && tokens[*position].kind == expected_kind
3952}
3953
3954#[inline(always)]
3955pub(crate) fn is_next_token(tokens: &[Token], position: &usize, expected_kind: TokenKind) -> bool {

Callers 15

parse_do_queryFunction · 0.85
parse_select_queryFunction · 0.85
parse_from_optionFunction · 0.85
parse_group_by_statementFunction · 0.85
parse_is_null_expressionFunction · 0.85
parse_in_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…