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

Unified Diff: sdk/lib/io/directory_impl.dart

Issue 12328104: Change new List(n) to return fixed length list. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge to head. Created 7 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
Index: sdk/lib/io/directory_impl.dart
diff --git a/sdk/lib/io/directory_impl.dart b/sdk/lib/io/directory_impl.dart
index 5963d8390af08d1886e1df67d758de47d3d4afef..2b519e704b3c8468dff80bd3b5dc7a57f83f2301 100644
--- a/sdk/lib/io/directory_impl.dart
+++ b/sdk/lib/io/directory_impl.dart
@@ -31,7 +31,7 @@ class _Directory implements Directory {
Future<bool> exists() {
_ensureDirectoryService();
- List request = new List.fixedLength(2);
+ List request = new List(2);
request[0] = EXISTS_REQUEST;
request[1] = _path;
return _directoryService.call(request).then((response) {
@@ -110,7 +110,7 @@ class _Directory implements Directory {
Future<Directory> create({recursive: false}) {
if (recursive) return createRecursively();
_ensureDirectoryService();
- List request = new List.fixedLength(2);
+ List request = new List(2);
request[0] = CREATE_REQUEST;
request[1] = _path;
return _directoryService.call(request).then((response) {
@@ -149,7 +149,7 @@ class _Directory implements Directory {
Future<Directory> createTemp() {
_ensureDirectoryService();
- List request = new List.fixedLength(2);
+ List request = new List(2);
request[0] = CREATE_TEMP_REQUEST;
request[1] = _path;
return _directoryService.call(request).then((response) {
@@ -179,7 +179,7 @@ class _Directory implements Directory {
Future<Directory> delete({recursive: false}) {
_ensureDirectoryService();
- List request = new List.fixedLength(3);
+ List request = new List(3);
request[0] = DELETE_REQUEST;
request[1] = _path;
request[2] = recursive;
@@ -203,7 +203,7 @@ class _Directory implements Directory {
Future<Directory> rename(String newPath) {
_ensureDirectoryService();
- List request = new List.fixedLength(3);
+ List request = new List(3);
request[0] = RENAME_REQUEST;
request[1] = _path;
request[2] = newPath;

Powered by Google App Engine
This is Rietveld 408576698