MCPcopy
hub / github.com/dgraph-io/dgraph / trySkipItemTyp

Function trySkipItemTyp

dql/parser.go:3557–3564  ·  view source on GitHub ↗
(it *lex.ItemIterator, typ lex.ItemType)

Source from the content-addressed store, hash-verified

3555}
3556
3557func trySkipItemTyp(it *lex.ItemIterator, typ lex.ItemType) bool {
3558 item, ok := it.PeekOne()
3559 if !ok || item.Typ != typ {
3560 return false
3561 }
3562 it.Next()
3563 return true
3564}

Callers 3

parseRecurseArgsFunction · 0.85
parseFunctionFunction · 0.85
validateEmptyBlockItemFunction · 0.85

Calls 2

PeekOneMethod · 0.80
NextMethod · 0.45

Tested by

no test coverage detected