go/ast.Field.Doc (field)
11 uses
go/ast (current package)
ast.go#L198: Doc *CommentGroup // associated documentation; or nil
walk.go#L70: if n.Doc != nil {
walk.go#L71: Walk(v, n.Doc)
go/parser
parser.go#L750: field := &ast.Field{Doc: doc, Names: idents, Type: typ, Tag: tag, Comment: p.lineComment}
parser.go#L962: spec := &ast.Field{Doc: doc, Names: idents, Type: typ, Comment: p.lineComment}
go/printer
nodes.go#L502: p.setComment(f.Doc)
nodes.go#L545: p.setComment(f.Doc)
printer.go#L1034: return n.Doc
golang.org/x/pkgsite/internal/godoc
encode_ast.gen.go#L1339: if x.Doc != nil {
encode_ast.gen.go#L1341: encode_ast_CommentGroup(e, x.Doc)
encode_ast.gen.go#L1380: decode_ast_CommentGroup(d, &x.Doc)
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |