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

Unified Diff: compiler/lib/implementation/array.dart

Issue 8948001: Updates dartc to recognize 'default' keyword on interface and updated factory method syntax (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Got rid of some problems. Created 9 years 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: compiler/lib/implementation/array.dart
diff --git a/compiler/lib/implementation/array.dart b/compiler/lib/implementation/array.dart
index 74f64e3d6784f7e0d1991061e8048f846106203e..1ce9166dc6028832d12079aa7a7ed866a506f049 100644
--- a/compiler/lib/implementation/array.dart
+++ b/compiler/lib/implementation/array.dart
@@ -2,8 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-class ListFactory {
- factory List<E>.from(Iterable<E> other) {
+class ListFactory<E> {
+ factory List.from(Iterable<E> other) {
List<E> list = new List<E>();
for (final e in other) {
list.add(e);
@@ -11,7 +11,7 @@ class ListFactory {
return list;
}
- factory List<E>([int length = null]) {
+ factory List([int length = null]) {
bool isFixed = true;
if (length === null) {
length = 0;

Powered by Google App Engine
This is Rietveld 408576698