type go/ast.Comment
13 uses
go/ast (current package)
ast.go#L68: type Comment struct {
ast.go#L73: func (c *Comment) Pos() token.Pos { return c.Slash }
ast.go#L74: func (c *Comment) End() token.Pos { return token.Pos(int(c.Slash) + len(c.Text)) }
ast.go#L79: List []*Comment // len(List) > 0
commentmap.go#L44: case nil, *CommentGroup, *Comment:
filter.go#L342: var separator = &Comment{token.NoPos, "//"}
filter.go#L383: list := make([]*Comment, ndocs-1) // -1: no separator before first group
walk.go#L43: case *Comment:
go/doc
reader.go#L518: func (r *reader) readNote(list []*ast.Comment) {
go/parser
parser.go#L179: func (p *parser) consumeComment() (comment *ast.Comment, endline int) {
parser.go#L192: comment = &ast.Comment{Slash: p.pos, Text: p.lit}
parser.go#L203: var list []*ast.Comment
parser.go#L206: var comment *ast.Comment
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64)