go/constant.Value.Kind (method)
32 uses
go/constant (current package)
value.go#L49: Kind() Kind
value.go#L317: if re.Kind() == Unknown || im.Kind() == Unknown {
value.go#L888: if re := ToFloat(x); re.Kind() == Float {
go/types
builtins.go#L764: if x.val.Kind() != constant.Bool {
expr.go#L93: if x.val.Kind() == constant.Unknown {
expr.go#L112: if x.val.Kind() == constant.Int && constant.BitLen(x.val) > prec {
expr.go#L206: if x.val.Kind() == constant.Unknown {
expr.go#L278: if x.Kind() == constant.Unknown {
expr.go#L290: if x.Kind() != constant.Int {
expr.go#L345: if x.Kind() != constant.Float {
expr.go#L375: if x.Kind() != constant.Complex {
expr.go#L406: return x.Kind() == constant.String
expr.go#L409: return x.Kind() == constant.Bool
expr.go#L904: if allInteger(x.typ) || isUntyped(x.typ) && xval != nil && xval.Kind() == constant.Int {
expr.go#L922: if yval.Kind() == constant.Int && constant.Sign(yval) < 0 {
expr.go#L964: if x.val.Kind() == constant.Unknown || y.val.Kind() == constant.Unknown {
expr.go#L1163: if x.val.Kind() == constant.Unknown || y.val.Kind() == constant.Unknown {
expr.go#L1660: switch x.Kind() {
index.go#L361: if x.val.Kind() == constant.Unknown {
operand.go#L213: if val.Kind() == constant.Unknown {
stmt.go#L205: switch val.Kind() {
typexpr.go#L524: if val := constant.ToInt(x.val); val.Kind() == constant.Int {
golang.org/x/tools/internal/gcimporter
bexport.go#L564: switch x.Kind() {
bexport.go#L607: if x.Kind() != constant.Float {
bexport.go#L623: } else if num, denom := constant.Num(x), constant.Denom(x); num.Kind() == constant.Int {
iexport.go#L913: w.int64(int64(v.Kind()))
iexport.go#L958: } else if num, denom := constant.Num(x), constant.Denom(x); num.Kind() == constant.Int {
golang.org/x/tools/internal/pkgbits
encoder.go#L340: if w.Bool(val.Kind() == constant.Complex) {
encoder.go#L351: errorf("unhandled %v (%v)", val, val.Kind())
The pages are generated with Golds v0.4.9. (GOOS=linux GOARCH=amd64)