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

Function newMap

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

Source from the content-addressed store, hash-verified

263}
264
265func newMap(p *Package, obj *types.TypeName) (*Map, error) {
266 sym := p.syms.symtype(obj.Type())
267 if sym == nil {
268 return nil, fmt.Errorf("no such object [%s] in symbols table", obj.Id())
269 }
270 sym.doc = p.getDoc("", obj)
271 s := &Map{
272 pkg: p,
273 sym: sym,
274 obj: obj,
275 }
276 return s, nil
277}
278
279func (it *Map) Package() *Package {
280 return it.pkg

Callers 1

processMethod · 0.85

Calls 2

symtypeMethod · 0.80
getDocMethod · 0.80

Tested by

no test coverage detected