Lines Matching refs:pkgPath
58 Import(pkgPath string)
59 ImportAs(as, pkgPath string)
79 pkgPath string member
96 func NewPackageContext(pkgPath string) PackageContext {
99 if _, present := packageContexts[pkgPath]; present {
100 panic(fmt.Errorf("package %q already has a package context", pkgPath))
103 pkgName := pkgPathToName(pkgPath)
109 i := strings.LastIndex(pkgPath, "/")
110 shortName := pkgPath[i+1:]
115 pkgPath: pkgPath,
119 packageContexts[pkgPath] = p
155 func callerName(skip int) (pkgPath, funcName string, ok bool) {
179 func pkgPathToName(pkgPath string) string {
180 return strings.Replace(pkgPath, "/", ".", -1)
218 func (p *packageContext) Import(pkgPath string) {
220 importPkg, ok := packageContexts[pkgPath]
222 panic(fmt.Errorf("package %q has no context", pkgPath))
234 func (p *packageContext) ImportAs(as, pkgPath string) {
236 importPkg, ok := packageContexts[pkgPath]
238 panic(fmt.Errorf("package %q has no context", pkgPath))
317 return v.pctx.pkgPath + "." + v.name_
439 return v.pctx.pkgPath + "." + v.name_
560 return p.pctx.pkgPath + "." + p.name_
635 return p.pctx.pkgPath + "." + p.name_
783 return r.pctx.pkgPath + "." + r.name_
901 return r.pctx.pkgPath + "." + r.name_