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

Unified Diff: pkg/front_end/lib/src/fasta/io.dart

Issue 2827543006: Make zero-termination optional. (Closed)
Patch Set: Minor problems found during testing. Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/scanner/io.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/lib/src/fasta/io.dart
diff --git a/pkg/front_end/lib/src/fasta/io.dart b/pkg/front_end/lib/src/fasta/io.dart
index 6c8eb9dc74eb1134fea748d5d643012f8bd11c34..4754d94a9838dda04445f2e557036b15e42e0c35 100644
--- a/pkg/front_end/lib/src/fasta/io.dart
+++ b/pkg/front_end/lib/src/fasta/io.dart
@@ -12,9 +12,11 @@ import 'errors.dart' show inputError;
import 'scanner/io.dart' as scanner_io show readBytesFromFile;
-Future<List<int>> readBytesFromFile(Uri uri) async {
+Future<List<int>> readBytesFromFile(Uri uri,
+ {bool ensureZeroTermination: true}) async {
try {
- return await scanner_io.readBytesFromFile(uri);
+ return await scanner_io.readBytesFromFile(uri,
+ ensureZeroTermination: ensureZeroTermination);
} on FileSystemException catch (e) {
String message = e.message;
String osMessage = e.osError?.message;
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/scanner/io.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698