go/printer.printer.commentBefore (method)
6 uses
go/printer (current package)
nodes.go#L443: hasComments := isIncomplete || p.commentBefore(p.posFor(rbrace))
nodes.go#L1384: if len(body.List) == 0 && !p.commentBefore(p.posFor(body.Rbrace)) {
printer.go#L152: func (p *printer) commentBefore(next token.Position) bool {
printer.go#L166: for p.commentBefore(next) {
printer.go#L745: for p.commentBefore(next) {
printer.go#L1020: if p.commentBefore(next) {
![]() |
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. |