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

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

Issue 10035056: Fix a number of editor errors and warnings in io tests (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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 /** 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 final READ = const FileMode._internal(0); 10 static final READ = const FileMode._internal(0);
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 * not truncated. 112 * not truncated.
113 */ 113 */
114 void open(FileMode mode, void callback(RandomAccessFile opened)); 114 void open(FileMode mode, void callback(RandomAccessFile opened));
115 115
116 /** 116 /**
117 * Synchronously open the file for random access operations. The 117 * Synchronously open the file for random access operations. The
118 * result is a RandomAccessFile on which random access operations 118 * result is a RandomAccessFile on which random access operations
119 * can be performed. Opened RandomAccessFiles must be closed using 119 * can be performed. Opened RandomAccessFiles must be closed using
120 * the [close] method. 120 * the [close] method.
121 * 121 *
122 * See [open] for information on the [:mode:] argument. 122 * The default value for [mode] is [:FileMode.READ:].
123 *
124 * See [open] for information on the [mode] argument.
123 */ 125 */
124 RandomAccessFile openSync(FileMode mode); 126 RandomAccessFile openSync([FileMode mode]);
125 127
126 /** 128 /**
127 * Get the canonical full path corresponding to the file name. The 129 * Get the canonical full path corresponding to the file name. The
128 * callback is called with the result when the 130 * callback is called with the result when the
129 * fullPath operation completes. If the operation fails the 131 * fullPath operation completes. If the operation fails the
130 * [onError] function registered on the file object is called. 132 * [onError] function registered on the file object is called.
131 */ 133 */
132 void fullPath(void callback(String path)); 134 void fullPath(void callback(String path));
133 135
134 /** 136 /**
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 sb.add(" ($osError)"); 392 sb.add(" ($osError)");
391 } 393 }
392 } else if (osError != null) { 394 } else if (osError != null) {
393 sb.add(": osError"); 395 sb.add(": osError");
394 } 396 }
395 return sb.toString(); 397 return sb.toString();
396 } 398 }
397 final String message; 399 final String message;
398 final OSError osError; 400 final OSError osError;
399 } 401 }
OLDNEW
« no previous file with comments | « no previous file | tests/standalone/src/io/ChunkedStreamTest.dart » ('j') | tests/standalone/src/io/ReadIntoConstList.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698