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

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

Issue 963593002: Disable formatting and add new-lines to make tests faster. (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..0698ea205e51032625b101e5d099b045c73a2f32 100644
--- a/test/dart_codegen/expect/collection/linked_hash_map.dart
+++ b/test/dart_codegen/expect/collection/linked_hash_map.dart
@@ -1,52 +1,52 @@
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>();
+ 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>();
+ hashCode = _defaultHashCode;
+ }
+ else {
+ if (identical(identityHashCode, hashCode) && identical(identical, equals)) {
+ return new _LinkedIdentityHashMap<K, V>();
}
- if (equals == null) {
- equals = _defaultEquals;
+ if (equals == null) {
+ equals = _defaultEquals;
}
}
- } else {
- if (hashCode == null) {
- hashCode = _defaultHashCode;
+ }
+ else {
+ if (hashCode == null) {
+ hashCode = _defaultHashCode;
}
- if (equals == null) {
- equals = _defaultEquals;
+ if (equals == null) {
+ equals = _defaultEquals;
}
}
- return new _LinkedCustomHashMap<K, V>(equals, hashCode, isValidKey);
+ return new _LinkedCustomHashMap<K, V>(equals, hashCode, isValidKey);
}
- factory LinkedHashMap.identity() = _LinkedIdentityHashMap<K, V>;
- 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: """,
- v is V, false);
- });
- return result;
+ factory LinkedHashMap.identity() = _LinkedIdentityHashMap<K, V>;
+ 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: """, v is V, false);
+ }
+ );
+ return result;
}
- factory LinkedHashMap.fromIterable(Iterable iterable,
- {K key(element), V value(element)}) {
- LinkedHashMap<K, V> map = new LinkedHashMap<K, V>();
- Maps._fillMapWithMappedIterable(map, iterable, key, value);
- return map;
+ factory LinkedHashMap.fromIterable(Iterable iterable, {
+ K key(element), V value(element)}
+) {
+ LinkedHashMap<K, V> map = new LinkedHashMap<K, V>();
+ Maps._fillMapWithMappedIterable(map, iterable, key, value);
+ return map;
}
- factory LinkedHashMap.fromIterables(Iterable<K> keys, Iterable<V> values) {
- LinkedHashMap<K, V> map = new LinkedHashMap<K, V>();
- Maps._fillMapWithIterables(map, keys, values);
- return map;
+ factory LinkedHashMap.fromIterables(Iterable<K> keys, Iterable<V> values) {
+ LinkedHashMap<K, V> map = new LinkedHashMap<K, V>();
+ Maps._fillMapWithIterables(map, keys, values);
+ return map;
}
}

Powered by Google App Engine
This is Rietveld 408576698