go/ast.Comment.Slash (field)
7 uses
go/ast (current package)
ast.go#L66: Slash token.Pos // position of "/" starting the comment
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)) }
import.go#L213: c.Slash = pos[i].Start - 1
import.go#L219: c.Slash = pos[i].End
go/parser
parser.go#L147: comment = &ast.Comment{Slash: p.pos, Text: p.lit}
go/printer
nodes.go#L475: p.setComment(&ast.CommentGroup{List: []*ast.Comment{{Slash: token.NoPos, Text: text}}})
The pages are generated with Golds v0.4.9. (GOOS=linux GOARCH=amd64)