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

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

Issue 961493003: don't run dart gen on JS patch code (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « test/dart_codegen/expect/collection/collection ('k') | test/dart_codegen/expect/collection/hash_set.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
index dce0c7ced636f651fbbdd0c1c7780389b6ea356b..919504d7d9d124698c09656b34b16b9f13f73b50 100644
--- a/test/dart_codegen/expect/collection/hash_map.dart
+++ b/test/dart_codegen/expect/collection/hash_map.dart
@@ -7,39 +7,14 @@ int _defaultHashCode(a) => DDC$RT.cast(a.hashCode, dynamic, int, "CastGeneral",
typedef bool _Equality<K>(K a, K b);
typedef int _Hasher<K>(K object);
abstract class HashMap<K, V> implements Map<K, V> {
- factory HashMap({bool equals(K key1, K key2), int hashCode(K key),
- bool isValidKey(potentialKey)}) {
- if (isValidKey == null) {
- if (hashCode == null) {
- if (equals == null) {
- return new _HashMap<K, V>();
- }
- hashCode = _defaultHashCode;
- } else {
- if (identical(identityHashCode, hashCode) &&
- identical(identical, equals)) {
- return new _IdentityHashMap<K, V>();
- }
- if (equals == null) {
- equals = _defaultEquals;
- }
- }
- } else {
- if (hashCode == null) {
- hashCode = _defaultHashCode;
- }
- if (equals == null) {
- equals = _defaultEquals;
- }
- }
- return new _CustomHashMap<K, V>(equals, hashCode, isValidKey);
- }
- factory HashMap.identity() = _IdentityHashMap<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[k] = DDC$RT.cast(v, dynamic, V, "CastGeneral",
- """line 112, column 40 of dart:collection/hash_map.dart: """, v is V,
+ """line 87, column 40 of dart:collection/hash_map.dart: """, v is V,
false);
});
return result;
« no previous file with comments | « test/dart_codegen/expect/collection/collection ('k') | test/dart_codegen/expect/collection/hash_set.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698