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

Method Push

core/internal/graph/stack.go:40–47  ·  view source on GitHub ↗

Push a value onto the top of the Stack

(value int32)

Source from the content-addressed store, hash-verified

38
39// Push a value onto the top of the Stack
40func (s *Stack) Push(value int32) {
41 s.top++
42 if len(s.st) <= s.top {
43 s.st = append(s.st, value)
44 } else {
45 s.st[s.top] = value
46 }
47}

Callers 6

newMutateMethod · 0.45
compileExpNodeMethod · 0.45
pushChildrenMethod · 0.45
compileChildColumnsMethod · 0.45
parseNormalFieldsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected