go/ast.CommentGroup.List (field)
19 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#L505: text := (&ast.CommentGroup{List: list}).Text()
reader.go#L533: list := group.List
go/parser
parser.go#L168: comments = &ast.CommentGroup{List: list}
go/printer
nodes.go#L83: p.flush(p.posFor(g.List[0].Pos()), token.ILLEGAL)
nodes.go#L475: p.setComment(&ast.CommentGroup{List: []*ast.Comment{{Slash: token.NoPos, Text: text}}})
printer.go#L138: if list := c.List; len(list) > 0 {
printer.go#L170: for _, c := range p.comment.List {
printer.go#L751: for _, c := range p.comment.List {