Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 224 for nelem (0.04 sec)

  1. src/cmd/vendor/golang.org/x/tools/internal/analysisinternal/analysis.go

    		default:
    			return ast.NewIdent(t.Name())
    		}
    	case *types.Pointer:
    		x := TypeExpr(f, pkg, t.Elem())
    		if x == nil {
    			return nil
    		}
    		return &ast.UnaryExpr{
    			Op: token.MUL,
    			X:  x,
    		}
    	case *types.Array:
    		elt := TypeExpr(f, pkg, t.Elem())
    		if elt == nil {
    			return nil
    		}
    		return &ast.ArrayType{
    			Len: &ast.BasicLit{
    				Kind:  token.INT,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  2. src/internal/abi/type.go

    		}
    		return &(*u)(unsafe.Pointer(t)).u
    	}
    }
    
    // Elem returns the element type for t if t is an array, channel, map, pointer, or slice, otherwise nil.
    func (t *Type) Elem() *Type {
    	switch t.Kind() {
    	case Array:
    		tt := (*ArrayType)(unsafe.Pointer(t))
    		return tt.Elem
    	case Chan:
    		tt := (*ChanType)(unsafe.Pointer(t))
    		return tt.Elem
    	case Map:
    		tt := (*MapType)(unsafe.Pointer(t))
    		return tt.Elem
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 17 21:09:59 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  3. src/net/url/url.go

    func (u *URL) JoinPath(elem ...string) *URL {
    	elem = append([]string{u.EscapedPath()}, elem...)
    	var p string
    	if !strings.HasPrefix(elem[0], "/") {
    		// Return a relative path if u is relative,
    		// but ensure that it contains no ../ elements.
    		elem[0] = "/" + elem[0]
    		p = path.Join(elem...)[1:]
    	} else {
    		p = path.Join(elem...)
    	}
    	// path.Join will remove any trailing slashes.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:53 UTC 2024
    - 36.1K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/third_party/forked/golang/reflect/deep_equal.go

    			}
    		}
    		return true
    	case reflect.Interface:
    		if v1.IsNil() || v2.IsNil() {
    			return v1.IsNil() == v2.IsNil()
    		}
    		return e.deepValueEqual(v1.Elem(), v2.Elem(), visited, equateNilAndEmpty, depth+1)
    	case reflect.Ptr:
    		return e.deepValueEqual(v1.Elem(), v2.Elem(), visited, equateNilAndEmpty, depth+1)
    	case reflect.Struct:
    		for i, n := 0, v1.NumField(); i < n; i++ {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 20 17:18:42 UTC 2022
    - 10.8K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/walk/assign.go

    		return mkcall1(chanfn("chanrecv1", 2, r.Type()), nil, init, r, n1)
    
    	case ir.OAPPEND:
    		// x = append(...)
    		call := as.Y.(*ir.CallExpr)
    		if call.Type().Elem().NotInHeap() {
    			base.Errorf("%v can't be allocated in Go; it is incomplete (or unallocatable)", call.Type().Elem())
    		}
    		var r ir.Node
    		switch {
    		case isAppendOfMake(call):
    			// x = append(y, make([]T, y)...)
    			r = extendSlice(call, init)
    		case call.IsDDD:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:09:06 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  6. src/go/types/predicates.go

    			// assume they are the same to avoid spurious follow-on errors.
    			return (x.len < 0 || y.len < 0 || x.len == y.len) && c.identical(x.elem, y.elem, p)
    		}
    
    	case *Slice:
    		// Two slice types are identical if they have identical element types.
    		if y, ok := y.(*Slice); ok {
    			return c.identical(x.elem, y.elem, p)
    		}
    
    	case *Struct:
    		// Two struct types are identical if they have the same sequence of fields,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/storage/cacher/watch_cache_interval_test.go

    	for i := 0; i < numEvents; i++ {
    		elem := makeTestStoreElement(makeTestPod(fmt.Sprintf("pod%d", i), uint64(i)))
    		objLabels, objFields, err := getAttrsFunc(elem.Object)
    		if err != nil {
    			t.Fatal(err)
    		}
    		events[elem.Key] = &watchCacheEvent{
    			Type:            watch.Added,
    			Object:          elem.Object,
    			ObjLabels:       objLabels,
    			ObjFields:       objFields,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 09:20:10 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  8. src/runtime/map_faststr.go

    			}
    			// Clear key's pointer.
    			k.str = nil
    			e := add(unsafe.Pointer(b), dataOffset+abi.MapBucketCount*2*goarch.PtrSize+i*uintptr(t.ValueSize))
    			if t.Elem.Pointers() {
    				memclrHasPointers(e, t.Elem.Size_)
    			} else {
    				memclrNoHeapPointers(e, t.Elem.Size_)
    			}
    			b.tophash[i] = emptyOne
    			// If the bucket now ends in a bunch of emptyOne states,
    			// change those to emptyRest states.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/cel/types.go

    const (
    	noMaxLength = math.MaxInt
    )
    
    // NewListType returns a parameterized list type with a specified element type.
    func NewListType(elem *DeclType, maxItems int64) *DeclType {
    	return &DeclType{
    		name:         "list",
    		ElemType:     elem,
    		MaxElements:  maxItems,
    		celType:      cel.ListType(elem.CelType()),
    		defaultValue: NewListValue(),
    		// a list can always be represented as [] in JSON, so hardcode the min size
    		// to 2
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 08 15:52:31 UTC 2023
    - 18K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/typestring.go

    				w.typeName(obj)
    				break
    			}
    		}
    		w.string(t.name)
    
    	case *Array:
    		w.byte('[')
    		w.string(strconv.FormatInt(t.len, 10))
    		w.byte(']')
    		w.typ(t.elem)
    
    	case *Slice:
    		w.string("[]")
    		w.typ(t.elem)
    
    	case *Struct:
    		w.string("struct{")
    		for i, f := range t.fields {
    			if i > 0 {
    				w.byte(';')
    			}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.2K bytes
    - Viewed (0)
Back to top