golang.org/x/mod/modfile.Comments.Before (field)

34 uses

	golang.org/x/mod/modfile (current package)
		print.go#L91: 	for _, com := range f.Before {
		print.go#L120: 	if before := x.Comment().Before; len(before) > 0 {
		read.go#L60: 	Before []Comment // whole-line comments before this expression
		read.go#L228: 			if ww == 1 && len(stmt.RParen.Comments.Before) == 0 {
		read.go#L233: 						Before: commentsAdd(stmt.Before, stmt.Line[0].Before),
		read.go#L706: 			xcom.Before = append(xcom.Before, line[0])
		read.go#L762: 	in.file.Before = append(in.file.Before, suffix...)
		read.go#L789: 			com.Before = append(com.Before, Comment{Start: tok.pos, Token: tok.text})
		read.go#L798: 				in.file.Stmt[len(in.file.Stmt)-1].Comment().Before = cb.Before
		read.go#L883: 			x.RParen.Before = comments
		read.go#L893: 			l.Comment().Before = comments
		rule.go#L138: 			if len(line.Comments.Before) == 1 && len(line.Comments.Before[0].Token) == 0 {
		rule.go#L139: 				line.Comments.Before = line.Comments.Before[:0]
		rule.go#L228: 			Before: []Comment{
		rule.go#L901: 	if block != nil && len(comments.Before) == 0 && len(comments.Suffix) == 0 {
		rule.go#L904: 	groups := [][]Comment{comments.Before, comments.Suffix}
		rule.go#L1290: 		return len(c.Before) > 0 || len(c.After) > 0 || len(c.Suffix) > 1 ||
		rule.go#L1404: 				if len(*target) > 0 && len(stmt.Comments.Before) > 0 {
		rule.go#L1407: 				*target = append(*target, stmt.Comments.Before...)
		rule.go#L1408: 				stmt.Comments.Before = nil
		rule.go#L1470: 			lastDirectBlock.Comments.Before = append(lastDirectBlock.Comments.Before, directBlockComments...)
		rule.go#L1473: 			lastIndirectBlock.Comments.Before = append(lastIndirectBlock.Comments.Before, indirectBlockComments...)
		rule.go#L1647: 			r.Syntax.Comment().Before = append(r.Syntax.Comment().Before, com)