(obj types.Object)
| 12 | ) |
| 13 | |
| 14 | func (p *GoParser) CommentForObject(obj types.Object) []bindings.SyntheticComment { |
| 15 | for _, pkg := range p.Pkgs { |
| 16 | if obj.Pkg() != nil && pkg.PkgPath == obj.Pkg().Path() { |
| 17 | return CommentForObject(obj, pkg) |
| 18 | } |
| 19 | } |
| 20 | return []bindings.SyntheticComment{} |
| 21 | } |
| 22 | |
| 23 | // CommentForObject returns the comment group associated with the object's declaration. |
| 24 | // For functions/methods it returns FuncDecl.Doc. |
no test coverage detected