MCPcopy Create free account
hub / github.com/go-python/gopy / genExtTypesPyWrap

Method genExtTypesPyWrap

bind/gen.go:750–764  ·  view source on GitHub ↗

generate external types, py wrap

()

Source from the content-addressed store, hash-verified

748
749// generate external types, py wrap
750func (g *pyGen) genExtTypesPyWrap() {
751 g.pywrap.Printf("\n# ---- External Types Outside of Targeted Packages ---\n")
752
753 names := current.names()
754 for _, n := range names {
755 sym := current.sym(n)
756 if !sym.isType() {
757 continue
758 }
759 if _, has := g.pkgmap[sym.gopkg.Path()]; has {
760 continue
761 }
762 g.genType(sym, true, true) // ext types, only python wrapping
763 }
764}
765
766func (g *pyGen) genAll() {
767 g.gofile.Printf("\n// ---- Package: %s ---\n", g.pkg.Name())

Callers 1

genPkgMethod · 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