MCPcopy
hub / github.com/wavetermdev/waveterm / pop

Method pop

pkg/util/utilfn/partial.go:28–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26}
27
28func (s *jsonStack) pop() stackItem {
29 if len(*s) == 0 {
30 return stackInvalid
31 }
32 item := (*s)[len(*s)-1]
33 *s = (*s)[:len(*s)-1]
34 return item
35}
36
37func (s jsonStack) peek() stackItem {
38 if len(s) == 0 {

Callers 14

repairJsonFunction · 0.95
dfsFunction · 0.80
getNodeIconFunction · 0.80
isAcceptableFileFunction · 0.80
getFileIconFunction · 0.80
getBlockingCommandFunction · 0.80
bufferLinesToTextFunction · 0.80
CodeEditPreviewFunction · 0.80
TableBodyFunction · 0.80
processTitleStringFunction · 0.80
normalizeMockPathFunction · 0.80
removeFromArrFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected