- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 343 for Map (0.02 sec)
-
src/maps/maps_test.go
} if EqualFunc(m1, (map[int]int)(nil), equal[int]) { t.Errorf("EqualFunc(%v, nil, equal) = true, want false", m1) } if EqualFunc((map[int]int)(nil), m1, equal[int]) { t.Errorf("EqualFunc(nil, %v, equal) = true, want false", m1) } if !EqualFunc[map[int]int, map[int]int](nil, nil, equal[int]) { t.Error("EqualFunc(nil, nil, equal) = false, want true") } if ms := map[int]int{1: 2}; EqualFunc(m1, ms, equal[int]) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 05 17:05:56 UTC 2023 - 5.6K bytes - Viewed (0) -
src/cmd/internal/obj/line_test.go
package obj import ( "cmd/internal/src" "fmt" "testing" ) func TestGetFileSymbolAndLine(t *testing.T) { ctxt := new(Link) ctxt.hash = make(map[string]*LSym) ctxt.statichash = make(map[string]*LSym) afile := src.NewFileBase("a.go", "a.go") bfile := src.NewFileBase("b.go", "/foo/bar/b.go") lfile := src.NewLinePragmaBase(src.MakePos(afile, 8, 1), "linedir", "linedir", 100, 1)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 01 15:52:41 UTC 2023 - 1.2K bytes - Viewed (0) -
src/go/types/objset.go
// object name. package types // An objset is a set of objects identified by their unique id. // The zero value for objset is a ready-to-use empty objset. type objset map[string]Object // initialized lazily // insert attempts to insert an object obj into objset s. // If s already contains an alternative object alt with // the same name, insert leaves s unchanged and returns alt.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 1K bytes - Viewed (0) -
src/internal/trace/base.go
type evTable struct { freq frequency strings dataTable[stringID, string] stacks dataTable[stackID, stack] pcs map[uint64]frame // extraStrings are strings that get generated during // parsing but haven't come directly from the trace, so // they don't appear in strings. extraStrings []string extraStringIDs map[string]extraStringID nextExtra extraStringID // expData contains extra unparsed data that is accessible
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 6.8K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/testdata/map2.go
// license that can be found in the LICENSE file. // This file is like map.go, but instead of importing chans, it contains // the necessary functionality at the end of the file. // Package orderedmap provides an ordered map, implemented as a binary tree. package orderedmap // Map is an ordered map. type Map[K, V any] struct { root *node[K, V] compare func(K, K) int }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 01 12:49:49 UTC 2023 - 3.4K bytes - Viewed (0) -
src/cmd/compile/internal/ssagen/nowb.go
// get back to the ODCLFUNCs. symToFunc := make(map[*obj.LSym]*ir.Func) // funcs records the back-edges of the BFS call graph walk. It // maps from the ODCLFUNC of each function that must not have // write barriers to the call that inhibits them. Functions // that are directly marked go:nowritebarrierrec are in this // map with a zero-valued nowritebarrierrecCall. This also
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 17:29:46 UTC 2024 - 5.9K bytes - Viewed (0) -
src/runtime/pprof/label.go
parentLabels := labelValue(ctx) childLabels := make(labelMap, len(parentLabels)) // TODO(matloob): replace the map implementation with something // more efficient so creating a child context WithLabels doesn't need // to clone the map. for k, v := range parentLabels { childLabels[k] = v } for _, label := range labels.list { childLabels[label.key] = label.value }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 3K bytes - Viewed (0) -
src/reflect/asm_loong64.s
// whether the stack-allocated return space contains valid values for stack // scanning. // // The second local is an abi.RegArgs value whose offset is also known to the // runtime, so that a stack map for it can be constructed, since it contains // pointers visible to the GC. #define LOCAL_RETVALID 40 #define LOCAL_REGARGS 48 // The frame size of the functions below is
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 15:04:25 UTC 2024 - 2.7K bytes - Viewed (0) -
src/cmd/compile/internal/types2/context.go
// The use of a shared context does not guarantee that identical instances are // deduplicated in all cases. type Context struct { mu sync.Mutex typeMap map[string][]ctxtEntry // type hash -> instances entries nextID int // next unique ID originIDs map[Type]int // origin type -> unique ID } type ctxtEntry struct { orig Type targs []Type instance Type // = orig[targs] }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 28 17:29:21 UTC 2023 - 4.3K bytes - Viewed (0) -
src/go/types/resolver_test.go
files = append(files, mustParse(fset, src)) } // resolve and type-check package AST importer := new(resolveTestImporter) conf := Config{Importer: importer} uses := make(map[*ast.Ident]Object) defs := make(map[*ast.Ident]Object) _, err := conf.Check("testResolveIdents", fset, files, &Info{Defs: defs, Uses: uses}) if err != nil { t.Fatal(err) } // check that all packages were imported
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 4.5K bytes - Viewed (0)