Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 168 for nelem (0.05 sec)

  1. src/go/types/under.go

    	if Identical(x, y) {
    		return x
    	}
    
    	// We may have channels that differ in direction only.
    	if x, _ := x.(*Chan); x != nil {
    		if y, _ := y.(*Chan); y != nil && Identical(x.elem, y.elem) {
    			// We have channels that differ in direction only.
    			// If there's an unrestricted channel, select the restricted one.
    			switch {
    			case x.dir == SendRecv:
    				return y
    			case y.dir == SendRecv:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 22:34:27 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/mod/module/module.go

    func checkElem(elem string, kind pathKind) error {
    	if elem == "" {
    		return fmt.Errorf("empty path element")
    	}
    	if strings.Count(elem, ".") == len(elem) {
    		return fmt.Errorf("invalid path element %q", elem)
    	}
    	if elem[0] == '.' && kind == modulePath {
    		return fmt.Errorf("leading dot in path element")
    	}
    	if elem[len(elem)-1] == '.' {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 20:17:07 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/testshared/testdata/depBase/dep.go

    	// This code below causes various go.itab.* symbols to be generated in
    	// the shared library. Similar code in ../exe/exe.go results in
    	// exercising https://golang.org/issues/17594
    	reflect.TypeOf(os.Stdout).Elem()
    	return 10
    }
    
    func F() int {
    	defer func() {}()
    	return V
    }
    
    func H() {
    	// Issue 67635: deadcoded closures causes linker crash.
    	func() { F() }()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 14:52:41 UTC 2024
    - 1K bytes
    - Viewed (0)
  4. src/runtime/cgocall.go

    		at := (*arraytype)(unsafe.Pointer(t))
    		if !indir {
    			if at.Len != 1 {
    				throw("can't happen")
    			}
    			cgoCheckArg(at.Elem, p, at.Elem.Kind_&abi.KindDirectIface == 0, top, msg)
    			return
    		}
    		for i := uintptr(0); i < at.Len; i++ {
    			cgoCheckArg(at.Elem, p, true, top, msg)
    			p = add(p, at.Elem.Size_)
    		}
    	case abi.Chan, abi.Map:
    		// These types contain internal pointers that will
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:47 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  5. src/encoding/json/encode.go

    	}
    	se.arrayEnc(e, v, opts)
    	e.ptrLevel--
    }
    
    func newSliceEncoder(t reflect.Type) encoderFunc {
    	// Byte slices get special treatment; arrays don't.
    	if t.Elem().Kind() == reflect.Uint8 {
    		p := reflect.PointerTo(t.Elem())
    		if !p.Implements(marshalerType) && !p.Implements(textMarshalerType) {
    			return encodeByteSlice
    		}
    	}
    	enc := sliceEncoder{newArrayEncoder(t)}
    	return enc.encode
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 36.2K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/internal/facts/facts.go

    	if obj == nil {
    		panic("nil object")
    	}
    	key := key{pkg: obj.Pkg(), obj: obj, t: reflect.TypeOf(ptr)}
    	s.mu.Lock()
    	defer s.mu.Unlock()
    	if v, ok := s.m[key]; ok {
    		reflect.ValueOf(ptr).Elem().Set(reflect.ValueOf(v).Elem())
    		return true
    	}
    	return false
    }
    
    // ExportObjectFact implements analysis.Pass.ExportObjectFact.
    func (s *Set) ExportObjectFact(obj types.Object, fact analysis.Fact) {
    	if obj.Pkg() != s.pkg {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/validation_test.go

    		}
    	}
    
    	// check that anything other than type and properties in metadata is forbidden
    	tt = reflect.TypeOf(Structural{})
    	for i := 0; i < tt.NumField(); i++ {
    		s := Structural{}
    		x := reflect.ValueOf(&s).Elem()
    		fuzzer.Fuzz(x.Field(i).Addr().Interface())
    		s.Type = "object"
    		s.Properties = map[string]Structural{
    			"name":         {},
    			"generateName": {},
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 18:20:00 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  8. pkg/typemap/map.go

    type TypeMap struct {
    	inner map[reflect.Type]any
    }
    
    func NewTypeMap() TypeMap {
    	return TypeMap{make(map[reflect.Type]any)}
    }
    
    func Set[T any](t TypeMap, v T) {
    	interfaceType := reflect.TypeOf((*T)(nil)).Elem()
    	t.inner[interfaceType] = v
    }
    
    func Get[T any](t TypeMap) *T {
    	v, f := t.inner[reflect.TypeFor[T]()]
    	if f {
    		return ptr.Of(v.(T))
    	}
    	return nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 16:38:40 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_ops_to_mhlo.cc

            storage_type_max);
      } else {
        SmallVector<double> scales_vec;
        SmallVector<int64_t> zero_points_vec;
        for (auto elem : scales.getValues<float>()) scales_vec.push_back(elem);
        for (auto elem : zero_points.getValues<int32_t>())
          zero_points_vec.push_back(elem);
        elem_ty = quant::UniformQuantizedPerAxisType::get(
            flags, storage_type, expressed_type, scales_vec, zero_points_vec,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 30.9K bytes
    - Viewed (0)
  10. src/go/types/stmt.go

    	// declare a variable inside a function body if the variable is never used."
    	check.usage(sig.scope)
    }
    
    func (check *Checker) usage(scope *Scope) {
    	var unused []*Var
    	for name, elem := range scope.elems {
    		elem = resolve(name, elem)
    		if v, _ := elem.(*Var); v != nil && !v.used {
    			unused = append(unused, v)
    		}
    	}
    	sort.Slice(unused, func(i, j int) bool {
    		return cmpPos(unused[i].pos, unused[j].pos) < 0
    	})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.6K bytes
    - Viewed (0)
Back to top