go/ast.File.Comments (field)

30 uses

	go/ast (current package)
		ast.go#L1041: 	Comments   []*CommentGroup // list of all comments in the source file
		filter.go#L359: 		ncomments += len(f.Comments)
		filter.go#L491: 			i += copy(comments[i:], f.Comments)
		import.go#L127: 	first := len(f.Comments)
		import.go#L129: 	for i, g := range f.Comments {
		import.go#L147: 		comments = f.Comments[first : last+1]

	go/doc
		example.go#L84: 			output, unordered, hasOutput := exampleOutput(f.Body, file.Comments)
		example.go#L90: 				Comments:    file.Comments,
		example.go#L315: 	for _, c := range file.Comments {
		example.go#L378: 		Comments: comments,
		example.go#L386: 	comments := file.Comments
		example.go#L408: 	f.Comments = comments
		reader.go#L563: 	r.readNotes(src.Comments)
		reader.go#L565: 		src.Comments = nil // consumed unassociated comments - remove from AST

	go/parser
		parser.go#L2589: 		Comments:   p.comments,

	go/printer
		printer.go#L1066: 		if len(n.Comments) > 0 {
		printer.go#L1067: 			return n.Comments[len(n.Comments)-1]
		printer.go#L1116: 		p.comments = n.Comments

	golang.org/x/pkgsite/internal/godoc
		encode_ast.gen.go#L3912: 	if x.Comments != nil {
		encode_ast.gen.go#L3914: 		encode_slice_ast_CommentGroup(e, x.Comments)
		encode_ast.gen.go#L3951: 			decode_slice_ast_CommentGroup(d, &x.Comments)

	golang.org/x/pkgsite/internal/godoc/internal/doc
		example.go#L84: 			output, unordered, hasOutput := exampleOutput(f.Body, file.Comments)
		example.go#L90: 				Comments:    file.Comments,
		example.go#L249: 	for _, c := range file.Comments {
		example.go#L299: 		Comments: comments,
		example.go#L503: 	comments := file.Comments
		example.go#L525: 	f.Comments = comments
		reader.go#L567: 	r.readNotes(src.Comments)
		reader.go#L569: 		src.Comments = nil // consumed unassociated comments - remove from AST