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

Function strToMethod

parse/getast.go:367–384  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

365}
366
367func strToMethod(s string) gen.Method {
368 switch s {
369 case "encode":
370 return gen.Encode
371 case "decode":
372 return gen.Decode
373 case "test":
374 return gen.Test
375 case "size":
376 return gen.Size
377 case "marshal":
378 return gen.Marshal
379 case "unmarshal":
380 return gen.Unmarshal
381 default:
382 return 0
383 }
384}
385
386func (fs *FileSet) applyDirs(p *gen.Printer) {
387 // apply directives of the form

Callers 1

applyDirsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…