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

Method genVar

bind/gen_varconst.go:22–33  ·  view source on GitHub ↗
(v *Var)

Source from the content-addressed store, hash-verified

20}
21
22func (g *pyGen) genVar(v *Var) {
23 if isPyCompatVar(v.sym) != nil {
24 return
25 }
26 if v.sym.isSignature() {
27 return
28 }
29 g.genVarGetter(v)
30 if !v.sym.isArray() {
31 g.genVarSetter(v)
32 }
33}
34
35func (g *pyGen) genVarGetter(v *Var) {
36 gopkg := g.pkg.Name()

Callers 1

genAllMethod · 0.95

Calls 5

genVarGetterMethod · 0.95
genVarSetterMethod · 0.95
isPyCompatVarFunction · 0.85
isSignatureMethod · 0.80
isArrayMethod · 0.80

Tested by

no test coverage detected