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

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

Issue 11238035: Make isEmpty a getter. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status file with co19 issue number. Created 8 years, 1 month 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
« no previous file with comments | « runtime/bin/directory.dart ('k') | runtime/bin/http_impl.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 /** 6 /**
7 * FileMode describes the modes in which a file can be opened. 7 * FileMode describes the modes in which a file can be opened.
8 */ 8 */
9 class FileMode { 9 class FileMode {
10 static const READ = const FileMode._internal(0); 10 static const READ = const FileMode._internal(0);
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 String get name; 367 String get name;
368 } 368 }
369 369
370 370
371 class FileIOException implements Exception { 371 class FileIOException implements Exception {
372 const FileIOException([String this.message = "", 372 const FileIOException([String this.message = "",
373 OSError this.osError = null]); 373 OSError this.osError = null]);
374 String toString() { 374 String toString() {
375 StringBuffer sb = new StringBuffer(); 375 StringBuffer sb = new StringBuffer();
376 sb.add("FileIOException"); 376 sb.add("FileIOException");
377 if (!message.isEmpty()) { 377 if (!message.isEmpty) {
378 sb.add(": $message"); 378 sb.add(": $message");
379 if (osError != null) { 379 if (osError != null) {
380 sb.add(" ($osError)"); 380 sb.add(" ($osError)");
381 } 381 }
382 } else if (osError != null) { 382 } else if (osError != null) {
383 sb.add(": osError"); 383 sb.add(": osError");
384 } 384 }
385 return sb.toString(); 385 return sb.toString();
386 } 386 }
387 final String message; 387 final String message;
388 final OSError osError; 388 final OSError osError;
389 } 389 }
OLDNEW
« no previous file with comments | « runtime/bin/directory.dart ('k') | runtime/bin/http_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698