- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for makeTag (0.14 sec)
-
src/go/types/api_test.go
useMap := make(map[*ast.Ident]Object) makePkg := func(src string) *Package { pkg, err := typecheck(src, &conf, &Info{Instances: instMap, Uses: useMap}) // allow error for issue51803 if err != nil && (pkg == nil || pkg.Name() != "issue51803") { t.Fatal(err) } imports[pkg.Name()] = pkg return pkg } makePkg(lib) pkg := makePkg(test.src) t.Run(pkg.Name(), func(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 94.2K bytes - Viewed (0) -
src/cmd/compile/internal/types2/api_test.go
conf := Config{Importer: imports} makePkg := func(src string) { f := mustParse(src) name := f.PkgName.Value pkg, err := conf.Check(name, []*syntax.File{f}, nil) if err != nil { t.Fatal(err) } imports[name] = pkg } makePkg(`package lib; type T[P any] struct{}`) makePkg(`package a; import "lib"; var A lib.T[int]`) makePkg(`package b; import "lib"; var B lib.T[int]`)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 20:08:23 UTC 2024 - 93.3K bytes - Viewed (0) -
src/runtime/map.go
h.hash0 = uint32(rand()) return h } // makemap implements Go map creation for make(map[k]v, hint). // If the compiler has determined that the map or the first bucket // can be created on the stack, h and/or bucket may be non-nil. // If h != nil, the map can be created directly in h. // If h.buckets != nil, bucket pointed to can be used as the first bucket. // // makemap should be an internal detail,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 57.6K bytes - Viewed (0) -
src/text/template/exec_test.go
func add(args ...int) int { sum := 0 for _, x := range args { sum += x } return sum } func echo(arg any) any { return arg } func makemap(arg ...string) map[string]string { if len(arg)%2 != 0 { panic("bad makemap") } m := make(map[string]string) for i := 0; i < len(arg); i += 2 { m[arg[i]] = arg[i+1] } return m } func stringer(s fmt.Stringer) string {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 22:23:55 UTC 2024 - 60.1K bytes - Viewed (0) -
src/html/template/exec_test.go
func add(args ...int) int { sum := 0 for _, x := range args { sum += x } return sum } func echo(arg any) any { return arg } func makemap(arg ...string) map[string]string { if len(arg)%2 != 0 { panic("bad makemap") } m := make(map[string]string) for i := 0; i < len(arg); i += 2 { m[arg[i]] = arg[i+1] } return m } func stringer(s fmt.Stringer) string {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Feb 24 21:59:12 UTC 2024 - 57.6K bytes - Viewed (0) -
pkg/apis/core/v1/defaults_test.go
break } // if we don't already have a value, and contain structs, add an empty item so we can recurse item := reflect.New(visit.value.Type().Elem()).Elem() visit.value.Set(reflect.MakeMap(visit.value.Type())) visit.value.SetMapIndex(reflect.New(visit.value.Type().Key()).Elem(), item) toVisit = append(toVisit, testPath{path: visit.path + "[*]", value: item})
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 84.4K bytes - Viewed (0) -
guava/src/com/google/common/collect/MapMakerInternalMap.java
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); MapMaker mapMaker = readMapMaker(in); delegate = mapMaker.makeMap(); readEntries(in); } private Object readResolve() { return delegate; } }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Sat May 18 03:24:34 UTC 2024 - 90.8K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/MapMakerInternalMap.java
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); MapMaker mapMaker = readMapMaker(in); delegate = mapMaker.makeMap(); readEntries(in); } private Object readResolve() { return delegate; } }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Sat May 18 03:24:34 UTC 2024 - 90.8K bytes - Viewed (0)