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

Function yieldComments

parse/directives.go:69–79  ·  view source on GitHub ↗

find all comment lines that begin with //msgp:

(c []*ast.CommentGroup)

Source from the content-addressed store, hash-verified

67
68// find all comment lines that begin with //msgp:
69func yieldComments(c []*ast.CommentGroup) []string {
70 var out []string
71 for _, cg := range c {
72 for _, line := range cg.List {
73 if after, ok := strings.CutPrefix(line.Text, linePrefix); ok {
74 out = append(out, after)
75 }
76 }
77 }
78 return out
79}
80
81//msgp:shim {Type} as:{NewType} using:{toFunc/fromFunc} mode:{Mode}
82func applyShim(text []string, f *FileSet) error {

Callers 1

FileFunction · 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…