go/ast.File.Comments (field)

19 uses

	go/ast (current package)
		ast.go#L1058: 	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#L318: 	for _, c := range file.Comments {
		example.go#L381: 		Comments: comments,
		example.go#L389: 	comments := file.Comments
		example.go#L411: 	f.Comments = comments
		reader.go#L617: 	r.readNotes(src.Comments)
		reader.go#L619: 		src.Comments = nil // consumed unassociated comments - remove from AST

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

	go/printer
		printer.go#L1071: 		if len(n.Comments) > 0 {
		printer.go#L1072: 			return n.Comments[len(n.Comments)-1]
		printer.go#L1121: 		p.comments = n.Comments