Home | History | Annotate | Download | only in api

Lines Matching refs:Pkg

134 		for _, pkg := range strings.Fields(string(stds)) {
135 if !internalPkg.MatchString(pkg) {
136 pkgNames = append(pkgNames, pkg)
160 pkg, _ := w.Import(name)
161 w.export(pkg)
216 func (w *Walker) export(pkg *types.Package) {
218 log.Println(pkg)
220 pop := w.pushScope("pkg " + pkg.Path())
221 w.current = pkg
222 scope := pkg.Scope()
418 pkg := w.imported[name]
419 if pkg != nil {
420 if pkg == &importing {
423 return pkg, nil
450 if pkg := pkgCache[key]; pkg != nil {
451 w.imported[name] = pkg
452 return pkg, nil
462 log.Fatalf("pkg %q, dir %q: ScanDir: %v", name, dir, err)
491 pkg, err = conf.Check(name, fset, files, nil)
501 pkgCache[key] = pkg
504 w.imported[name] = pkg
505 return pkg, nil
621 pkg := obj.Pkg()
622 if pkg != nil && pkg != w.current {
623 buf.WriteString(pkg.Name())