type go/ast.CommentGroup

95 uses

	go/ast (current package)
		ast.go#L76: type CommentGroup struct {
		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#L99: func (g *CommentGroup) Text() string {
		ast.go#L198: 	Doc     *CommentGroup // associated documentation; or nil
		ast.go#L202: 	Comment *CommentGroup // line comments; or nil
		ast.go#L879: 		Doc     *CommentGroup // associated documentation; or nil
		ast.go#L882: 		Comment *CommentGroup // line comments; or nil
		ast.go#L890: 		Doc     *CommentGroup // associated documentation; or nil
		ast.go#L894: 		Comment *CommentGroup // line comments; or nil
		ast.go#L899: 		Doc     *CommentGroup // associated documentation; or nil
		ast.go#L903: 		Comment *CommentGroup // line comments; or nil
		ast.go#L966: 		Doc    *CommentGroup // associated documentation; or nil
		ast.go#L976: 		Doc  *CommentGroup // associated documentation; or nil
		ast.go#L1034: 	Doc        *CommentGroup   // associated documentation; or nil
		ast.go#L1041: 	Comments   []*CommentGroup // list of all comments in the source file
		commentmap.go#L14: type byPos []*CommentGroup
		commentmap.go#L22: func sortComments(list []*CommentGroup) {
		commentmap.go#L35: type CommentMap map[Node][]*CommentGroup
		commentmap.go#L37: func (cmap CommentMap) addComment(n Node, c *CommentGroup) {
		commentmap.go#L40: 		list = []*CommentGroup{c}
		commentmap.go#L63: 		case nil, *CommentGroup, *Comment:
		commentmap.go#L81: 	list     []*CommentGroup
		commentmap.go#L83: 	comment  *CommentGroup  // comment group at current index
		commentmap.go#L143: func NewCommentMap(fset *token.FileSet, node Node, comments []*CommentGroup) CommentMap {
		commentmap.go#L151: 	tmp := make([]*CommentGroup, len(comments))
		commentmap.go#L272: func (cmap CommentMap) Comments() []*CommentGroup {
		commentmap.go#L273: 	list := make([]*CommentGroup, 0, len(cmap))
		commentmap.go#L281: func summary(list []*CommentGroup) string {
		filter.go#L368: 	var doc *CommentGroup
		filter.go#L393: 		doc = &CommentGroup{list}
		filter.go#L485: 	var comments []*CommentGroup
		filter.go#L487: 		comments = make([]*CommentGroup, ncomments)
		import.go#L98: 	cg   *CommentGroup
		import.go#L145: 	var comments []*CommentGroup
		walk.go#L64: 	case *CommentGroup:

	go/build
		build.go#L1357: 	doc  *ast.CommentGroup
		build.go#L1621: func (ctxt *Context) saveCgo(filename string, di *Package, cg *ast.CommentGroup) error {

	go/doc
		example.go#L28: 	Comments    []*ast.CommentGroup
		example.go#L116: func exampleOutput(b *ast.BlockStmt, comments []*ast.CommentGroup) (output string, unordered, ok bool) {
		example.go#L307: 	var comments []*ast.CommentGroup
		example.go#L414: func stripOutputComment(body *ast.BlockStmt, comments []*ast.CommentGroup) (*ast.BlockStmt, []*ast.CommentGroup) {
		example.go#L427: 	newComments := make([]*ast.CommentGroup, len(comments)-1)
		example.go#L434: func lastComment(b *ast.BlockStmt, c []*ast.CommentGroup) (i int, last *ast.CommentGroup) {
		reader.go#L216: func (r *reader) readDoc(comment *ast.CommentGroup) {
		reader.go#L451: 	text := (&ast.CommentGroup{List: list}).Text()
		reader.go#L476: func (r *reader) readNotes(comments []*ast.CommentGroup) {

	go/parser
		parser.go#L41: 	comments    []*ast.CommentGroup
		parser.go#L42: 	leadComment *ast.CommentGroup // last lead comment
		parser.go#L43: 	lineComment *ast.CommentGroup // last line comment
		parser.go#L285: func (p *parser) consumeCommentGroup(n int) (comments *ast.CommentGroup, endline int) {
		parser.go#L295: 	comments = &ast.CommentGroup{List: list}
		parser.go#L323: 		var comment *ast.CommentGroup
		parser.go#L2278: type parseSpecFunction func(doc *ast.CommentGroup, keyword token.Token, iota int) ast.Spec
		parser.go#L2291: func (p *parser) parseImportSpec(doc *ast.CommentGroup, _ token.Token, _ int) ast.Spec {
		parser.go#L2330: func (p *parser) parseValueSpec(doc *ast.CommentGroup, keyword token.Token, iota int) ast.Spec {
		parser.go#L2377: func (p *parser) parseTypeSpec(doc *ast.CommentGroup, _ token.Token, _ int) ast.Spec {

	go/printer
		nodes.go#L72: func (p *printer) setComment(g *ast.CommentGroup) {
		nodes.go#L78: 		p.comments = make([]*ast.CommentGroup, 1)
		nodes.go#L436: 	p.setComment(&ast.CommentGroup{List: []*ast.Comment{{Slash: token.NoPos, Text: text}}})
		printer.go#L47: 	comment        *ast.CommentGroup // = printer.comments[cindex]; or nil
		printer.go#L80: 	comments        []*ast.CommentGroup // may be nil
		printer.go#L1031: func getDoc(n ast.Node) *ast.CommentGroup {
		printer.go#L1051: func getLastComment(n ast.Node) *ast.CommentGroup {
		printer.go#L1075: 	var comments []*ast.CommentGroup
		printer.go#L1358: 	Comments []*ast.CommentGroup

	golang.org/x/pkgsite/internal/godoc
		encode_ast.gen.go#L834: func encode_ast_CommentGroup(e *codec.Encoder, x *ast.CommentGroup) {
		encode_ast.gen.go#L845: func decode_ast_CommentGroup(d *codec.Decoder, p **ast.CommentGroup) {
		encode_ast.gen.go#L851: 		*p = ref.(*ast.CommentGroup)
		encode_ast.gen.go#L854: 	var x ast.CommentGroup
		encode_ast.gen.go#L872: 	codec.Register(&ast.CommentGroup{},
		encode_ast.gen.go#L873: 		func(e *codec.Encoder, x interface{}) { encode_ast_CommentGroup(e, x.(*ast.CommentGroup)) },
		encode_ast.gen.go#L875: 			var x *ast.CommentGroup
		encode_ast.gen.go#L4031: func encode_slice_ast_CommentGroup(e *codec.Encoder, s []*ast.CommentGroup) {
		encode_ast.gen.go#L4042: func decode_slice_ast_CommentGroup(d *codec.Decoder, p *[]*ast.CommentGroup) {
		encode_ast.gen.go#L4047: 	s := make([]*ast.CommentGroup, n)
		encode_ast.gen.go#L4055: 	codec.Register([]*ast.CommentGroup(nil),
		encode_ast.gen.go#L4056: 		func(e *codec.Encoder, x interface{}) { encode_slice_ast_CommentGroup(e, x.([]*ast.CommentGroup)) },
		encode_ast.gen.go#L4058: 			var x []*ast.CommentGroup

	golang.org/x/pkgsite/internal/godoc/dochtml/internal/render
		linkify.go#L535: func (v *rewriteVisitor) rewriteLongValue(n ast.Node, pcg **ast.CommentGroup) {
		linkify.go#L563: func addComment(cg **ast.CommentGroup, pos token.Pos, text string) {
		linkify.go#L565: 		*cg = &ast.CommentGroup{}

	golang.org/x/pkgsite/internal/godoc/internal/doc
		example.go#L28: 	Comments    []*ast.CommentGroup
		example.go#L116: func exampleOutput(b *ast.BlockStmt, comments []*ast.CommentGroup) (output string, unordered, ok bool) {
		example.go#L241: 	var comments []*ast.CommentGroup
		example.go#L531: func stripOutputComment(body *ast.BlockStmt, comments []*ast.CommentGroup) (*ast.BlockStmt, []*ast.CommentGroup) {
		example.go#L544: 	newComments := make([]*ast.CommentGroup, len(comments)-1)
		example.go#L551: func lastComment(b *ast.BlockStmt, c []*ast.CommentGroup) (i int, last *ast.CommentGroup) {
		reader.go#L218: func (r *reader) readDoc(comment *ast.CommentGroup) {
		reader.go#L455: 	text := (&ast.CommentGroup{List: list}).Text()
		reader.go#L480: func (r *reader) readNotes(comments []*ast.CommentGroup) {