- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 940 for oaslit (0.24 sec)
-
src/cmd/compile/internal/walk/complit.go
case ir.OMAPLIT: n := n.(*ir.CompLitExpr) if !t.IsMap() { base.Fatalf("anylit: not map") } maplit(n, var_, init) } } // oaslit handles special composite literal assignments. // It returns true if n's effects have been added to init, // in which case n should be dropped from the program by the caller. func oaslit(n *ir.AssignStmt, init *ir.Nodes) bool {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 08 19:03:54 UTC 2023 - 19.5K bytes - Viewed (0) -
src/cmd/compile/internal/walk/assign.go
n = ir.NewAssignStmt(base.Pos, left, typecheck.Expr(ir.NewBinaryExpr(base.Pos, n.(*ir.AssignOpStmt).AsOp, left, right))) } else { n.(*ir.AssignStmt).X = left } as := n.(*ir.AssignStmt) if oaslit(as, init) { return ir.NewBlockStmt(as.Pos(), nil) } if as.Y == nil { // TODO(austin): Check all "implicit zeroing" return as } if !base.Flag.Cfg.Instrumenting && ir.IsZero(as.Y) { return as
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 17:09:06 UTC 2024 - 20.3K bytes - Viewed (0) -
src/net/http/routing_index.go
// do something simpler: we find the position with the fewest patterns. var lmin, wmin []*pattern min := math.MaxInt hasLit := false for i, seg := range pat.segments { if seg.multi { break } if !seg.wild { hasLit = true lpats := idx.segments[routingIndexKey{s: seg.s, pos: i}] wpats := idx.segments[routingIndexKey{s: "", pos: i}]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 19 18:35:22 UTC 2023 - 4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ImmutableSortedMultisetTest.java
List<String> b = asList("c", "d"); ImmutableSortedMultiset<String> multiset = ImmutableSortedMultiset.<String>naturalOrder().addAll(a).addAll(b).build(); assertEquals(HashMultiset.create(asList("a", "b", "c", "d")), multiset); } public void testBuilderAddAllMultiset() { Multiset<String> a = HashMultiset.create(asList("a", "b", "b"));
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri May 17 15:27:58 UTC 2024 - 19.4K bytes - Viewed (0) -
maven-model/src/test/java/org/apache/maven/model/merge/MavenMergerTest.java
Contributor.newBuilder().email("******@****.***").build(); Model target = Model.newBuilder().contributors(Arrays.asList(contributor)).build(); Model source = Model.newBuilder().contributors(Arrays.asList(contributor)).build(); Model merged = mavenMerger.merge(target, source, true, null); assertThat(merged.getContributors(), contains(contributor));
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Wed Sep 06 08:39:32 UTC 2023 - 13.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/MultisetsTest.java
Multiset<String> ms2 = HashMultiset.create(Arrays.asList("a")); assertThat(Multisets.difference(ms1, ms2)).containsExactly("a", "b"); } public void testDifferenceWithRemovedElement() { Multiset<String> ms1 = HashMultiset.create(Arrays.asList("a", "b", "a")); Multiset<String> ms2 = HashMultiset.create(Arrays.asList("b"));
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri May 17 15:27:58 UTC 2024 - 11.3K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/util/KuromojiCSVUtilTest.java
actual = Arrays.asList(KuromojiCSVUtil.parse(value)); assertThat(actual, is(expected)); value = "\"Fess,FESS\""; expected = Arrays.asList("\"Fess,FESS\""); actual = Arrays.asList(KuromojiCSVUtil.parse(value)); assertThat(actual, is(expected)); value = " "; expected = Arrays.asList(" ");
Registered: Wed Jun 12 13:08:18 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 2.2K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceAllTester.java
(K k, V v) -> { int index = keys().asList().indexOf(k); return values().asList().get(index + 1); }); List<Entry<K, V>> expectedEntries = new ArrayList<>(); for (Entry<K, V> entry : getSampleEntries()) { int index = keys().asList().indexOf(entry.getKey()); expectedEntries.add(Helpers.mapEntry(entry.getKey(), values().asList().get(index + 1))); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri Oct 01 17:18:04 UTC 2021 - 4.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java
// Test all creation paths very lazily: by assuming asList() works public void testOf0() { assertThat(ImmutableDoubleArray.of().asList()).isEmpty(); } public void testOf1() { assertThat(ImmutableDoubleArray.of(0).asList()).containsExactly(0.0); } public void testOf2() { assertThat(ImmutableDoubleArray.of(0, 1).asList()).containsExactly(0.0, 1.0).inOrder(); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Jun 06 15:23:21 UTC 2023 - 20K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/ImmutableLongArrayTest.java
// Test all creation paths very lazily: by assuming asList() works public void testOf0() { assertThat(ImmutableLongArray.of().asList()).isEmpty(); } public void testOf1() { assertThat(ImmutableLongArray.of(0).asList()).containsExactly(0L); } public void testOf2() { assertThat(ImmutableLongArray.of(0, 1).asList()).containsExactly(0L, 1L).inOrder(); } public void testOf3() {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Jun 01 09:32:35 UTC 2023 - 20.2K bytes - Viewed (0)