Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1774)

Unified Diff: test/dart_codegen/expect/collection/hash_map.dart

Issue 1148283010: Remove dart backend (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: test/dart_codegen/expect/collection/hash_map.dart
diff --git a/test/dart_codegen/expect/collection/hash_map.dart b/test/dart_codegen/expect/collection/hash_map.dart
deleted file mode 100644
index ad6d36aa991eef1e2ec4290176394bc15fdc6dfd..0000000000000000000000000000000000000000
--- a/test/dart_codegen/expect/collection/hash_map.dart
+++ /dev/null
@@ -1,30 +0,0 @@
-part of dart.collection;
- bool _defaultEquals(Object a, Object b) => a == b;
- int _defaultHashCode(Object a) => a.hashCode;
- typedef bool _Equality<K>(K a, K b);
- typedef int _Hasher<K>(K object);
- abstract class HashMap<K, V> implements Map<K, V> {external factory HashMap({
- bool equals(K key1, K key2), int hashCode(K key), bool isValidKey(potentialKey)}
-);
- external factory HashMap.identity();
- factory HashMap.from(Map other) {
- HashMap<K, V> result = new HashMap<K, V>();
- other.forEach((k, v) {
- result[DEVC$RT.cast(k, dynamic, K, "CompositeCast", """line 87, column 35 of dart:collection/hash_map.dart: """, k is K, false)] = DEVC$RT.cast(v, dynamic, V, "CompositeCast", """line 87, column 40 of dart:collection/hash_map.dart: """, v is V, false);
- }
- );
- return result;
- }
- factory HashMap.fromIterable(Iterable iterable, {
- K key(element), V value(element)}
-) {
- HashMap<K, V> map = new HashMap<K, V>();
- Maps._fillMapWithMappedIterable(map, iterable, key, value);
- return map;
- }
- factory HashMap.fromIterables(Iterable<K> keys, Iterable<V> values) {
- HashMap<K, V> map = new HashMap<K, V>();
- Maps._fillMapWithIterables(map, keys, values);
- return map;
- }
-}
« no previous file with comments | « test/dart_codegen/expect/collection/collections.dart ('k') | test/dart_codegen/expect/collection/hash_set.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698