go/ast.CommentGroup.List (field)
26 uses
go/ast (current package)
ast.go#L77: List []*Comment // len(List) > 0
ast.go#L80: func (g *CommentGroup) Pos() token.Pos { return g.List[0].Pos() }
ast.go#L81: func (g *CommentGroup) End() token.Pos { return g.List[len(g.List)-1].End() }
ast.go#L103: comments := make([]string, len(g.List))
ast.go#L104: for i, c := range g.List {
commentmap.go#L291: for _, comment := range group.List {
filter.go#L357: ndocs += len(f.Doc.List) + 1 // +1 for separator
filter.go#L381: for _, c := range f.Doc.List {
import.go#L211: for _, c := range g.cg.List {
walk.go#L65: for _, c := range n.List {
go/doc
reader.go#L451: text := (&ast.CommentGroup{List: list}).Text()
reader.go#L479: list := group.List
go/parser
parser.go#L295: comments = &ast.CommentGroup{List: list}
go/printer
nodes.go#L83: p.flush(p.posFor(g.List[0].Pos()), token.ILLEGAL)
nodes.go#L436: p.setComment(&ast.CommentGroup{List: []*ast.Comment{{Slash: token.NoPos, Text: text}}})
printer.go#L135: if list := c.List; len(list) > 0 {
printer.go#L167: for _, c := range p.comment.List {
printer.go#L746: for _, c := range p.comment.List {
golang.org/x/pkgsite/internal/godoc
encode_ast.gen.go#L838: if x.List != nil {
encode_ast.gen.go#L840: encode_slice_ast_Comment(e, x.List)
encode_ast.gen.go#L863: decode_slice_ast_Comment(d, &x.List)
golang.org/x/pkgsite/internal/godoc/dochtml/internal/render
linkify.go#L567: (*cg).List = append((*cg).List, &ast.Comment{Slash: pos, Text: text})
golang.org/x/pkgsite/internal/godoc/internal/doc
reader.go#L455: text := (&ast.CommentGroup{List: list}).Text()
reader.go#L483: list := group.List
 |
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. |