Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 217 for elem5 (0.06 sec)

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

    		return m.match(typ.Key(), false) && m.match(typ.Elem(), false)
    
    	case *types.Chan:
    		return m.t&argPointer != 0
    
    	case *types.Array:
    		// Same as slice.
    		if types.Identical(typ.Elem().Underlying(), types.Typ[types.Byte]) && m.t&argString != 0 {
    			return true // %s matches []byte
    		}
    		// Recur: []int matches %d.
    		return m.match(typ.Elem(), false)
    
    	case *types.Slice:
    		// Same as array.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. src/reflect/iter.go

    		return rangeNum[uint32](v.Uint())
    	case Uint64:
    		return rangeNum[uint64](v.Uint())
    	case Uintptr:
    		return rangeNum[uintptr](v.Uint())
    	case Pointer:
    		if v.Elem().kind() != Array {
    			break
    		}
    		return func(yield func(Value) bool) {
    			v = v.Elem()
    			for i := range v.Len() {
    				if !yield(ValueOf(i)) {
    					return
    				}
    			}
    		}
    	case Array, Slice:
    		return func(yield func(Value) bool) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 13:40:11 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  6. src/cmd/internal/pkgpattern/pkgpattern.go

    func replaceVendor(x, repl string) string {
    	if !strings.Contains(x, "vendor") {
    		return x
    	}
    	elem := strings.Split(x, "/")
    	for i := 0; i < len(elem)-1; i++ {
    		if elem[i] == "vendor" {
    			elem[i] = repl
    		}
    	}
    	return strings.Join(elem, "/")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 27 16:43:40 UTC 2022
    - 4.8K bytes
    - Viewed (0)
  7. test/fixedbugs/issue35073b.go

    	m := make(map[string]string) // ERROR "moved to heap: m" "make\(map\[string\]string\) escapes to heap"
    
    	_ = unsafe.Pointer(reflect.ValueOf(&n).Elem().UnsafeAddr()) // ERROR "inlining call"
    	_ = unsafe.Pointer(reflect.ValueOf(&m).Elem().Pointer())    // ERROR "inlining call"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 15:12:49 UTC 2023
    - 706 bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/testplugin/testdata/plugin2/plugin2.go

    	X string
    }
    
    type sameNameHolder struct {
    	F *sameNameReusedInPlugins
    }
    
    func UnexportedNameReuse() {
    	h := sameNameHolder{}
    	v := reflect.ValueOf(&h).Elem().Field(0)
    	newval := reflect.New(v.Type().Elem())
    	v.Set(newval)
    }
    
    func main() {
    	panic("plugin1.main called")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 796 bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/testplugin/testdata/plugin1/plugin1.go

    	X string
    }
    
    type sameNameHolder struct {
    	F *sameNameReusedInPlugins
    }
    
    func UnexportedNameReuse() {
    	h := sameNameHolder{}
    	v := reflect.ValueOf(&h).Elem().Field(0)
    	newval := reflect.New(v.Type().Elem())
    	v.Set(newval)
    }
    
    func main() {
    	panic("plugin1.main called")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 820 bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/stablehlo/utils/bfloat16_type.cc

      return isa<FloatType>(type) && type.getIntOrFloatBitWidth() > 16;
    }
    
    Type ToBfloat16Type(Type type) {
      if (auto shaped = mlir::dyn_cast<ShapedType>(type)) {
        const Type elem = shaped.getElementType();
        if (IsLargeFloatType(elem)) {
          return shaped.clone(BFloat16Type::get(type.getContext()));
        }
      } else if (IsLargeFloatType(type)) {
        return BFloat16Type::get(type.getContext());
      }
      return type;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 1.6K bytes
    - Viewed (0)
Back to top