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

Unified Diff: test/dart_codegen/expect/collection/linked_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
Index: test/dart_codegen/expect/collection/linked_hash_map.dart
diff --git a/test/dart_codegen/expect/collection/linked_hash_map.dart b/test/dart_codegen/expect/collection/linked_hash_map.dart
index d6d01180e1b28957d391c4671a4a6a62956d6ba1..23d624615e9a780a534c455daa79984265bd609b 100644
--- a/test/dart_codegen/expect/collection/linked_hash_map.dart
+++ b/test/dart_codegen/expect/collection/linked_hash_map.dart
@@ -1,39 +1,14 @@
part of dart.collection;
abstract class LinkedHashMap<K, V> implements HashMap<K, V> {
- factory LinkedHashMap({bool equals(K key1, K key2), int hashCode(K key),
- bool isValidKey(potentialKey)}) {
- if (isValidKey == null) {
- if (hashCode == null) {
- if (equals == null) {
- return new _LinkedHashMap<K, V>();
- }
- hashCode = _defaultHashCode;
- } else {
- if (identical(identityHashCode, hashCode) &&
- identical(identical, equals)) {
- return new _LinkedIdentityHashMap<K, V>();
- }
- if (equals == null) {
- equals = _defaultEquals;
- }
- }
- } else {
- if (hashCode == null) {
- hashCode = _defaultHashCode;
- }
- if (equals == null) {
- equals = _defaultEquals;
- }
- }
- return new _LinkedCustomHashMap<K, V>(equals, hashCode, isValidKey);
- }
- factory LinkedHashMap.identity() = _LinkedIdentityHashMap<K, V>;
+ external factory LinkedHashMap({bool equals(K key1, K key2),
+ int hashCode(K key), bool isValidKey(potentialKey)});
+ external factory LinkedHashMap.identity();
factory LinkedHashMap.from(Map other) {
LinkedHashMap<K, V> result = new LinkedHashMap<K, V>();
other.forEach((k, v) {
result[k] = DDC$RT.cast(v, dynamic, V, "CastGeneral",
- """line 99, column 40 of dart:collection/linked_hash_map.dart: """,
+ """line 74, column 40 of dart:collection/linked_hash_map.dart: """,
v is V, false);
});
return result;
« no previous file with comments | « test/dart_codegen/expect/collection/hash_set.dart ('k') | test/dart_codegen/expect/collection/linked_hash_set.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698