MCPcopy Index your code
hub / github.com/livebud/bud / PublicMethods

Method PublicMethods

package/parser/struct.go:182–196  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

180}
181
182func (stct *Struct) PublicMethods() (methods []*Function) {
183 for _, file := range stct.Package().Files() {
184 for _, fn := range file.Functions() {
185 recv := fn.Receiver()
186 if recv == nil {
187 continue
188 }
189 if fn.Private() || TypeName(recv.Type()) != stct.Name() {
190 continue
191 }
192 methods = append(methods, fn)
193 }
194 }
195 return methods
196}
197
198// Field is a regular struct field
199type Field struct {

Callers 1

loadActionsMethod · 0.45

Calls 8

PackageMethod · 0.95
NameMethod · 0.95
TypeNameFunction · 0.85
ReceiverMethod · 0.80
TypeMethod · 0.65
FilesMethod · 0.45
FunctionsMethod · 0.45
PrivateMethod · 0.45

Tested by

no test coverage detected