| Index: test/dart_codegen/expect/collection/linked_hash_set.dart
|
| diff --git a/test/dart_codegen/expect/collection/linked_hash_set.dart b/test/dart_codegen/expect/collection/linked_hash_set.dart
|
| index 2f866dcaf0a38c4ec27c887542968973e63484ce..e353f6ccda0a42cd1c54f3c05a14b0085c32bda9 100644
|
| --- a/test/dart_codegen/expect/collection/linked_hash_set.dart
|
| +++ b/test/dart_codegen/expect/collection/linked_hash_set.dart
|
| @@ -1,41 +1,41 @@
|
| part of dart.collection;
|
| -
|
| -abstract class LinkedHashSet<E> implements HashSet<E> {
|
| - factory LinkedHashSet({bool equals(E e1, E e2), int hashCode(E e),
|
| - bool isValidKey(potentialKey)}) {
|
| - if (isValidKey == null) {
|
| - if (hashCode == null) {
|
| - if (equals == null) {
|
| - return new _LinkedHashSet<E>();
|
| + abstract class LinkedHashSet<E> implements HashSet<E> {factory LinkedHashSet({
|
| + bool equals(E e1, E e2), int hashCode(E e), bool isValidKey(potentialKey)}
|
| +) {
|
| + if (isValidKey == null) {
|
| + if (hashCode == null) {
|
| + if (equals == null) {
|
| + return new _LinkedHashSet<E>();
|
| }
|
| - hashCode = _defaultHashCode;
|
| - } else {
|
| - if (identical(identityHashCode, hashCode) &&
|
| - identical(identical, equals)) {
|
| - return new _LinkedIdentityHashSet<E>();
|
| + hashCode = _defaultHashCode;
|
| + }
|
| + else {
|
| + if (identical(identityHashCode, hashCode) && identical(identical, equals)) {
|
| + return new _LinkedIdentityHashSet<E>();
|
| }
|
| - 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 _LinkedCustomHashSet<E>(equals, hashCode, isValidKey);
|
| + return new _LinkedCustomHashSet<E>(equals, hashCode, isValidKey);
|
| }
|
| - factory LinkedHashSet.identity() = _LinkedIdentityHashSet<E>;
|
| - factory LinkedHashSet.from(Iterable<E> elements) {
|
| - LinkedHashSet<E> result = new LinkedHashSet<E>();
|
| - for (final E element in elements) {
|
| - result.add(element);
|
| + factory LinkedHashSet.identity() = _LinkedIdentityHashSet<E>;
|
| + factory LinkedHashSet.from(Iterable<E> elements) {
|
| + LinkedHashSet<E> result = new LinkedHashSet<E>();
|
| + for (final E element in elements) {
|
| + result.add(element);
|
| }
|
| - return result;
|
| + return result;
|
| }
|
| - void forEach(void action(E element));
|
| - Iterator<E> get iterator;
|
| + void forEach(void action(E element));
|
| + Iterator<E> get iterator;
|
| }
|
|
|