MCPcopy Create free account
hub / github.com/egonelbre/exp / pop

Method pop

ber/decoder.go:21–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19}
20
21func (s *stack) pop() (*Token, error) {
22 if len(s.open) == 0 {
23 return nil, SyntaxError{"no types unfinished"}
24 }
25
26 last := len(s.closeat) - 1
27 t := s.open[last]
28 s.open, s.closeat = s.open[:last], s.closeat[:last]
29 return t, nil
30}
31
32func (s *stack) push(t *Token, end int) {
33 s.open = append(s.open, t)

Callers 5

popIndefiniteEndMethod · 0.95
tryPopMethod · 0.95
storeValueMethod · 0.45
storeValueMethod · 0.45
storeValueMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected