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

Method findEnum

bind/package.go:550–557  ·  view source on GitHub ↗
(ntyp *types.Named)

Source from the content-addressed store, hash-verified

548}
549
550func (p *Package) findEnum(ntyp *types.Named) *Enum {
551 for _, enm := range p.enums {
552 if enm.typ == ntyp {
553 return enm
554 }
555 }
556 return nil
557}
558
559func (p *Package) addConst(obj *types.Const) {
560 if ntyp, ok := obj.Type().(*types.Named); ok {

Callers 1

addConstMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected