Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 102 for MapType (0.13 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/compilation_test.go

    					Generic: schema.Generic{
    						Type: mapType,
    					},
    				}},
    			},
    			ValueValidation: &schema.ValueValidation{
    				MaxItems: maxItems,
    			},
    			ValidationExtensions: schema.ValidationExtensions{
    				XValidations: apiextensions.ValidationRules{
    					{
    						Rule: rule,
    					},
    				},
    			},
    		}
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 51.5K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/syntax/nodes.go

    	InterfaceType struct {
    		MethodList []*Field
    		expr
    	}
    
    	FuncType struct {
    		ParamList  []*Field
    		ResultList []*Field
    		expr
    	}
    
    	// map[Key]Value
    	MapType struct {
    		Key, Value Expr
    		expr
    	}
    
    	//   chan Elem
    	// <-chan Elem
    	// chan<- Elem
    	ChanType struct {
    		Dir  ChanDir // 0 means no direction
    		Elem Expr
    		expr
    	}
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 14:52:38 UTC 2023
    - 9K bytes
    - Viewed (0)
  3. 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)
  4. src/cmd/compile/internal/syntax/nodes_test.go

    	{"ArrayType", `@[10]T`},
    	{"ArrayType", `@[...]T`},
    
    	{"SliceType", `@[]T`},
    	{"DotsType", `@...T`},
    	{"StructType", `@struct{}`},
    	{"InterfaceType", `@interface{}`},
    	{"FuncType", `func@()`},
    	{"MapType", `@map[T]T`},
    
    	{"ChanType", `@chan T`},
    	{"ChanType", `@chan<- T`},
    	{"ChanType", `@<-chan T`},
    }
    
    var fields = []test{
    	{"Field", `@T`},
    	{"Field", `@(T)`},
    	{"Field", `@x T`},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 02 18:45:06 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  5. 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)
  6. src/cmd/vendor/golang.org/x/tools/go/types/objectpath/objectpath.go

    			}
    			t = hasElem.Elem()
    
    		case opKey:
    			mapType, ok := t.(*types.Map)
    			if !ok {
    				return nil, fmt.Errorf("cannot apply %q to %s (got %T, want map)", code, t, t)
    			}
    			t = mapType.Key()
    
    		case opParams:
    			sig, ok := t.(*types.Signature)
    			if !ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  7. src/go/printer/testdata/parser.go

    }
    
    func (p *parser) parseMapType() *ast.MapType {
    	if p.trace {
    		defer un(trace(p, "MapType"))
    	}
    
    	pos := p.expect(token.MAP)
    	p.expect(token.LBRACK)
    	key := p.parseType()
    	p.expect(token.RBRACK)
    	value := p.parseType()
    
    	return &ast.MapType{pos, key, value}
    }
    
    func (p *parser) parseChanType() *ast.ChanType {
    	if p.trace {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 20:19:51 UTC 2023
    - 50.5K bytes
    - Viewed (0)
  8. src/reflect/type.go

    }
    
    func (t *interfaceType) common() *abi.Type {
    	return &t.Type
    }
    
    func (t *interfaceType) uncommon() *abi.UncommonType {
    	return t.Uncommon()
    }
    
    // mapType represents a map type.
    type mapType struct {
    	abi.MapType
    }
    
    // ptrType represents a pointer type.
    type ptrType struct {
    	abi.PtrType
    }
    
    // sliceType represents a slice type.
    type sliceType struct {
    	abi.SliceType
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 85.5K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top