go/ast.Comment.Slash (field)
13 uses
go/ast (current package)
ast.go#L65: Slash token.Pos // position of "/" starting the comment
ast.go#L69: func (c *Comment) Pos() token.Pos { return c.Slash }
ast.go#L70: func (c *Comment) End() token.Pos { return token.Pos(int(c.Slash) + len(c.Text)) }
import.go#L226: c.Slash = pos[i].Start - 1
import.go#L232: c.Slash = pos[i].End
go/build
read.go#L500: info.directives = append(info.directives, Directive{c.Text, info.fset.Position(c.Slash)})
go/parser
parser.go#L178: comment = &ast.Comment{Slash: p.pos, Text: p.lit}
go/printer
comment.go#L69: slash := list[0].Slash
comment.go#L72: Slash: slash,
comment.go#L91: Slash: slash,
comment.go#L97: Slash: slash,
comment.go#L102: Slash: slash,
nodes.go#L490: p.setComment(&ast.CommentGroup{List: []*ast.Comment{{Slash: token.NoPos, Text: text}}})
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64)