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

Unified Diff: runtime/bin/file.dart

Issue 9662002: Prevent creation of additional FileMode and Encoding objects (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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
« no previous file with comments | « no previous file | runtime/bin/input_stream.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/file.dart
diff --git a/runtime/bin/file.dart b/runtime/bin/file.dart
index 03709352b2541f97719f573542643953caeecf3a..b9d906b9c67a425780e801938fba923376903508 100644
--- a/runtime/bin/file.dart
+++ b/runtime/bin/file.dart
@@ -7,10 +7,10 @@
* FileMode describes the modes in which a file can be opened.
*/
class FileMode {
- static final READ = const FileMode(0);
- static final WRITE = const FileMode(1);
- static final APPEND = const FileMode(2);
- const FileMode(int this._mode);
+ static final READ = const FileMode._internal(0);
+ static final WRITE = const FileMode._internal(1);
+ static final APPEND = const FileMode._internal(2);
+ const FileMode._internal(int this._mode);
final int _mode;
}
« no previous file with comments | « no previous file | runtime/bin/input_stream.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698