go/ast.KeyValueExpr.Key (field)
17 uses
go/ast (current package)
ast.go#L428: Key Expr
ast.go#L517: func (x *KeyValueExpr) Pos() token.Pos { return x.Key.Pos() }
filter.go#L127: 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#L1689: 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#L175: key, _ := kv.Key.(*ast.Ident)
literals.go#L180: check.errorf(kv, InvalidLitField, "invalid field name %s in struct literal", kv.Key)
literals.go#L190: check.error(kv.Key, MissingLitField, msg)
literals.go#L289: check.exprWithHint(x, kv.Key, utyp.key)
literals.go#L362: if typ, i := check.index(kv.Key, length); isValid(typ) {
literals.go#L367: check.errorf(e, InvalidLitIndex, "index %s must be integer constant", kv.Key)