TestRecvTypeName

This commit is contained in:
xushiwei
2024-05-08 15:01:50 +08:00
parent cd8e1f2080
commit b0b38c02b2
4 changed files with 105 additions and 4 deletions

View File

@@ -172,10 +172,7 @@ func (p *context) initLinknameByDoc(doc *ast.CommentGroup, fullName, inPkgName s
if n := len(doc.List); n > 0 {
line := doc.List[n-1].Text
p.initLinkname(line, func(name string) (_ string, _, ok bool) {
if name == inPkgName {
return fullName, isVar, true
}
return
return fullName, isVar, name == inPkgName
})
}
}