Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 504 for nelem (0.11 sec)

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

    }
    
    func checkArguments(fields []string) error {
    	for _, arg := range fields[1:] {
    		for _, elem := range strings.Split(arg, ",") {
    			if strings.HasPrefix(elem, "!!") {
    				return fmt.Errorf("invalid double negative in build constraint: %s", arg)
    			}
    			elem = strings.TrimPrefix(elem, "!")
    			for _, c := range elem {
    				if !unicode.IsLetter(c) && !unicode.IsDigit(c) && c != '_' && c != '.' {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  2. src/reflect/benchmark_test.go

    	SliceAny     Value
    	MapStringAny Value
    }{
    	Bool:         ValueOf(new(bool)).Elem(),
    	String:       ValueOf(new(string)).Elem(),
    	Bytes:        ValueOf(new([]byte)).Elem(),
    	NamedBytes:   ValueOf(new(namedBytes)).Elem(),
    	BytesArray:   ValueOf(new([32]byte)).Elem(),
    	SliceAny:     ValueOf(new([]any)).Elem(),
    	MapStringAny: ValueOf(new(map[string]any)).Elem(),
    }
    
    var sinkAll struct {
    	RawBool   bool
    	RawString string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Nov 19 17:09:03 UTC 2023
    - 8.8K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/typecheck/iexport.go

    //
    //     type PointerType struct {
    //         Tag  itag // pointerType
    //         Elem typeOff
    //     }
    //
    //     type SliceType struct {
    //         Tag  itag // sliceType
    //         Elem typeOff
    //     }
    //
    //     type ArrayType struct {
    //         Tag  itag // arrayType
    //         Len  uint64
    //         Elem typeOff
    //     }
    //
    //     type ChanType struct {
    //         Tag  itag   // chanType
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 21 02:40:02 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/walk/walk.go

    	case 1:
    		return typecheck.LookupRuntime(name, t.Elem())
    	case 2:
    		return typecheck.LookupRuntime(name, t.Elem(), t.Elem())
    	}
    	base.Fatalf("chanfn %d", n)
    	return nil
    }
    
    func mapfn(name string, t *types.Type, isfat bool) ir.Node {
    	if !t.IsMap() {
    		base.Fatalf("mapfn %v", t)
    	}
    	if mapfast(t) == mapslow || isfat {
    		return typecheck.LookupRuntime(name, t.Key(), t.Elem(), t.Key(), t.Elem())
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 27 20:56:00 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  5. src/reflect/all_test.go

    	isValid(m.Func)
    	isNonNil(v.Elem().Field(0).Interface())
    	isNonNil(v.Elem().Field(1).Interface())
    	isNonNil(v.Elem().Field(2).Field(2).Index(0))
    	isNonNil(v.Elem().FieldByName("X").Interface())
    	isNonNil(v.Elem().FieldByName("Y").Interface())
    	isNonNil(v.Elem().FieldByName("Z").Interface())
    	isNonNil(v.Elem().FieldByName("S").Index(0).Interface())
    	isNonNil(v.Type().Method(0).Func.Interface())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/testshared/testdata/exe/exe.go

    	// exercising https://golang.org/issues/17594
    	reflect.TypeOf(os.Stdout).Elem()
    	runtime.GC()
    	depBase.V = depBase.F() + 1
    
    	var c *C
    	if reflect.TypeOf(F).Out(0) != reflect.TypeOf(c) {
    		panic("bad reflection results, see golang.org/issue/18252")
    	}
    
    	sp := reflect.New(reflect.TypeOf(slicePtr).Elem())
    	s := sp.Interface()
    
    	if reflect.TypeOf(s) != reflect.TypeOf(slicePtr) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 906 bytes
    - Viewed (0)
  7. src/internal/reflectlite/type.go

    		i--
    	}
    	return s[i+1:]
    }
    
    func toRType(t *abi.Type) rtype {
    	return rtype{t}
    }
    
    func elem(t *abi.Type) *abi.Type {
    	et := t.Elem()
    	if et != nil {
    		return et
    	}
    	panic("reflect: Elem of invalid type " + toRType(t).String())
    }
    
    func (t rtype) Elem() Type {
    	return toType(elem(t.common()))
    }
    
    func (t rtype) In(i int) Type {
    	tt := t.Type.FuncType()
    	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)
  8. src/cmd/vendor/golang.org/x/tools/internal/facts/imports.go

    						addType(targs.At(i))
    					}
    				}
    			}
    		case *types.Pointer:
    			addType(T.Elem())
    		case *types.Slice:
    			addType(T.Elem())
    		case *types.Array:
    			addType(T.Elem())
    		case *types.Chan:
    			addType(T.Elem())
    		case *types.Map:
    			addType(T.Key())
    			addType(T.Elem())
    		case *types.Signature:
    			addType(T.Params())
    			addType(T.Results())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  9. src/internal/types/testdata/fixedbugs/issue46275.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package issue46275
    
    type N[T any] struct {
    	*N[T]
    	t T
    }
    
    func (n *N[T]) Elem() T {
    	return n.t
    }
    
    type I interface {
    	Elem() string
    }
    
    func _() {
    	var n1 *N[string]
    	var _ I = n1
    	type NS N[string]
    	var n2 *NS
    	var _ I = n2
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 02 02:58:32 UTC 2022
    - 387 bytes
    - Viewed (0)
  10. src/reflect/value.go

    		k := *(*string)(key.ptr)
    		if elem.typ() == nil {
    			mapdelete_faststr(v.typ(), v.pointer(), k)
    			return
    		}
    		elem.mustBeExported()
    		elem = elem.assignTo("reflect.Value.SetMapIndex", tt.Elem, nil)
    		var e unsafe.Pointer
    		if elem.flag&flagIndir != 0 {
    			e = elem.ptr
    		} else {
    			e = unsafe.Pointer(&elem.ptr)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
Back to top