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

Side by Side Diff: test/dart_codegen/expect/collection/linked_hash_set.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 unified diff | Download patch
OLDNEW
1 part of dart.collection; 1 part of dart.collection;
2 2 abstract class LinkedHashSet<E> implements HashSet<E> {factory LinkedHashSet({
3 abstract class LinkedHashSet<E> implements HashSet<E> { 3 bool equals(E e1, E e2), int hashCode(E e), bool isValidKey(potentialKey)}
4 factory LinkedHashSet({bool equals(E e1, E e2), int hashCode(E e), 4 ) {
5 bool isValidKey(potentialKey)}) { 5 if (isValidKey == null) {
6 if (isValidKey == null) { 6 if (hashCode == null) {
7 if (hashCode == null) { 7 if (equals == null) {
8 if (equals == null) { 8 return new _LinkedHashSet<E>();
9 return new _LinkedHashSet<E>();
10 } 9 }
11 hashCode = _defaultHashCode; 10 hashCode = _defaultHashCode;
12 } else { 11 }
13 if (identical(identityHashCode, hashCode) && 12 else {
14 identical(identical, equals)) { 13 if (identical(identityHashCode, hashCode) && identical(identical, equals)) {
15 return new _LinkedIdentityHashSet<E>(); 14 return new _LinkedIdentityHashSet<E>();
16 } 15 }
17 if (equals == null) { 16 if (equals == null) {
18 equals = _defaultEquals; 17 equals = _defaultEquals;
19 } 18 }
20 } 19 }
21 } else { 20 }
22 if (hashCode == null) { 21 else {
23 hashCode = _defaultHashCode; 22 if (hashCode == null) {
23 hashCode = _defaultHashCode;
24 } 24 }
25 if (equals == null) { 25 if (equals == null) {
26 equals = _defaultEquals; 26 equals = _defaultEquals;
27 } 27 }
28 } 28 }
29 return new _LinkedCustomHashSet<E>(equals, hashCode, isValidKey); 29 return new _LinkedCustomHashSet<E>(equals, hashCode, isValidKey);
30 } 30 }
31 factory LinkedHashSet.identity() = _LinkedIdentityHashSet<E>; 31 factory LinkedHashSet.identity() = _LinkedIdentityHashSet<E>;
32 factory LinkedHashSet.from(Iterable<E> elements) { 32 factory LinkedHashSet.from(Iterable<E> elements) {
33 LinkedHashSet<E> result = new LinkedHashSet<E>(); 33 LinkedHashSet<E> result = new LinkedHashSet<E>();
34 for (final E element in elements) { 34 for (final E element in elements) {
35 result.add(element); 35 result.add(element);
36 } 36 }
37 return result; 37 return result;
38 } 38 }
39 void forEach(void action(E element)); 39 void forEach(void action(E element));
40 Iterator<E> get iterator; 40 Iterator<E> get iterator;
41 } 41 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698