Lines Matching refs:pkgPath
65 pkgPath, err := funcNameToPkgPath(f.Name())
70 factoryName := strings.TrimPrefix(f.Name(), pkgPath+".")
72 text, err := r.getModuleTypeDoc(pkgPath, factoryName)
79 PkgPath: pkgPath,
86 func (r *Reader) PropertyStruct(pkgPath, name string, defaults reflect.Value) (*PropertyStruct, err…
87 ps := r.getPropertyStruct(pkgPath, name)
90 pkg, err := r.goPkg(pkgPath)
101 ps = r.putPropertyStruct(pkgPath, name, ps)
107 return nil, fmt.Errorf("package %q type %q not found", pkgPath, name)
116 func (r *Reader) getModuleTypeDoc(pkgPath, factoryFuncName string) (string, error) {
117 goPkg, err := r.goPkg(pkgPath)
140 func (r *Reader) getPropertyStruct(pkgPath, name string) *PropertyStruct {
144 name = pkgPath + "." + name
149 func (r *Reader) putPropertyStruct(pkgPath, name string, ps *PropertyStruct) *PropertyStruct {
153 name = pkgPath + "." + name
164 func (r *Reader) goPkg(pkgPath string) (*doc.Package, error) {
165 pkg := r.getGoPkg(pkgPath)
167 if files, ok := r.pkgFiles[pkgPath]; ok {
173 pkg = doc.New(pkgAST, pkgPath, doc.AllDecls)
174 pkg = r.putGoPkg(pkgPath, pkg)
176 return nil, fmt.Errorf("unknown package %q", pkgPath)
182 func (r *Reader) getGoPkg(pkgPath string) *doc.Package {
186 return r.goPkgs[pkgPath]
189 func (r *Reader) putGoPkg(pkgPath string, pkg *doc.Package) *doc.Package {
193 if r.goPkgs[pkgPath] != nil {
194 return r.goPkgs[pkgPath]
196 r.goPkgs[pkgPath] = pkg