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

Unified Diff: runtime/lib/growable_array.dart

Issue 8921033: Implement revised factories in the VM. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' 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: runtime/lib/growable_array.dart
===================================================================
--- runtime/lib/growable_array.dart (revision 2391)
+++ runtime/lib/growable_array.dart (working copy)
@@ -5,7 +5,7 @@
class GrowableObjectArray<T> implements List<T> {
ObjectArray<T> backingArray;
- factory GrowableObjectArray<T>._uninstantiable() {
+ factory GrowableObjectArray._uninstantiable() {
throw const UnsupportedOperationException(
"GrowableObjectArray can only be allocated by the VM");
}
@@ -94,7 +94,7 @@
backingArray = new ObjectArray<T>(capacity);
}
- factory GrowableObjectArray<T>.from(Collection<T> other) {
+ factory GrowableObjectArray.from(Collection<T> other) {
List<T> result = new GrowableObjectArray<T>();
result.addAll(other);
return result;

Powered by Google App Engine
This is Rietveld 408576698