MCPcopy Create free account
hub / github.com/segmentio/encoding / push

Method push

json/token.go:221–226  ·  view source on GitHub ↗
(typ scope)

Source from the content-addressed store, hash-verified

219}
220
221func (t *Tokenizer) push(typ scope) {
222 if t.stack == nil {
223 t.stack = acquireStack()
224 }
225 t.stack.push(typ)
226}
227
228func (t *Tokenizer) pop(expect scope) error {
229 if t.stack == nil || !t.stack.pop(expect) {

Callers 1

NextMethod · 0.95

Calls 2

acquireStackFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected