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

Unified Diff: frog/leg/tools/mini_parser.dart

Issue 8883017: Split File into File and RandomAccessFile. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Minor updates. Created 9 years 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
Index: frog/leg/tools/mini_parser.dart
diff --git a/frog/leg/tools/mini_parser.dart b/frog/leg/tools/mini_parser.dart
index 8f5dc568336e8bb9627408042af631583976c048..ae4f1049ed9ca6977e2dd9b9b7f3d053c93f8bac 100644
--- a/frog/leg/tools/mini_parser.dart
+++ b/frog/leg/tools/mini_parser.dart
@@ -92,8 +92,7 @@ Token scan(SourceFile source) {
}
List<int> read(String filename) {
- File file = new File(filename);
- file.openSync();
+ File file = new File(filename).openSync();
bool threw = true;
try {
int size = file.lengthSync();

Powered by Google App Engine
This is Rietveld 408576698