go/ast.Ident.NamePos (field)
20 uses
go/ast (current package)
ast.go#L279: NamePos token.Pos // identifier position
ast.go#L470: func (x *Ident) Pos() token.Pos { return x.NamePos }
ast.go#L503: func (x *Ident) End() token.Pos { return token.Pos(int(x.NamePos) + len(x.Name)) }
import.go#L206: s.Name.NamePos = pos[i].Start
go/doc
exports.go#L240: return &ast.Ident{Name: typ.Name, NamePos: pos}
exports.go#L246: X: &ast.Ident{Name: id.Name, NamePos: pos},
reader.go#L618: newIdent := &ast.Ident{NamePos: origPos, Name: recvTypeName}
reader.go#L621: newIdent.NamePos++ // '*' is one character
go/parser
parser.go#L555: return &ast.Ident{NamePos: pos, Name: name}
parser.go#L697: ident = &ast.Ident{NamePos: x.Pos(), Name: "_"}
parser.go#L1496: sel := &ast.Ident{NamePos: pos, Name: "_"}
parser.go#L2299: ident = &ast.Ident{NamePos: p.pos, Name: "."}
golang.org/x/pkgsite/internal/godoc
encode_ast.gen.go#L1808: if x.NamePos != 0 {
encode_ast.gen.go#L1810: e.EncodeInt(int64(x.NamePos))
encode_ast.gen.go#L1841: x.NamePos = token.Pos(d.DecodeInt())
golang.org/x/pkgsite/internal/godoc/internal/doc
example.go#L489: s.Name.NamePos = pos
exports.go#L240: return &ast.Ident{Name: typ.Name, NamePos: pos}
exports.go#L246: X: &ast.Ident{Name: id.Name, NamePos: pos},
reader.go#L622: newIdent := &ast.Ident{NamePos: origPos, Name: recvTypeName}
reader.go#L625: newIdent.NamePos++ // '*' is one character
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |