go/printer.printer.comments (field)
12 uses
go/printer (current package)
nodes.go#L76: if p.comments == nil {
nodes.go#L78: p.comments = make([]*ast.CommentGroup, 1)
nodes.go#L79: } else if p.cindex < len(p.comments) {
nodes.go#L84: p.comments = p.comments[0:1]
nodes.go#L88: p.comments[0] = g
printer.go#L80: comments []*ast.CommentGroup // may be nil
printer.go#L132: for p.cindex < len(p.comments) {
printer.go#L133: c := p.comments[p.cindex]
printer.go#L1112: p.comments = comments[i:j]
printer.go#L1116: p.comments = n.Comments
printer.go#L1120: p.useNodeComments = p.comments == nil
![]() |
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. |