Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 591 for elem5 (0.05 sec)

  1. 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)
  2. src/cmd/go/internal/search/search.go

    			top = true
    			path = filepath.Clean(path)
    		}
    
    		// Avoid .foo, _foo, and testdata directory trees, but do not avoid "." or "..".
    		_, elem := filepath.Split(path)
    		dot := strings.HasPrefix(elem, ".") && elem != "." && elem != ".."
    		if dot || strings.HasPrefix(elem, "_") || elem == "testdata" {
    			return filepath.SkipDir
    		}
    
    		if !top && cfg.ModulesEnabled {
    			// Ignore other modules found in subdirectories.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 31 20:33:05 UTC 2023
    - 15.4K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. src/runtime/map_fast64.go

    					memclrHasPointers(k, 8)
    				}
    			}
    			e := add(unsafe.Pointer(b), dataOffset+abi.MapBucketCount*8+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
    - 14.1K bytes
    - Viewed (0)
  6. 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)
  7. src/encoding/gob/encoder_test.go

    type Bug1Elem struct {
    	Name string
    	Id   int
    }
    
    type Bug1StructMap map[string]Bug1Elem
    
    func TestMapBug1(t *testing.T) {
    	in := make(Bug1StructMap)
    	in["val1"] = Bug1Elem{"elem1", 1}
    	in["val2"] = Bug1Elem{"elem2", 2}
    
    	b := new(bytes.Buffer)
    	enc := NewEncoder(b)
    	err := enc.Encode(in)
    	if err != nil {
    		t.Fatal("encode:", err)
    	}
    	dec := NewDecoder(b)
    	out := make(Bug1StructMap)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. src/cmd/vendor/golang.org/x/text/internal/language/lookup.go

    		return string(buf[:])
    	}
    	l := lang.Elem(int(b))
    	if l[3] == 0 {
    		return l[:3]
    	}
    	return l[:2]
    }
    
    // ISO3 returns the ISO 639-3 language code.
    func (b Language) ISO3() string {
    	if b == 0 || b >= langNoIndexOffset {
    		return b.String()
    	}
    	l := lang.Elem(int(b))
    	if l[3] == 0 {
    		return l[:3]
    	} else if l[2] == 0 {
    		return altLangISO3.Elem(int(l[3]))[:3]
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 12.1K bytes
    - Viewed (0)
Back to top