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

Side by Side Diff: runtime/bin/directory_impl.dart

Issue 10919290: Issue 3476. Final variables don't have to have constant initializers (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 5
6 class _Directory implements Directory { 6 class _Directory implements Directory {
7 static const CREATE_REQUEST = 0; 7 static const CREATE_REQUEST = 0;
8 static const DELETE_REQUEST = 1; 8 static const DELETE_REQUEST = 1;
9 static const EXISTS_REQUEST = 2; 9 static const EXISTS_REQUEST = 2;
10 static const CREATE_TEMP_REQUEST = 3; 10 static const CREATE_TEMP_REQUEST = 3;
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 _directoryService = _newServicePort(); 198 _directoryService = _newServicePort();
199 } 199 }
200 } 200 }
201 201
202 final String _path; 202 final String _path;
203 SendPort _directoryService; 203 SendPort _directoryService;
204 } 204 }
205 205
206 class _DirectoryLister implements DirectoryLister { 206 class _DirectoryLister implements DirectoryLister {
207 _DirectoryLister(String path, bool recursive) { 207 _DirectoryLister(String path, bool recursive) {
208 final int LIST_DIRECTORY = 0; 208 const int LIST_DIRECTORY = 0;
209 final int LIST_FILE = 1; 209 const int LIST_FILE = 1;
210 final int LIST_ERROR = 2; 210 const int LIST_ERROR = 2;
211 final int LIST_DONE = 3; 211 const int LIST_DONE = 3;
212 212
213 final int RESPONSE_TYPE = 0; 213 final int RESPONSE_TYPE = 0;
214 final int RESPONSE_PATH = 1; 214 final int RESPONSE_PATH = 1;
215 final int RESPONSE_COMPLETE = 1; 215 final int RESPONSE_COMPLETE = 1;
216 final int RESPONSE_ERROR = 2; 216 final int RESPONSE_ERROR = 2;
217 217
218 List request = new List(3); 218 List request = new List(3);
219 request[0] = _Directory.LIST_REQUEST; 219 request[0] = _Directory.LIST_REQUEST;
220 request[1] = path; 220 request[1] = path;
221 request[2] = recursive; 221 request[2] = recursive;
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 } else { 285 } else {
286 throw e; 286 throw e;
287 } 287 }
288 } 288 }
289 289
290 Function _onDir; 290 Function _onDir;
291 Function _onFile; 291 Function _onFile;
292 Function _onDone; 292 Function _onDone;
293 Function _onError; 293 Function _onError;
294 } 294 }
OLDNEW
« no previous file with comments | « compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java ('k') | tests/co19/co19-compiler.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698