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

Unified Diff: pkg/compiler/lib/src/source_file_provider.dart

Issue 2226173002: dart2js: fix bot failures - I made this private without realizing it was accessed for testing (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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: pkg/compiler/lib/src/source_file_provider.dart
diff --git a/pkg/compiler/lib/src/source_file_provider.dart b/pkg/compiler/lib/src/source_file_provider.dart
index b2cafcb3798905241e045841de4769d6d367f4c3..22273d49353f9b2aec1a89543eddffec3498042b 100644
--- a/pkg/compiler/lib/src/source_file_provider.dart
+++ b/pkg/compiler/lib/src/source_file_provider.dart
@@ -43,7 +43,7 @@ abstract class SourceFileProvider implements CompilerInput {
assert(resourceUri.scheme == 'file');
List<int> source;
try {
- source = _readAll(resourceUri.toFilePath());
+ source = readAll(resourceUri.toFilePath());
} on FileSystemException catch (ex) {
String message = ex.osError?.message;
String detail = message != null ? ' ($message)' : '';
@@ -97,7 +97,7 @@ abstract class SourceFileProvider implements CompilerInput {
}
}
-List<int> _readAll(String filename) {
+List<int> readAll(String filename) {
var file = (new File(filename)).openSync();
var length = file.lengthSync();
// +1 to have a 0 terminated list, see [Scanner].
« 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