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

Function newSymtab

bind/symbols.go:392–404  ·  view source on GitHub ↗
(pkg *types.Package, parent *symtab)

Source from the content-addressed store, hash-verified

390}
391
392func newSymtab(pkg *types.Package, parent *symtab) *symtab {
393 if parent == nil {
394 parent = universe
395 }
396 s := &symtab{
397 pkg: pkg,
398 syms: make(map[string]*symbol),
399 imports: make(map[string]string),
400 importNames: make(map[string]string),
401 parent: parent,
402 }
403 return s
404}
405
406func (sym *symtab) names() []string {
407 names := make([]string, 0, len(sym.syms))

Callers 2

ResetPackagesFunction · 0.85
initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected