golang.org/x/mod/modfile.Comment.Token (field)
28 uses
golang.org/x/mod/modfile (current package)
print.go#L62: p.printf("%s", strings.TrimSpace(com.Token))
print.go#L92: p.printf("%s", strings.TrimSpace(com.Token))
print.go#L108: p.printf("%s", strings.TrimSpace(com.Token))
print.go#L133: p.printf("%s", strings.TrimSpace(com.Token))
read.go#L54: Token string // without trailing newline
read.go#L691: fmt.Fprintf(os.Stderr, "LINE %q :%d:%d #%d\n", c.Token, c.Start.Line, c.Start.LineRune, c.Start.Byte)
read.go#L704: fmt.Fprintf(os.Stderr, "ASSIGN LINE %q #%d\n", line[0].Token, line[0].Start.Byte)
read.go#L716: fmt.Fprintf(os.Stderr, "SUFFIX %q :%d:%d #%d\n", c.Token, c.Start.Line, c.Start.LineRune, c.Start.Byte)
read.go#L747: fmt.Fprintf(os.Stderr, "ASSIGN SUFFIX %q #%d\n", suffix[len(suffix)-1].Token, suffix[len(suffix)-1].Start.Byte)
read.go#L789: com.Before = append(com.Before, Comment{Start: tok.pos, Token: tok.text})
read.go#L868: if len(comments) == 0 && len(x.Line) > 0 || len(comments) > 0 && comments[len(comments)-1].Token != "" {
read.go#L873: comments = append(comments, Comment{Start: tok.pos, Token: tok.text})
rule.go#L138: if len(line.Comments.Before) == 1 && len(line.Comments.Before[0].Token) == 0 {
rule.go#L163: line.Suffix = []Comment{{Token: "// indirect", Suffix: true}}
rule.go#L168: text := strings.TrimSpace(strings.TrimPrefix(com.Token, string(slashSlash)))
rule.go#L171: com.Token = "// indirect"
rule.go#L176: com.Token = "// indirect; " + text
rule.go#L181: f := strings.TrimSpace(strings.TrimPrefix(line.Suffix[0].Token, string(slashSlash)))
rule.go#L190: i := strings.Index(com.Token, "indirect;")
rule.go#L191: com.Token = "//" + com.Token[i+len("indirect;"):]
rule.go#L202: f := strings.Fields(strings.TrimPrefix(line.Suffix[0].Token, string(slashSlash)))
rule.go#L230: Token: text,
rule.go#L908: if !strings.HasPrefix(c.Token, "//") {
rule.go#L911: lines = append(lines, strings.TrimSpace(strings.TrimPrefix(c.Token, "//")))
rule.go#L1292: strings.TrimSpace(strings.TrimPrefix(c.Suffix[0].Token, string(slashSlash))) != "indirect")
rule.go#L1405: *target = append(*target, Comment{Token: "//"})
rule.go#L1646: com := Comment{Token: "// " + line}