go/ast.Comment.Pos (method, view implemented interface methods)
17 uses
go/ast (current package)
ast.go#L73: func (c *Comment) Pos() token.Pos { return c.Slash }
ast.go#L82: func (g *CommentGroup) Pos() token.Pos { return g.List[0].Pos() }
ast.go#L1127: if comment.Pos() > file.Package {
go/doc
reader.go#L529: Pos: list[0].Pos(),
go/printer
nodes.go#L78: p.flush(p.posFor(g.List[0].Pos()), token.ILLEGAL)
printer.go#L112: line := p.lineFor(list[0].Pos())
printer.go#L114: if i > 0 && p.lineFor(list[i].Pos()) != line {
printer.go#L132: p.commentOffset = p.posFor(list[0].Pos()).Offset
printer.go#L631: pos := p.posFor(comment.Pos())
printer.go#L763: p.writeCommentPrefix(p.posFor(c.Pos()), next, last, tok)
printer.go#L790: last.Text[1] == '*' && p.lineFor(last.Pos()) == next.Line &&
go.pact.im/x/plumb/internal/discover
discover.go#L54: return nil, diag.Errorf(diag.PosIn(fset, c.Pos()), diag.ErrInvalidSetName,
discover.go#L58: return nil, diag.Errorf(diag.PosIn(fset, c.Pos()), diag.ErrInvalidSetName,
discover.go#L65: return nil, diag.Errorf(diag.PosIn(fset, c.Pos()), diag.ErrDuplicateDirective,
discover.go#L190: return diag.Errorf(diag.PosIn(pkg.Fset, c.Pos()), diag.ErrMisplacedDirective,
discover.go#L354: return nil, diag.Errorf(diag.PosIn(pkg.Fset, c.Pos()), diag.ErrMisplacedDirective,
discover.go#L592: return nil, diag.Errorf(diag.PosIn(pkg.Fset, c.Pos()), diag.ErrInvalidType, "declaration of %s did not type-check; cannot wire its members", s.Name.Name)