| 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;
|
|
|