mirror of
https://github.com/astaxie/beego.git
synced 2025-06-14 11:20:40 +00:00
fix #703
This commit is contained in:
@ -65,7 +65,9 @@ func parserPkg(pkgRealpath, pkgpath string) error {
|
||||
for _, d := range fl.Decls {
|
||||
switch specDecl := d.(type) {
|
||||
case *ast.FuncDecl:
|
||||
parserComments(specDecl.Doc, specDecl.Name.String(), fmt.Sprint(specDecl.Recv.List[0].Type.(*ast.StarExpr).X), pkgpath)
|
||||
if specDecl.Recv != nil {
|
||||
parserComments(specDecl.Doc, specDecl.Name.String(), fmt.Sprint(specDecl.Recv.List[0].Type.(*ast.StarExpr).X), pkgpath)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user