go/ast.KeyValueExpr.Key (field)
17 uses
go/ast (current package)
ast.go#L424: Key Expr
ast.go#L513: func (x *KeyValueExpr) Pos() token.Pos { return x.Key.Pos() }
filter.go#L124: if x, ok := x.Key.(*Ident); ok && !filter(x.Name) {
walk.go#L134: Walk(v, n.Key)
go/doc
exports.go#L44: if x, ok := x.Key.(*ast.Ident); ok && !filter(x.Name) {
go/parser
parser.go#L1659: x = &ast.KeyValueExpr{Key: x, Colon: colon, Value: p.parseValue()}
resolver.go#L291: if ident, _ := kv.Key.(*ast.Ident); ident != nil {
resolver.go#L294: ast.Walk(r, kv.Key)
go/printer
nodes.go#L214: size = p.nodeSize(pair.Key, infinity) // size <= infinity
nodes.go#L278: p.expr(pair.Key)
nodes.go#L831: p.expr(x.Key)
go/types
literals.go#L174: key, _ := kv.Key.(*ast.Ident)
literals.go#L179: check.errorf(kv, InvalidLitField, "invalid field name %s in struct literal", kv.Key)
literals.go#L189: check.error(kv.Key, MissingLitField, msg)
literals.go#L288: check.exprWithHint(x, kv.Key, utyp.key)
literals.go#L361: if typ, i := check.index(kv.Key, length); isValid(typ) {
literals.go#L366: check.errorf(e, InvalidLitIndex, "index %s must be integer constant", kv.Key)