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

Method peek

dql/parser.go:1555–1558  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1553}
1554
1555func (s *filterTreeStack) peek() *FilterTree {
1556 x.AssertTruef(!s.empty(), "Trying to peek empty stack")
1557 return s.a[len(s.a)-1]
1558}
1559
1560func evalStack(opStack, valueStack *filterTreeStack) error {
1561 topOp, err := opStack.pop()

Callers 1

parseFilterFunction · 0.45

Calls 2

emptyMethod · 0.95
AssertTruefFunction · 0.92

Tested by

no test coverage detected