MCPcopy Create free account
hub / github.com/bcicen/jstream / willEmit

Method willEmit

decoder.go:174–179  ·  view source on GitHub ↗

return whether, at the current depth, the value being decoded will be emitted to stream

()

Source from the content-addressed store, hash-verified

172// return whether, at the current depth, the value being decoded will
173// be emitted to stream
174func (d *Decoder) willEmit() bool {
175 if d.emitRecursive {
176 return d.depth >= d.emitDepth
177 }
178 return d.depth == d.emitDepth
179}
180
181// any used to decode any valid JSON value, and returns an
182// interface{} that holds the actual data

Callers 3

emitAnyMethod · 0.95
objectMethod · 0.95
objectOrderedMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected