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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..21a6152db3c3d6386115257a8e1ca4a6b3b98083 100644
--- a/test/dart_codegen/expect/collection/linked_hash_set.dart
+++ b/test/dart_codegen/expect/collection/linked_hash_set.dart
@@ -1,34 +1,9 @@
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>();
- }
- hashCode = _defaultHashCode;
- } else {
- if (identical(identityHashCode, hashCode) &&
- identical(identical, equals)) {
- return new _LinkedIdentityHashSet<E>();
- }
- if (equals == null) {
- equals = _defaultEquals;
- }
- }
- } else {
- if (hashCode == null) {
- hashCode = _defaultHashCode;
- }
- if (equals == null) {
- equals = _defaultEquals;
- }
- }
- return new _LinkedCustomHashSet<E>(equals, hashCode, isValidKey);
- }
- factory LinkedHashSet.identity() = _LinkedIdentityHashSet<E>;
+ external factory LinkedHashSet({bool equals(E e1, E e2), int hashCode(E e),
+ bool isValidKey(potentialKey)});
+ external factory LinkedHashSet.identity();
factory LinkedHashSet.from(Iterable<E> elements) {
LinkedHashSet<E> result = new LinkedHashSet<E>();
for (final E element in elements) {
« 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