MCPcopy
hub / github.com/dosco/graphjin / Pop

Method Pop

core/internal/graph/stack.go:30–37  ·  view source on GitHub ↗

Pop the top item of the Stack and return it

()

Source from the content-addressed store, hash-verified

28
29// Pop the top item of the Stack and return it
30func (s *Stack) Pop() int32 {
31 if s.top == -1 {
32 return -1
33 }
34
35 s.top--
36 return s.st[(s.top + 1)]
37}
38
39// Push a value onto the top of the Stack
40func (s *Stack) Push(value int32) {

Callers 2

parseFieldsMethod · 0.95
compileExpNodeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected