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

Method push

dql/math.go:24–24  ·  view source on GitHub ↗
(t *MathTree)

Source from the content-addressed store, hash-verified

22func (s *mathTreeStack) empty() bool { return len(s.a) == 0 }
23func (s *mathTreeStack) size() int { return len(s.a) }
24func (s *mathTreeStack) push(t *MathTree) { s.a = append(s.a, t) }
25
26func (s *mathTreeStack) popAssert() *MathTree {
27 x.AssertTruef(!s.empty(), "Expected a non-empty stack")

Callers 2

evalMathStackFunction · 0.45
parseMathFuncFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected