Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 504 for nelem (0.05 sec)

  1. 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)
  2. 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)
  3. src/internal/types/testdata/fixedbugs/issue39982.go

    package p
    
    type (
    	T[_ any] struct{}
    	S[_ any] struct {
    		data T[*T[int]]
    	}
    )
    
    func _() {
    	_ = S[int]{
    		data: T[*T[int]]{},
    	}
    }
    
    // full test case from issue
    
    type (
    	Element[TElem any] struct{}
    
    	entry[K comparable] struct{}
    
    	Cache[K comparable] struct {
    		data map[K]*Element[*entry[K]]
    	}
    )
    
    func _() {
    	_ = Cache[int]{
    		data: make(map[int](*Element[*entry[int]])),
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 02 02:58:32 UTC 2022
    - 539 bytes
    - Viewed (0)
  4. test/fixedbugs/issue32595.dir/b.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package b
    
    import "reflect"
    
    func B() {
    	t1 := reflect.TypeOf([0]byte{})
    	t2 := reflect.TypeOf(new([0]byte)).Elem()
    	if t1 != t2 {
    		panic("[0]byte types do not match")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 25 21:30:39 UTC 2019
    - 334 bytes
    - Viewed (0)
  5. src/time/tzdata_test.go

    		}
    
    		// Compare the name and zone fields of ref and sample.
    		// The tx field changes faster as tzdata is updated.
    		// The cache fields are expected to differ.
    		v1 := reflect.ValueOf(ref).Elem()
    		v2 := reflect.ValueOf(sample).Elem()
    		typ := v1.Type()
    		nf := typ.NumField()
    		found := 0
    		for i := 0; i < nf; i++ {
    			ft := typ.Field(i)
    			if ft.Name != "name" && ft.Name != "zone" {
    				continue
    			}
    			found++
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 18 20:57:35 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  6. test/abi/bad_select_crash.go

    //go:noinline
    func NoteFailureElem(cm int, pidx int, fidx int, pkg string, pref string, parmNo int, elem int, isret bool, _ uint64) {
    
    	if isret {
    		if ParamFailCount != 0 {
    			return
    		}
    		ReturnFailCount++
    	} else {
    		ParamFailCount++
    	}
    	fmt.Fprintf(os.Stderr, "Error: fail %s |%d|%d|%d| =%s.Test%d= %s %d elem %d\n", Mode, cm, pidx, fidx, pkg, fidx, pref, parmNo, elem)
    
    	if ParamFailCount+FailCount+ReturnFailCount > 9999 {
    		os.Exit(1)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 16 13:38:02 UTC 2021
    - 5.7K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/text/internal/tag/tag.go

    //
    // All elements are of size 4. Tags may be up to 4 bytes long. Excess bytes can
    // be used to store additional information about the tag.
    type Index string
    
    // Elem returns the element data at the given index.
    func (s Index) Elem(x int) string {
    	return string(s[x*4 : x*4+4])
    }
    
    // Index reports the index of the given key or -1 if it could not be found.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  8. src/encoding/xml/typeinfo.go

    	for i, x := range finfo.idx {
    		if i > 0 {
    			t := v.Type()
    			if t.Kind() == reflect.Pointer && t.Elem().Kind() == reflect.Struct {
    				if v.IsNil() {
    					if !shouldInitNilPointers {
    						return reflect.Value{}
    					}
    					v.Set(reflect.New(v.Type().Elem()))
    				}
    				v = v.Elem()
    			}
    		}
    		v = v.Field(x)
    	}
    	return v
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 07 00:23:29 UTC 2023
    - 9.6K bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/testplugin/testdata/method/main.go

    	"plugin"
    	"reflect"
    )
    
    func main() {
    	p, err := plugin.Open("plugin.so")
    	if err != nil {
    		panic(err)
    	}
    
    	x, err := p.Lookup("X")
    	if err != nil {
    		panic(err)
    	}
    
    	reflect.ValueOf(x).Elem().MethodByName("M").Call(nil)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 478 bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/it/search/SearchApiTests.java

            for (Map<String, Object> elem : jobLogList) {
                deleteMethod("/api/admin/joblog/log/" + elem.get("id"));
            }
    
            final List<Map<String, Object>> crawlingInfoList = readCrawlingInfo(fileConfigId);
            for (Map<String, Object> elem : crawlingInfoList) {
                deleteMethod("/api/admin/crawlinginfo/log/" + elem.get("id"));
            }
    
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 18.6K bytes
    - Viewed (0)
Back to top