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

Unified Diff: lib/core/list.dart

Issue 11189141: Move ListImplementation from coreimpl to core, as a private member. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Reintroduced type. Created 8 years, 2 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 | « lib/compiler/implementation/lib/coreimpl_patch.dart ('k') | lib/coreimpl/coreimpl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/core/list.dart
diff --git a/lib/core/list.dart b/lib/core/list.dart
index 6dd841fdc728c734eb4ca6151cd66cfd90b39f85..2cb318571adb6ddfa6b9a2de1530276be79ee9eb 100644
--- a/lib/core/list.dart
+++ b/lib/core/list.dart
@@ -7,7 +7,7 @@
* fixed size or extendable.
*/
interface List<E> extends Collection<E>, Sequence<E>
- default ListImplementation<E> {
+ default _ListImpl<E> {
/**
* Creates a list of the given [length].
*
@@ -174,3 +174,20 @@ interface List<E> extends Collection<E>, Sequence<E>
*/
void insertRange(int start, int length, [E initialValue]);
}
+
+class _ListImpl<E> {
+ /**
+ * Factory implementation of List().
+ *
+ * Creates a list of the given [length].
+ */
+ external factory List([int length]);
+
+ /**
+ * Factory implementation of List.from().
+ *
+ * Creates a list with the elements of [other]. The order in
+ * the list will be the order provided by the iterator of [other].
+ */
+ external factory List.from(Iterable<E> other);
+}
« no previous file with comments | « lib/compiler/implementation/lib/coreimpl_patch.dart ('k') | lib/coreimpl/coreimpl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698