Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 502 for elem3 (0.07 sec)

  1. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/errorsas/errorsas.go

    	}
    	if pt.Elem() == errorType {
    		return errors.New("second argument to errors.As should not be *error")
    	}
    	_, ok = pt.Elem().Underlying().(*types.Interface)
    	if ok || types.Implements(pt.Elem(), errorType.Underlying().(*types.Interface)) {
    		return nil
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 21:52:54 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  2. test/fixedbugs/issue63462.go

    // license that can be found in the LICENSE file.
    
    package p
    
    func f() {
    	for b := "" < join([]string{}, "") && true; ; {
    		_ = b
    	}
    }
    
    //go:noinline
    func join(elems []string, sep string) string {
    	return ""
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 09 22:23:06 UTC 2023
    - 331 bytes
    - Viewed (0)
  3. pkg/config/schema/codegen/templates/collections.go.tmpl

    			{{- if ne .Resource.StatusProto "" }}StatusProto: "{{ .Resource.StatusProto }}",{{end}}
    			ReflectType: reflect.TypeOf(&{{.ClientImport}}.{{.SpecType}}{}).Elem(),
    			{{- if ne .StatusType "" }}StatusType: reflect.TypeOf(&{{.StatusImport}}.{{.StatusType}}{}).Elem(), {{end}}
    			ProtoPackage: "{{ .Resource.ProtoPackage }}",
    			{{- if ne "" .Resource.StatusProtoPackage}}StatusPackage: "{{ .Resource.StatusProtoPackage }}", {{end}}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 25 14:44:17 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/syntax/positions.go

    		case *ListExpr:
    			if l := lastExpr(n.ElemList); l != nil {
    				m = l
    				continue
    			}
    			return n.Pos()
    
    		// types
    		case *ArrayType:
    			m = n.Elem
    		case *SliceType:
    			m = n.Elem
    		case *DotsType:
    			m = n.Elem
    		case *StructType:
    			if l := lastField(n.FieldList); l != nil {
    				m = l
    				continue
    			}
    			return n.Pos()
    			// TODO(gri) need to take TagList into account
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 17:49:19 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  5. internal/s3select/sql/jsonpath.go

    				}
    			}
    			// Key not found - return nil result
    			return Missing{}, false, nil
    		case simdjson.Object:
    			elem := kvs.FindKey(key, nil)
    			if elem == nil {
    				// Key not found - return nil result
    				return Missing{}, false, nil
    			}
    			val, err := IterToValue(elem.Iter)
    			if err != nil {
    				return nil, false, err
    			}
    			return jsonpathEval(p[1:], val)
    		default:
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  6. 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)
  7. staging/src/k8s.io/apimachinery/pkg/api/apitesting/naming/naming.go

    	"k8s.io/apimachinery/pkg/runtime/schema"
    	"k8s.io/apimachinery/pkg/util/errors"
    	"k8s.io/apimachinery/pkg/util/sets"
    )
    
    var (
    	marshalerType   = reflect.TypeOf((*json.Marshaler)(nil)).Elem()
    	unmarshalerType = reflect.TypeOf((*json.Unmarshaler)(nil)).Elem()
    )
    
    // VerifyGroupNames ensures that all groups in the scheme ends with the k8s.io suffix.
    // Exceptions can be tolerated using the legacyUnsuffixedGroups parameter
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 27 07:07:03 UTC 2022
    - 5.8K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/syntax/walk.go

    	case *ListExpr:
    		w.exprList(n.ElemList)
    
    	// types
    	case *ArrayType:
    		if n.Len != nil {
    			w.node(n.Len)
    		}
    		w.node(n.Elem)
    
    	case *SliceType:
    		w.node(n.Elem)
    
    	case *DotsType:
    		w.node(n.Elem)
    
    	case *StructType:
    		w.fieldList(n.FieldList)
    		for _, t := range n.TagList {
    			if t != nil {
    				w.node(t)
    			}
    		}
    
    	case *Field:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:55:04 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/util/strategicpatch/meta.go

    	// If the underlying element is either an array or a slice, return its element type.
    	case reflect.Pointer:
    		t = t.Elem()
    		if t.Kind() == reflect.Array || t.Kind() == reflect.Slice {
    			t = t.Elem()
    		}
    		elemType = t
    	default:
    		return nil, PatchMeta{}, fmt.Errorf("expected slice or array type, but got: %s", s.T.Kind().String())
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 16:45:45 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sync/semaphore/semaphore.go

    	w := waiter{n: n, ready: ready}
    	elem := s.waiters.PushBack(w)
    	s.mu.Unlock()
    
    	select {
    	case <-done:
    		s.mu.Lock()
    		select {
    		case <-ready:
    			// Acquired the semaphore after we were canceled.
    			// Pretend we didn't and put the tokens back.
    			s.cur -= n
    			s.notifyWaiters()
    		default:
    			isFront := s.waiters.Front() == elem
    			s.waiters.Remove(elem)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 4.3K bytes
    - Viewed (0)
Back to top