MCPcopy Index your code
hub / github.com/dgraph-io/dgraph / tryParseItemType

Function tryParseItemType

dql/parser.go:3539–3546  ·  view source on GitHub ↗

Steps the parser.

(it *lex.ItemIterator, typ lex.ItemType)

Source from the content-addressed store, hash-verified

3537
3538// Steps the parser.
3539func tryParseItemType(it *lex.ItemIterator, typ lex.ItemType) (lex.Item, bool) {
3540 item, ok := it.PeekOne()
3541 if !ok || item.Typ != typ {
3542 return item, false
3543 }
3544 it.Next()
3545 return item, true
3546}
3547
3548func trySkipItemVal(it *lex.ItemIterator, val string) bool {
3549 item, ok := it.PeekOne()

Callers 5

parseRecurseArgsFunction · 0.85
parseFunctionFunction · 0.85
tryParseFacetItemFunction · 0.85
tryParseFacetListFunction · 0.85
validateEmptyBlockItemFunction · 0.85

Calls 2

PeekOneMethod · 0.80
NextMethod · 0.45

Tested by

no test coverage detected