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

Unified Diff: tool/input_sdk/lib/core/list.dart

Issue 1059583002: Extension method support to move us closer to a valid List implementation. (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 9 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: tool/input_sdk/lib/core/list.dart
diff --git a/tool/input_sdk/lib/core/list.dart b/tool/input_sdk/lib/core/list.dart
index d4f6cfac81d7ac9122b1edbaf971d03b31d1915b..2ce69e1667da21e7931e101de92b435e64218996 100644
--- a/tool/input_sdk/lib/core/list.dart
+++ b/tool/input_sdk/lib/core/list.dart
@@ -51,7 +51,10 @@ part of dart.core;
* directly or through iterating an [Iterable] that is backed by the list, will
* break the iteration.
*/
+@SupportJsExtensionMethod()
+@JsPeerInterface(name: 'Array')
abstract class List<E> implements Iterable<E>, EfficientLength {
+ // Method that needs to be mixed in to all Dart subclasses that implement
vsm 2015/04/03 16:41:20 I don't understand this comment.
Jacob 2015/04/03 20:25:59 removed.
/**
* Creates a list of the given length.
*

Powered by Google App Engine
This is Rietveld 408576698