- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 115 for mmap (0.08 sec)
-
src/go/ast/commentmap.go
// entries of cmap for which a corresponding node exists in // the AST specified by node. func (cmap CommentMap) Filter(node Node) CommentMap { umap := make(CommentMap) Inspect(node, func(n Node) bool { if g := cmap[n]; len(g) > 0 { umap[n] = g } return true }) return umap } // Comments returns the list of comment groups in the comment map.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 8.9K bytes - Viewed (0) -
src/go/ast/commentmap_test.go
} } // verify that no comments got lost if n := len(cmap.Comments()); n != len(f.Comments) { t.Errorf("got %d comment groups in map; want %d", n, len(f.Comments)) } // support code to update test: // set genMap to true to generate res map const genMap = false if genMap { out := make([]string, 0, len(cmap)) for n, list := range cmap {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 09 15:35:30 UTC 2022 - 3.9K bytes - Viewed (0) -
test/typeparam/orderedmap.go
// Package orderedmap provides an ordered map, implemented as a binary tree. package main import ( "bytes" "context" "fmt" "runtime" ) type Ordered interface { ~int | ~int8 | ~int16 | ~int32 | ~int64 | ~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~uintptr | ~float32 | ~float64 | ~string } // _Map is an ordered map. type _Map[K, V any] struct { root *node[K, V]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 7.1K bytes - Viewed (0) -
test/live2.go
func printnl() //go:noescape func useT40(*T40) type T40 struct { m map[int]int } func newT40() *T40 { ret := T40{} ret.m = make(map[int]int, 42) // ERROR "live at call to makemap: &ret$" return &ret } func bad40() { t := newT40() // ERROR "stack object ret T40$" "stack object .autotmp_[0-9]+ runtime.hmap$" printnl() // ERROR "live at call to printnl: ret$" useT40(t) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 21 23:29:33 UTC 2023 - 953 bytes - Viewed (0) -
test/typeparam/slices.go
func TestMap() { s1 := []int{1, 2, 3} s2 := _Map(s1, func(i int) float64 { return float64(i) * 2.5 }) if want := []float64{2.5, 5, 7.5}; !_Equal(s2, want) { panic(fmt.Sprintf("_Map(%v, ...) = %v, want %v", s1, s2, want)) } s3 := []string{"Hello", "World"} s4 := _Map(s3, strings.ToLower) if want := []string{"hello", "world"}; !_Equal(s4, want) { panic(fmt.Sprintf("_Map(%v, strings.ToLower) = %v, want %v", s3, s4, want)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 7.8K bytes - Viewed (0) -
releasenotes/notes/concurrent-map-write.yaml
apiVersion: release-notes/v2 kind: bug-fix area: traffic-management releaseNotes: - |
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Mar 13 15:23:12 UTC 2024 - 171 bytes - Viewed (0) -
src/test/java/org/codelibs/core/collection/CaseInsensitiveMapTest.java
map.putAll(m); assertThat(map.get("THREE"), is("3")); assertThat(map.get("FOUR"), is("4")); assertThat(map.size(), is(4)); } /** * @throws Exception */ @Test public void testPerformance() throws Exception { for (int j = 0; j < 3; ++j) { final int num = 100000; final Map<String, String> hmap = new HashMap<String, String>();
Registered: Wed Jun 12 12:50:12 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 4K bytes - Viewed (0) -
pkg/config/mesh/kubemesh/watcher_test.go
cms, w := setup(t) rev := atomic.NewInt32(1) mkMap := func(m, d string) *v1.ConfigMap { mm := makeConfigMapWithName(m, "1", map[string]string{ key: fmt.Sprintf(`ingressClass: "%s"`, d), }) mm.ResourceVersion = fmt.Sprint(rev.Inc()) return mm } if _, err := cms.Create(context.Background(), mkMap(extraCmName, "init"), metav1.CreateOptions{}); err != nil { t.Fatal(err) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 7.7K bytes - Viewed (0) -
src/internal/types/testdata/spec/assignability.go
_Pointer = *int _Func = func(x int) string _Interface = interface{ m() int } _Map = map[string]int _Chan = chan int Basic _Basic Array _Array Slice _Slice Struct _Struct Pointer _Pointer Func _Func Interface _Interface Map _Map Chan _Chan Defined _Struct ) func (Defined) m() int
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 09 17:24:42 UTC 2023 - 5.1K bytes - Viewed (0) -
src/go/ast/example_test.go
// and AST nodes. cmap := ast.NewCommentMap(fset, f, f.Comments) // Remove the first variable declaration from the list of declarations. for i, decl := range f.Decls { if gen, ok := decl.(*ast.GenDecl); ok && gen.Tok == token.VAR { copy(f.Decls[i:], f.Decls[i+1:]) f.Decls = f.Decls[:len(f.Decls)-1] break } } // Use the comment map to filter comments that don't belong anymore
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 21:44:50 UTC 2024 - 6.1K bytes - Viewed (0)