MCPcopy Index your code
hub / github.com/go-python/gopy / Lookup

Method Lookup

bind/package.go:618–621  ·  view source on GitHub ↗

Lookup returns the bind.Object corresponding to a types.Object

(o types.Object)

Source from the content-addressed store, hash-verified

616
617// Lookup returns the bind.Object corresponding to a types.Object
618func (p *Package) Lookup(o types.Object) (Object, bool) {
619 obj, ok := p.objs[o.Name()]
620 return obj, ok
621}
622
623func (p *Package) sortStructEmbeds() {
624 for {

Callers 10

gopyRunCmdPkgFunction · 0.80
gopyRunCmdGenFunction · 0.80
gopyRunCmdBuildFunction · 0.80
gopyRunCmdExeFunction · 0.80
getDocMethod · 0.80
processMethod · 0.80
addTypeIfNewMethod · 0.80
isErrorTypeFunction · 0.80
isStringerFunction · 0.80
newVarFunction · 0.80

Calls 1

NameMethod · 0.45

Tested by

no test coverage detected