type golang.org/x/mod/modfile.Comment
23 uses
golang.org/x/mod/modfile (current package)
print.go#L31: comment []Comment // pending end-of-line comments
read.go#L52: type Comment struct {
read.go#L60: Before []Comment // whole-line comments before this expression
read.go#L61: Suffix []Comment // end-of-line comments after this expression
read.go#L65: After []Comment
read.go#L251: func commentsAdd(x, y []Comment) []Comment {
read.go#L333: comments []Comment // accumulated comments
read.go#L546: in.comments = append(in.comments, Comment{in.token.pos, in.token.text, suffix})
read.go#L680: var line, suffix []Comment
read.go#L766: func reverseComments(list []Comment) {
read.go#L789: com.Before = append(com.Before, Comment{Start: tok.pos, Token: tok.text})
read.go#L859: var comments []Comment
read.go#L869: comments = append(comments, Comment{})
read.go#L873: comments = append(comments, Comment{Start: tok.pos, Token: tok.text})
read.go#L880: if len(comments) == 1 && comments[0] == (Comment{}) {
rule.go#L163: line.Suffix = []Comment{{Token: "// indirect", Suffix: true}}
rule.go#L228: Before: []Comment{
rule.go#L904: groups := [][]Comment{comments.Before, comments.Suffix}
rule.go#L1348: directBlockComments []Comment
rule.go#L1349: indirectBlockComments []Comment
rule.go#L1405: *target = append(*target, Comment{Token: "//"})
rule.go#L1646: com := Comment{Token: "// " + line}