Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 43 for MapType (0.15 sec)

  1. src/internal/reflectlite/type.go

    func (t rtype) In(i int) Type {
    	tt := t.Type.FuncType()
    	if tt == nil {
    		panic("reflect: In of non-func type")
    	}
    	return toType(tt.InSlice()[i])
    }
    
    func (t rtype) Key() Type {
    	tt := t.Type.MapType()
    	if tt == nil {
    		panic("reflect: Key of non-map type")
    	}
    	return toType(tt.Key)
    }
    
    func (t rtype) Len() int {
    	tt := t.Type.ArrayType()
    	if tt == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:01:54 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  2. src/go/types/typexpr.go

    		check.funcType(typ, nil, e)
    		return typ
    
    	case *ast.InterfaceType:
    		typ := check.newInterface()
    		setDefType(def, typ)
    		check.interfaceType(typ, e, def)
    		return typ
    
    	case *ast.MapType:
    		typ := new(Map)
    		setDefType(def, typ)
    
    		typ.key = check.varType(e.Key)
    		typ.elem = check.varType(e.Value)
    
    		// spec: "The comparison operators == and != must be fully defined
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  3. src/cmd/link/internal/ld/deadcode.go

    	case abi.Slice: // reflect.sliceType
    		off += arch.PtrSize
    	case abi.Array: // reflect.arrayType
    		off += 3 * arch.PtrSize
    	case abi.Chan: // reflect.chanType
    		off += 2 * arch.PtrSize
    	case abi.Map: // reflect.mapType
    		off += 4*arch.PtrSize + 8
    	case abi.Interface: // reflect.interfaceType
    		off += 3 * arch.PtrSize
    	default:
    		// just Sizeof(rtype)
    	}
    
    	mcount := int(decodeInuxi(arch, p[off+4:], 2))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 14:52:41 UTC 2024
    - 19K bytes
    - Viewed (0)
  4. src/go/types/expr.go

    		*ast.IndexExpr,
    		*ast.SliceExpr,
    		*ast.TypeAssertExpr,
    		*ast.StarExpr,
    		*ast.KeyValueExpr,
    		*ast.ArrayType,
    		*ast.StructType,
    		*ast.FuncType,
    		*ast.InterfaceType,
    		*ast.MapType,
    		*ast.ChanType:
    		// These expression are never untyped - nothing to do.
    		// The respective sub-expressions got their final types
    		// upon assignment or use.
    		if debug {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 49.7K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/expr.go

    		*syntax.AssertExpr,
    		*syntax.ListExpr,
    		//*syntax.StarExpr,
    		*syntax.KeyValueExpr,
    		*syntax.ArrayType,
    		*syntax.StructType,
    		*syntax.FuncType,
    		*syntax.InterfaceType,
    		*syntax.MapType,
    		*syntax.ChanType:
    		// These expression are never untyped - nothing to do.
    		// The respective sub-expressions got their final types
    		// upon assignment or use.
    		if debug {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 51.7K bytes
    - Viewed (0)
  6. src/runtime/export_test.go

    	// We should have a series of filled and emptyOne cells, followed by
    	// a series of emptyRest cells.
    	h := *(**hmap)(unsafe.Pointer(&m))
    	i := any(m)
    	t := *(**maptype)(unsafe.Pointer(&i))
    
    	for x := 0; x < 1<<h.B; x++ {
    		b0 := (*bmap)(add(h.buckets, uintptr(x)*uintptr(t.BucketSize)))
    		n := 0
    		for b := b0; b != nil; b = b.overflow(t) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
  7. src/cmd/cgo/gcc.go

    		// type that contains a pointer.
    		if unionWithPointer[t.X] {
    			return true
    		}
    		return p.hasPointer(f, t.X, false)
    	case *ast.FuncType, *ast.InterfaceType, *ast.MapType, *ast.ChanType:
    		return true
    	case *ast.Ident:
    		// TODO: Handle types defined within function.
    		for _, d := range p.Decl {
    			gd, ok := d.(*ast.GenDecl)
    			if !ok || gd.Tok != token.TYPE {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 97K bytes
    - Viewed (0)
  8. staging/src/k8s.io/api/core/v1/generated.proto

      // resources associated with PVC.
      //
      // This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature.
      // +featureGate=RecoverVolumeExpansionFailure
      // +mapType=granular
      // +optional
      map<string, string> allocatedResourceStatuses = 7;
    
      // currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 280.3K bytes
    - Viewed (0)
  9. staging/src/k8s.io/api/core/v1/types.go

    	// resources associated with PVC.
    	//
    	// This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature.
    	// +featureGate=RecoverVolumeExpansionFailure
    	// +mapType=granular
    	// +optional
    	AllocatedResourceStatuses map[ResourceName]ClaimResourceStatus `json:"allocatedResourceStatuses,omitempty" protobuf:"bytes,7,rep,name=allocatedResourceStatuses"`
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 390.8K bytes
    - Viewed (0)
  10. doc/go1.17_spec.html

    </p>
    
    <pre class="ebnf">
    Type      = TypeName | TypeLit | "(" Type ")" .
    TypeName  = identifier | QualifiedIdent .
    TypeLit   = ArrayType | StructType | PointerType | FunctionType | InterfaceType |
    	    SliceType | MapType | ChannelType .
    </pre>
    
    <p>
    The language <a href="#Predeclared_identifiers">predeclares</a> certain type names.
    Others are introduced with <a href="#Type_declarations">type declarations</a>.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
Back to top