go/ast.ValueSpec.Comment (field)
12 uses
go/ast (current package)
ast.go#L894: Comment *CommentGroup // line comments; or nil
walk.go#L309: if n.Comment != nil {
walk.go#L310: Walk(v, n.Comment)
go/parser
parser.go#L2366: Comment: p.lineComment,
go/printer
nodes.go#L1502: if s.Comment != nil {
nodes.go#L1506: p.setComment(s.Comment)
nodes.go#L1583: p.setComment(s.Comment)
printer.go#L1058: return n.Comment
golang.org/x/pkgsite/internal/godoc
encode_ast.gen.go#L3366: if x.Comment != nil {
encode_ast.gen.go#L3368: encode_ast_CommentGroup(e, x.Comment)
encode_ast.gen.go#L3399: decode_ast_CommentGroup(d, &x.Comment)
golang.org/x/pkgsite/internal/godoc/dochtml/internal/render
linkify.go#L525: v.rewriteLongValue(val, &n.Comment)
![]() |
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. |