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

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

Powered by Google App Engine
This is Rietveld 408576698