go/ast.Comment.Pos (method)
11 uses
go/ast (current package)
ast.go#L70: func (c *Comment) Pos() token.Pos { return c.Slash }
ast.go#L80: func (g *CommentGroup) Pos() token.Pos { return g.List[0].Pos() }
go/doc
reader.go#L461: Pos: list[0].Pos(),
go/printer
nodes.go#L83: p.flush(p.posFor(g.List[0].Pos()), token.ILLEGAL)
printer.go#L117: line := p.lineFor(list[0].Pos())
printer.go#L119: if i > 0 && p.lineFor(list[i].Pos()) != line {
printer.go#L137: p.commentOffset = p.posFor(list[0].Pos()).Offset
printer.go#L640: pos := p.posFor(comment.Pos())
printer.go#L747: p.writeCommentPrefix(p.posFor(c.Pos()), next, last, tok)
printer.go#L767: last.Text[1] == '*' && p.lineFor(last.Pos()) == next.Line &&
golang.org/x/pkgsite/internal/godoc/internal/doc
reader.go#L465: Pos: list[0].Pos(),
![]() |
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. |