Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 319 for elem2 (0.33 sec)

  1. src/text/template/exec.go

    	mark := s.mark()
    	oneIteration := func(index, elem reflect.Value) {
    		if len(r.Pipe.Decl) > 0 {
    			if r.Pipe.IsAssign {
    				// With two variables, index comes first.
    				// With one, we use the element.
    				if len(r.Pipe.Decl) > 1 {
    					s.setVar(r.Pipe.Decl[0].Ident[0], index)
    				} else {
    					s.setVar(r.Pipe.Decl[0].Ident[0], elem)
    				}
    			} else {
    				// Set top var (lexically the second if there
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:22:24 UTC 2024
    - 32K bytes
    - Viewed (0)
  2. src/runtime/cgocheck.go

    		at := (*arraytype)(unsafe.Pointer(typ))
    		for i := uintptr(0); i < at.Len; i++ {
    			if off < at.Elem.Size_ {
    				cgoCheckUsingType(at.Elem, src, off, size)
    			}
    			src = add(src, at.Elem.Size_)
    			skipped := off
    			if skipped > at.Elem.Size_ {
    				skipped = at.Elem.Size_
    			}
    			checked := at.Elem.Size_ - skipped
    			off -= skipped
    			if size <= checked {
    				return
    			}
    			size -= checked
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 04:07:57 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/storage/cacher/watch_cache_interval.go

    	for i, item := range allItems {
    		elem, ok := item.(*storeElement)
    		if !ok {
    			return nil, fmt.Errorf("not a storeElement: %v", elem)
    		}
    		objLabels, objFields, err := getAttrsFunc(elem.Object)
    		if err != nil {
    			return nil, err
    		}
    		buffer.buffer[i] = &watchCacheEvent{
    			Type:            watch.Added,
    			Object:          elem.Object,
    			ObjLabels:       objLabels,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 09:20:10 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/tools/internal/typeparams/coretype.go

    	for chans := identical; chans < len(terms); chans++ {
    		curr, ok := terms[chans].Type().Underlying().(*types.Chan)
    		if !ok {
    			return nil
    		}
    		if !types.Identical(ch.Elem(), curr.Elem()) {
    			return nil // channel elements are not identical.
    		}
    		if ch.Dir() == types.SendRecv {
    			// ch is bidirectional. We can safely always use curr's direction.
    			ch = curr
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/internal/analysisinternal/analysis.go

    		default:
    			return ast.NewIdent(t.Name())
    		}
    	case *types.Pointer:
    		x := TypeExpr(f, pkg, t.Elem())
    		if x == nil {
    			return nil
    		}
    		return &ast.UnaryExpr{
    			Op: token.MUL,
    			X:  x,
    		}
    	case *types.Array:
    		elt := TypeExpr(f, pkg, t.Elem())
    		if elt == nil {
    			return nil
    		}
    		return &ast.ArrayType{
    			Len: &ast.BasicLit{
    				Kind:  token.INT,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  6. src/internal/abi/type.go

    		}
    		return &(*u)(unsafe.Pointer(t)).u
    	}
    }
    
    // Elem returns the element type for t if t is an array, channel, map, pointer, or slice, otherwise nil.
    func (t *Type) Elem() *Type {
    	switch t.Kind() {
    	case Array:
    		tt := (*ArrayType)(unsafe.Pointer(t))
    		return tt.Elem
    	case Chan:
    		tt := (*ChanType)(unsafe.Pointer(t))
    		return tt.Elem
    	case Map:
    		tt := (*MapType)(unsafe.Pointer(t))
    		return tt.Elem
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 17 21:09:59 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  7. src/net/url/url.go

    func (u *URL) JoinPath(elem ...string) *URL {
    	elem = append([]string{u.EscapedPath()}, elem...)
    	var p string
    	if !strings.HasPrefix(elem[0], "/") {
    		// Return a relative path if u is relative,
    		// but ensure that it contains no ../ elements.
    		elem[0] = "/" + elem[0]
    		p = path.Join(elem...)[1:]
    	} else {
    		p = path.Join(elem...)
    	}
    	// path.Join will remove any trailing slashes.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:53 UTC 2024
    - 36.1K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/tools/internal/typesinternal/recv.go

    // It also reports whether a Pointer was present.
    func ReceiverNamed(recv *types.Var) (isPtr bool, named *types.Named) {
    	t := recv.Type()
    	if ptr, ok := aliases.Unalias(t).(*types.Pointer); ok {
    		isPtr = true
    		t = ptr.Elem()
    	}
    	named, _ = aliases.Unalias(t).(*types.Named)
    	return
    }
    
    // Unpointer returns T given *T or an alias thereof.
    // For all other types it is the identity function.
    // It does not look at underlying types.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top