go/ast.Comment.Slash (field)
17 uses
go/ast (current package)
ast.go#L69: Slash token.Pos // position of "/" starting the comment
ast.go#L73: func (c *Comment) Pos() token.Pos { return c.Slash }
ast.go#L74: func (c *Comment) End() token.Pos { return token.Pos(int(c.Slash) + len(c.Text)) }
import.go#L230: c.Slash = pos[i].Start - 1
import.go#L236: c.Slash = pos[i].End
go/build
read.go#L361: info.directives = append(info.directives, Directive{c.Text, info.fset.Position(c.Slash)})
go/parser
parser.go#L198: 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}}})
go.pact.im/x/plumb/internal/discover
discover.go#L45: d, ok := ast.ParseDirective(c.Slash, c.Text)
discover.go#L186: d, ok := ast.ParseDirective(c.Slash, c.Text)
discover.go#L353: if d, ok := ast.ParseDirective(c.Slash, c.Text); ok && d.Tool == "plumb" {
discover.go#L614: if d, ok := ast.ParseDirective(c.Slash, c.Text); ok && d.Tool == "plumb" {