- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 50 for MapType (0.16 sec)
-
staging/src/k8s.io/apiserver/pkg/cel/common/values.go
} func (t *unstructuredMap) ConvertToType(typeValue ref.Type) ref.Val { switch typeValue { case types.MapType: return t case types.TypeType: return types.MapType } return types.NewErr("type conversion error from '%s' to '%s'", t.Type(), typeValue.TypeName()) } func (t *unstructuredMap) Equal(other ref.Val) ref.Val {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 23 22:30:17 UTC 2023 - 20.5K bytes - Viewed (0) -
src/go/internal/gcimporter/iimport.go
pkg *types.Package name string } const predeclReserved = 32 type itag uint64 const ( // Types definedType itag = iota pointerType sliceType arrayType chanType mapType signatureType structType interfaceType typeParamType instanceType unionType ) // iImportData imports a package from the serialized package data
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 19.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/value_test.go
{uint64(63), types.UintType}, {time.Duration(300), types.DurationType}, {time.Now().UTC(), types.TimestampType}, {types.NullValue, types.NullType}, {NewListValue(), types.ListType}, {NewMapValue(), types.MapType}, {[]byte("bytes"), types.BytesType}, {NewObjectValue(objType), objType}, } for i, tc := range tests { idx := i tst := tc t.Run(fmt.Sprintf("[%d]", i), func(t *testing.T) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 10 22:05:55 UTC 2022 - 10.4K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/types/objectpath/objectpath.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 23.1K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/analysisinternal/analysis.go
return &ast.ArrayType{ Elt: elt, } case *types.Map: key := TypeExpr(f, pkg, t.Key()) value := TypeExpr(f, pkg, t.Elem()) if key == nil || value == nil { return nil } return &ast.MapType{ Key: key, Value: value, } case *types.Chan: dir := ast.ChanDir(t.Dir()) if t.Dir() == types.SendRecv { dir = ast.SEND | ast.RECV } value := TypeExpr(f, pkg, t.Elem())
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 11.7K bytes - Viewed (0) -
src/encoding/gob/decode.go
case reflect.Map: if !ok || wire.MapT == nil { return false } MapType := wire.MapT return dec.compatibleType(t.Key(), MapType.Key, inProgress) && dec.compatibleType(t.Elem(), MapType.Elem, inProgress) case reflect.Slice: // Is it an array of bytes? if t.Elem().Kind() == reflect.Uint8 { return fw == tBytes }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 07 19:10:23 UTC 2023 - 40.1K bytes - Viewed (0) -
src/go/internal/gccgoimporter/parser.go
return t } t := new(types.Array) p.update(t, nlist) len := p.parseInt64() p.expect(']') *t = *types.NewArray(p.parseType(pkg), len) return t } // MapType = "map" "[" Type "]" Type . func (p *parser) parseMapType(pkg *types.Package, nlist []any) types.Type { p.expectKeyword("map") t := new(types.Map) p.update(t, nlist) p.expect('[')
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 02 23:14:07 UTC 2024 - 31.2K bytes - Viewed (0) -
src/cmd/compile/internal/types/fmt.go
default: b.WriteByte(' ') formatParams(b, t.Results(), mode, visited) } case TSTRUCT: if m := t.StructType().Map; m != nil { mt := m.MapType() // Format the bucket struct for map[x]y as map.bucket[x]y. // This avoids a recursive print that generates very long names. switch t { case mt.Bucket: b.WriteString("map.bucket[") default:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 12 15:41:17 UTC 2023 - 15.7K bytes - Viewed (0) -
src/cmd/cgo/ast.go
} f.walk(n.Params, ctxParam, visit) if n.Results != nil { f.walk(n.Results, ctxParam, visit) } case *ast.InterfaceType: f.walk(n.Methods, ctxField, visit) case *ast.MapType: f.walk(&n.Key, ctxType, visit) f.walk(&n.Value, ctxType, visit) case *ast.ChanType: f.walk(&n.Value, ctxType, visit) case *ast.BadStmt: case *ast.DeclStmt: f.walk(n.Decl, ctxDecl, visit)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 07 16:54:27 UTC 2023 - 14.3K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/ast/astutil/rewrite.go
a.apply(n, "TypeParams", nil, tparams) } a.apply(n, "Params", nil, n.Params) a.apply(n, "Results", nil, n.Results) case *ast.InterfaceType: a.apply(n, "Methods", nil, n.Methods) case *ast.MapType: a.apply(n, "Key", nil, n.Key) a.apply(n, "Value", nil, n.Value) case *ast.ChanType: a.apply(n, "Value", nil, n.Value) // Statements case *ast.BadStmt: // nothing to do
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 18 21:28:13 UTC 2023 - 12.2K bytes - Viewed (0)