type go/ast.Comment

33 uses

	go/ast (current package)
		ast.go#L65: type Comment struct {
		ast.go#L70: func (c *Comment) Pos() token.Pos { return c.Slash }
		ast.go#L71: func (c *Comment) End() token.Pos { return token.Pos(int(c.Slash) + len(c.Text)) }
		ast.go#L77: 	List []*Comment // len(List) > 0
		commentmap.go#L63: 		case nil, *CommentGroup, *Comment:
		filter.go#L339: var separator = &Comment{token.NoPos, "//"}
		filter.go#L371: 		list := make([]*Comment, ndocs-1) // -1: no separator before first group
		walk.go#L61: 	case *Comment:

	go/doc
		reader.go#L450: func (r *reader) readNote(list []*ast.Comment) {

	go/parser
		parser.go#L261: func (p *parser) consumeComment() (comment *ast.Comment, endline int) {
		parser.go#L274: 	comment = &ast.Comment{Slash: p.pos, Text: p.lit}
		parser.go#L286: 	var list []*ast.Comment
		parser.go#L289: 		var comment *ast.Comment

	go/printer
		nodes.go#L436: 	p.setComment(&ast.CommentGroup{List: []*ast.Comment{{Slash: token.NoPos, Text: text}}})
		printer.go#L115: func (p *printer) commentsHaveNewline(list []*ast.Comment) bool {
		printer.go#L353: func (p *printer) writeCommentPrefix(pos, next token.Position, prev *ast.Comment, tok token.Token) {
		printer.go#L638: func (p *printer) writeComment(comment *ast.Comment) {
		printer.go#L744: 	var last *ast.Comment

	golang.org/x/pkgsite/internal/godoc
		encode_ast.gen.go#L883: func encode_ast_Comment(e *codec.Encoder, x *ast.Comment) {
		encode_ast.gen.go#L898: func decode_ast_Comment(d *codec.Decoder, p **ast.Comment) {
		encode_ast.gen.go#L904: 		*p = ref.(*ast.Comment)
		encode_ast.gen.go#L907: 	var x ast.Comment
		encode_ast.gen.go#L927: 	codec.Register(&ast.Comment{},
		encode_ast.gen.go#L928: 		func(e *codec.Encoder, x interface{}) { encode_ast_Comment(e, x.(*ast.Comment)) },
		encode_ast.gen.go#L930: 			var x *ast.Comment
		encode_ast.gen.go#L3531: func encode_slice_ast_Comment(e *codec.Encoder, s []*ast.Comment) {
		encode_ast.gen.go#L3542: func decode_slice_ast_Comment(d *codec.Decoder, p *[]*ast.Comment) {
		encode_ast.gen.go#L3547: 	s := make([]*ast.Comment, n)
		encode_ast.gen.go#L3555: 	codec.Register([]*ast.Comment(nil),
		encode_ast.gen.go#L3556: 		func(e *codec.Encoder, x interface{}) { encode_slice_ast_Comment(e, x.([]*ast.Comment)) },
		encode_ast.gen.go#L3557: 		func(d *codec.Decoder) interface{} { var x []*ast.Comment; decode_slice_ast_Comment(d, &x); return x })

	golang.org/x/pkgsite/internal/godoc/dochtml/internal/render
		linkify.go#L567: 	(*cg).List = append((*cg).List, &ast.Comment{Slash: pos, Text: text})

	golang.org/x/pkgsite/internal/godoc/internal/doc
		reader.go#L454: func (r *reader) readNote(list []*ast.Comment) {