go/ast.CommentGroup.List (field)
25 uses
go/ast (current package)
ast.go#L75: List []*Comment // len(List) > 0
ast.go#L78: func (g *CommentGroup) Pos() token.Pos { return g.List[0].Pos() }
ast.go#L79: func (g *CommentGroup) End() token.Pos { return g.List[len(g.List)-1].End() }
ast.go#L101: comments := make([]string, len(g.List))
ast.go#L102: for i, c := range g.List {
ast.go#L1115: for _, comment := range group.List {
commentmap.go#L272: for _, comment := range group.List {
filter.go#L349: ndocs += len(f.Doc.List) + 1 // +1 for separator
filter.go#L379: for _, c := range f.Doc.List {
import.go#L224: for _, c := range g.cg.List {
walk.go#L47: walkList(v, n.List)
go/build
read.go#L498: for _, c := range group.List {
go/doc
reader.go#L519: text := (&ast.CommentGroup{List: list}).Text()
reader.go#L546: list := group.List
go/parser
parser.go#L198: comments = &ast.CommentGroup{List: list}
go/printer
nodes.go#L78: p.flush(p.posFor(g.List[0].Pos()), token.ILLEGAL)
nodes.go#L490: p.setComment(&ast.CommentGroup{List: []*ast.Comment{{Slash: token.NoPos, Text: text}}})
printer.go#L130: if list := c.List; len(list) > 0 {
printer.go#L160: for _, c := range p.comment.List {
printer.go#L740: list := p.comment.List
printer.go#L750: if len(p.comment.List) > 0 && len(list) == 0 {
printer.go#L769: if len(p.comment.List) > 0 && changed {
printer.go#L770: last = p.comment.List[len(p.comment.List)-1]