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

Function newInterface

bind/types.go:159–171  ·  view source on GitHub ↗
(p *Package, obj *types.TypeName)

Source from the content-addressed store, hash-verified

157}
158
159func newInterface(p *Package, obj *types.TypeName) (*Interface, error) {
160 sym := p.syms.symtype(obj.Type())
161 if sym == nil {
162 return nil, fmt.Errorf("no such object [%s] in symbols table", obj.Id())
163 }
164 sym.doc = p.getDoc("", obj)
165 s := &Interface{
166 pkg: p,
167 sym: sym,
168 obj: obj,
169 }
170 return s, nil
171}
172
173func (it *Interface) Package() *Package {
174 return it.pkg

Callers 1

processMethod · 0.85

Calls 2

symtypeMethod · 0.80
getDocMethod · 0.80

Tested by

no test coverage detected