MCPcopy
hub / github.com/tinylib/msgp / next

Function next

gen/spec.go:293–310  ·  view source on GitHub ↗

type-switch dispatch to the correct method given the type of 'e'

(t traversal, e Elem)

Source from the content-addressed store, hash-verified

291// type-switch dispatch to the correct
292// method given the type of 'e'
293func next(t traversal, e Elem) {
294 switch e := e.(type) {
295 case *Map:
296 t.gMap(e)
297 case *Struct:
298 t.gStruct(e)
299 case *Slice:
300 t.gSlice(e)
301 case *Array:
302 t.gArray(e)
303 case *Ptr:
304 t.gPtr(e)
305 case *BaseElem:
306 t.gBase(e)
307 default:
308 panic("bad element type")
309 }
310}
311
312// possibly-immutable method receiver
313func imutMethodReceiver(p Elem) string {

Callers 15

rangeBlockMethod · 0.85
ExecuteMethod · 0.85
gStructMethod · 0.85
gPtrMethod · 0.85
gMapMethod · 0.85
readKeyMethod · 0.85
ExecuteMethod · 0.85
tupleMethod · 0.85
mapstructMethod · 0.85
gMapMethod · 0.85
gPtrMethod · 0.85
ExecuteMethod · 0.85

Calls 6

gMapMethod · 0.65
gStructMethod · 0.65
gSliceMethod · 0.65
gArrayMethod · 0.65
gPtrMethod · 0.65
gBaseMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…