type go/ast.CommentGroup

71 uses

	go/ast (current package)
		ast.go#L74: type CommentGroup struct {
		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#L97: 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#L899: 		Doc     *CommentGroup // associated documentation; or nil
		ast.go#L902: 		Comment *CommentGroup // line comments; or nil
		ast.go#L910: 		Doc     *CommentGroup // associated documentation; or nil
		ast.go#L914: 		Comment *CommentGroup // line comments; or nil
		ast.go#L919: 		Doc        *CommentGroup // associated documentation; or nil
		ast.go#L924: 		Comment    *CommentGroup // line comments; or nil
		ast.go#L985: 		Doc    *CommentGroup // associated documentation; or nil
		ast.go#L995: 		Doc  *CommentGroup // associated documentation; or nil
		ast.go#L1054: 	Doc     *CommentGroup // associated documentation; or nil
		ast.go#L1063: 	Comments           []*CommentGroup // list of all comments in the source file
		commentmap.go#L17: func sortComments(list []*CommentGroup) {
		commentmap.go#L18: 	slices.SortFunc(list, func(a, b *CommentGroup) int {
		commentmap.go#L26: type CommentMap map[Node][]*CommentGroup
		commentmap.go#L28: func (cmap CommentMap) addComment(n Node, c *CommentGroup) {
		commentmap.go#L31: 		list = []*CommentGroup{c}
		commentmap.go#L44: 		case nil, *CommentGroup, *Comment:
		commentmap.go#L69: 	list     []*CommentGroup
		commentmap.go#L71: 	comment  *CommentGroup  // comment group at current index
		commentmap.go#L127: func NewCommentMap(fset *token.FileSet, node Node, comments []*CommentGroup) CommentMap {
		commentmap.go#L135: 	tmp := make([]*CommentGroup, len(comments))
		commentmap.go#L253: func (cmap CommentMap) Comments() []*CommentGroup {
		commentmap.go#L254: 	list := make([]*CommentGroup, 0, len(cmap))
		commentmap.go#L262: func summary(list []*CommentGroup) string {
		filter.go#L366: 	var doc *CommentGroup
		filter.go#L391: 		doc = &CommentGroup{list}
		filter.go#L483: 	var comments []*CommentGroup
		filter.go#L485: 		comments = make([]*CommentGroup, ncomments)
		import.go#L109: 	cg   *CommentGroup
		import.go#L156: 	var comments []*CommentGroup
		import.go#L238: 	slices.SortFunc(comments, func(a, b *CommentGroup) int {
		walk.go#L46: 	case *CommentGroup:

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

	go/doc
		example.go#L29: 	Comments    []*ast.CommentGroup
		example.go#L117: func exampleOutput(b *ast.BlockStmt, comments []*ast.CommentGroup) (output string, unordered, ok bool) {
		example.go#L261: 	var comments []*ast.CommentGroup
		example.go#L316: 	slices.SortFunc(comments, func(a, b *ast.CommentGroup) int {
		example.go#L576: func stripOutputComment(body *ast.BlockStmt, comments []*ast.CommentGroup) (*ast.BlockStmt, []*ast.CommentGroup) {
		example.go#L589: 	newComments := make([]*ast.CommentGroup, len(comments)-1)
		example.go#L596: func lastComment(b *ast.BlockStmt, c []*ast.CommentGroup) (i int, last *ast.CommentGroup) {
		reader.go#L244: func (r *reader) readDoc(comment *ast.CommentGroup) {
		reader.go#L519: 	text := (&ast.CommentGroup{List: list}).Text()
		reader.go#L543: func (r *reader) readNotes(comments []*ast.CommentGroup) {

	go/parser
		parser.go#L39: 	comments    []*ast.CommentGroup
		parser.go#L40: 	leadComment *ast.CommentGroup // last lead comment
		parser.go#L41: 	lineComment *ast.CommentGroup // last line comment
		parser.go#L188: func (p *parser) consumeCommentGroup(n int) (comments *ast.CommentGroup, endline int) {
		parser.go#L198: 	comments = &ast.CommentGroup{List: list}
		parser.go#L225: 		var comment *ast.CommentGroup
		parser.go#L333: func (p *parser) expectSemi() (comment *ast.CommentGroup) {
		parser.go#L2487: type parseSpecFunction func(doc *ast.CommentGroup, keyword token.Token, iota int) ast.Spec
		parser.go#L2489: func (p *parser) parseImportSpec(doc *ast.CommentGroup, _ token.Token, _ int) ast.Spec {
		parser.go#L2529: func (p *parser) parseValueSpec(doc *ast.CommentGroup, keyword token.Token, iota int) ast.Spec {
		parser.go#L2588: func (p *parser) parseTypeSpec(doc *ast.CommentGroup, _ token.Token, _ int) ast.Spec {

	go/printer
		nodes.go#L67: func (p *printer) setComment(g *ast.CommentGroup) {
		nodes.go#L73: 		p.comments = make([]*ast.CommentGroup, 1)
		nodes.go#L490: 	p.setComment(&ast.CommentGroup{List: []*ast.Comment{{Slash: token.NoPos, Text: text}}})
		printer.go#L49: 	comment        *ast.CommentGroup // = printer.comments[cindex-1]; or nil
		printer.go#L85: 	comments        []*ast.CommentGroup // may be nil
		printer.go#L1049: func getDoc(n ast.Node) *ast.CommentGroup {
		printer.go#L1069: func getLastComment(n ast.Node) *ast.CommentGroup {
		printer.go#L1093: 	var comments []*ast.CommentGroup
		printer.go#L1416: 	Comments []*ast.CommentGroup