Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 177 for elem1 (0.04 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/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)
  3. 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)
  4. 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)
  5. src/cmd/compile/internal/walk/assign.go

    		return mkcall1(chanfn("chanrecv1", 2, r.Type()), nil, init, r, n1)
    
    	case ir.OAPPEND:
    		// x = append(...)
    		call := as.Y.(*ir.CallExpr)
    		if call.Type().Elem().NotInHeap() {
    			base.Errorf("%v can't be allocated in Go; it is incomplete (or unallocatable)", call.Type().Elem())
    		}
    		var r ir.Node
    		switch {
    		case isAppendOfMake(call):
    			// x = append(y, make([]T, y)...)
    			r = extendSlice(call, init)
    		case call.IsDDD:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:09:06 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  6. src/go/types/predicates.go

    			// assume they are the same to avoid spurious follow-on errors.
    			return (x.len < 0 || y.len < 0 || x.len == y.len) && c.identical(x.elem, y.elem, p)
    		}
    
    	case *Slice:
    		// Two slice types are identical if they have identical element types.
    		if y, ok := y.(*Slice); ok {
    			return c.identical(x.elem, y.elem, p)
    		}
    
    	case *Struct:
    		// Two struct types are identical if they have the same sequence of fields,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/storage/cacher/watch_cache_interval_test.go

    	for i := 0; i < numEvents; i++ {
    		elem := makeTestStoreElement(makeTestPod(fmt.Sprintf("pod%d", i), uint64(i)))
    		objLabels, objFields, err := getAttrsFunc(elem.Object)
    		if err != nil {
    			t.Fatal(err)
    		}
    		events[elem.Key] = &watchCacheEvent{
    			Type:            watch.Added,
    			Object:          elem.Object,
    			ObjLabels:       objLabels,
    			ObjFields:       objFields,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 09:20:10 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  8. src/runtime/map_faststr.go

    			}
    			// Clear key's pointer.
    			k.str = nil
    			e := add(unsafe.Pointer(b), dataOffset+abi.MapBucketCount*2*goarch.PtrSize+i*uintptr(t.ValueSize))
    			if t.Elem.Pointers() {
    				memclrHasPointers(e, t.Elem.Size_)
    			} else {
    				memclrNoHeapPointers(e, t.Elem.Size_)
    			}
    			b.tophash[i] = emptyOne
    			// If the bucket now ends in a bunch of emptyOne states,
    			// change those to emptyRest states.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  9. 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)
  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