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

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

Issue 909103002: Make an enumeration added for 1.9 a real enum (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/file.dart
diff --git a/sdk/lib/io/file.dart b/sdk/lib/io/file.dart
index 8a493a226a26d3401ff2c1023d2c3e83a9e263bb..ce7fa1b364b22dd57ce43e60c99a0db6c9d68a3d 100644
--- a/sdk/lib/io/file.dart
+++ b/sdk/lib/io/file.dart
@@ -34,16 +34,11 @@ const APPEND = FileMode.APPEND;
/// Type of lock when requesting a lock on a file.
-class FileLock {
- final int _lock;
-
+enum FileLock {
/// Shared file lock.
- static const SHARED = const FileLock._internal(0);
-
+ SHARED,
/// Exclusive file lock.
- static const EXCLUSIVE = const FileLock._internal(1);
-
- const FileLock._internal(this._lock);
+ EXCLUSIVE
}
/**
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698