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

Method genExtTypesGo

bind/gen.go:733–747  ·  view source on GitHub ↗

generate external types, go code

()

Source from the content-addressed store, hash-verified

731
732// generate external types, go code
733func (g *pyGen) genExtTypesGo() {
734 g.gofile.Printf("\n// ---- External Types Outside of Targeted Packages ---\n")
735
736 names := current.names()
737 for _, n := range names {
738 sym := current.sym(n)
739 if !sym.isType() {
740 continue
741 }
742 if _, has := g.pkgmap[sym.gopkg.Path()]; has {
743 continue
744 }
745 g.genType(sym, true, false) // ext types, no python wrapping
746 }
747}
748
749// generate external types, py wrap
750func (g *pyGen) genExtTypesPyWrap() {

Callers 1

genMethod · 0.95

Calls 5

genTypeMethod · 0.95
PrintfMethod · 0.80
namesMethod · 0.80
symMethod · 0.80
isTypeMethod · 0.80

Tested by

no test coverage detected