type go/ast.Ident
119 uses
go/ast (current package)
ast.go#L199: Names []*Ident // field/method/parameter names; or nil
ast.go#L278: Ident struct {
ast.go#L330: Sel *Ident // field selector
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)) }
ast.go#L539: func (*Ident) exprNode() {}
ast.go#L568: func NewIdent(name string) *Ident { return &Ident{token.NoPos, name, nil} }
ast.go#L576: func (id *Ident) IsExported() bool { return token.IsExported(id.Name) }
ast.go#L578: func (id *Ident) String() string {
ast.go#L616: Label *Ident
ast.go#L676: Label *Ident // label name; or nil
ast.go#L880: Name *Ident // local package name (including "."); or nil
ast.go#L891: Names []*Ident // value names (len(Names) > 0)
ast.go#L900: Name *Ident // type name
ast.go#L978: Name *Ident // function/method name
ast.go#L1036: Name *Ident // package name
ast.go#L1040: Unresolved []*Ident // unresolved identifiers in this file
commentmap.go#L323: if ident, ok := node.(*Ident); ok {
filter.go#L48: func filterIdentList(list []*Ident, f Filter) []*Ident {
filter.go#L63: func fieldName(x Expr) *Ident {
filter.go#L65: case *Ident:
filter.go#L68: if _, ok := t.X.(*Ident); ok {
filter.go#L127: if x, ok := x.Key.(*Ident); ok && !filter(x.Name) {
filter.go#L155: case *Ident:
filter.go#L328: if p, _ := t.(*Ident); p != nil {
resolve.go#L44: func resolve(scope *Scope, ident *Ident) bool {
scope.go#L126: if ident, isIdent := x.(*Ident); isIdent && ident.Name == name {
walk.go#L18: func walkIdentList(v Visitor, list []*Ident) {
walk.go#L88: case *BadExpr, *Ident, *BasicLit:
go/doc
example.go#L199: case *ast.Ident:
exports.go#L17: func filterIdentList(list []*ast.Ident) []*ast.Ident {
exports.go#L45: if x, ok := x.Key.(*ast.Ident); ok && !filter(x.Name) {
exports.go#L60: func updateIdentList(list []*ast.Ident) (hasExported bool) {
exports.go#L73: func hasExportedName(list []*ast.Ident) bool {
exports.go#L171: case *ast.Ident:
exports.go#L239: case *ast.Ident:
exports.go#L240: return &ast.Ident{Name: typ.Name, NamePos: pos}
exports.go#L242: if id, ok := typ.X.(*ast.Ident); ok {
exports.go#L246: X: &ast.Ident{Name: id.Name, NamePos: pos},
reader.go#L30: case *ast.Ident:
reader.go#L102: case *ast.Ident:
reader.go#L105: if _, ok := t.X.(*ast.Ident); ok {
reader.go#L618: newIdent := &ast.Ident{NamePos: origPos, Name: recvTypeName}
go/parser
interface.go#L106: Name: new(ast.Ident),
parser.go#L64: unresolved []*ast.Ident // unresolved identifiers
parser.go#L70: targetStack [][]*ast.Ident // stack of unresolved labels
parser.go#L119: func (p *parser) declare(decl, data interface{}, scope *ast.Scope, kind ast.ObjKind, idents ...*ast.Ident) {
parser.go#L146: if ident, isIdent := x.(*ast.Ident); isIdent {
parser.go#L180: ident, _ := x.(*ast.Ident)
parser.go#L546: func (p *parser) parseIdent() *ast.Ident {
parser.go#L555: return &ast.Ident{NamePos: pos, Name: name}
parser.go#L558: func (p *parser) parseIdentList() (list []*ast.Ident) {
parser.go#L688: func (p *parser) makeIdentList(list []ast.Expr) []*ast.Ident {
parser.go#L689: idents := make([]*ast.Ident, len(list))
parser.go#L691: ident, isIdent := x.(*ast.Ident)
parser.go#L697: ident = &ast.Ident{NamePos: x.Pos(), Name: "_"}
parser.go#L725: var idents []*ast.Ident
parser.go#L946: var idents []*ast.Ident
parser.go#L949: if ident, isIdent := x.(*ast.Ident); isIdent && p.tok == token.LPAREN {
parser.go#L951: idents = []*ast.Ident{ident}
parser.go#L1174: _, isIdent := typ.(*ast.Ident)
parser.go#L1380: case *ast.Ident:
parser.go#L1411: case *ast.Ident:
parser.go#L1413: _, isIdent := t.X.(*ast.Ident)
parser.go#L1425: case *ast.Ident:
parser.go#L1427: _, isIdent := t.X.(*ast.Ident)
parser.go#L1496: sel := &ast.Ident{NamePos: pos, Name: "_"}
parser.go#L1712: if label, isIdent := x[0].(*ast.Ident); mode == labelOk && isIdent {
parser.go#L1811: var label *ast.Ident
parser.go#L2296: var ident *ast.Ident
parser.go#L2299: ident = &ast.Ident{NamePos: p.pos, Name: "."}
go/printer
nodes.go#L108: func (p *printer) identList(list []*ast.Ident, indent bool) {
nodes.go#L404: func identListSize(list []*ast.Ident, maxSize int) (size int) {
nodes.go#L747: case *ast.Ident:
nodes.go#L1123: case *ast.Ident:
printer.go#L927: case *ast.Ident:
golang.org/x/pkgsite/internal/godoc
encode_ast.gen.go#L1804: func encode_ast_Ident(e *codec.Encoder, x *ast.Ident) {
encode_ast.gen.go#L1823: func decode_ast_Ident(d *codec.Decoder, p **ast.Ident) {
encode_ast.gen.go#L1829: *p = ref.(*ast.Ident)
encode_ast.gen.go#L1832: var x ast.Ident
encode_ast.gen.go#L1854: codec.Register(&ast.Ident{},
encode_ast.gen.go#L1855: func(e *codec.Encoder, x interface{}) { encode_ast_Ident(e, x.(*ast.Ident)) },
encode_ast.gen.go#L1857: var x *ast.Ident
encode_ast.gen.go#L3589: func encode_slice_ast_Ident(e *codec.Encoder, s []*ast.Ident) {
encode_ast.gen.go#L3600: func decode_slice_ast_Ident(d *codec.Decoder, p *[]*ast.Ident) {
encode_ast.gen.go#L3605: s := make([]*ast.Ident, n)
encode_ast.gen.go#L3613: codec.Register([]*ast.Ident(nil),
encode_ast.gen.go#L3614: func(e *codec.Encoder, x interface{}) { encode_slice_ast_Ident(e, x.([]*ast.Ident)) },
encode_ast.gen.go#L3615: func(d *codec.Decoder) interface{} { var x []*ast.Ident; decode_slice_ast_Ident(d, &x); return x })
golang.org/x/pkgsite/internal/godoc/dochtml
symbol.go#L74: vs.Names = []*ast.Ident{ident}
golang.org/x/pkgsite/internal/godoc/dochtml/internal/render
idents.go#L342: func nodeName(n ast.Node) (string, *ast.Ident) {
idents.go#L344: case *ast.Ident:
linkify.go#L390: if id, ok := node.(*ast.Ident); ok {
linkify.go#L596: func generateAnchorPoints(decl ast.Decl) map[*ast.Ident]idKind {
linkify.go#L597: m := map[*ast.Ident]idKind{}
linkify.go#L663: func generateAnchorLinks(idr *identifierResolver, decl ast.Decl) map[*ast.Ident]string {
linkify.go#L664: m := map[*ast.Ident]string{}
linkify.go#L673: if prefix, _ := node.X.(*ast.Ident); prefix != nil {
linkify.go#L686: case *ast.Ident:
synopsis.go#L154: case *ast.Ident:
golang.org/x/pkgsite/internal/godoc/internal/doc
example.go#L312: case *ast.Ident:
example.go#L443: if id, ok := n.(*ast.Ident); ok && id.Name == "iota" {
exports.go#L17: func filterIdentList(list []*ast.Ident) []*ast.Ident {
exports.go#L45: if x, ok := x.Key.(*ast.Ident); ok && !filter(x.Name) {
exports.go#L60: func updateIdentList(list []*ast.Ident) (hasExported bool) {
exports.go#L73: func hasExportedName(list []*ast.Ident) bool {
exports.go#L171: case *ast.Ident:
exports.go#L239: case *ast.Ident:
exports.go#L240: return &ast.Ident{Name: typ.Name, NamePos: pos}
exports.go#L242: if id, ok := typ.X.(*ast.Ident); ok {
exports.go#L246: X: &ast.Ident{Name: id.Name, NamePos: pos},
reader.go#L30: case *ast.Ident:
reader.go#L104: case *ast.Ident:
reader.go#L107: if _, ok := t.X.(*ast.Ident); ok {
reader.go#L622: newIdent := &ast.Ident{NamePos: origPos, Name: recvTypeName}
 |
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. |