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

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

Issue 2781423003: Start preparing tests to accept binary compiler input. (Closed)
Patch Set: .. Created 3 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 | pkg/compiler/lib/src/use_unused_api.dart » ('j') | 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 eca1c62bf3b3b72cf0b89f262db10c57402dbf46..cf9a1a55f3e44d145ee657e4fef9504ce7b8e535 100644
--- a/pkg/compiler/lib/src/source_file_provider.dart
+++ b/pkg/compiler/lib/src/source_file_provider.dart
@@ -5,7 +5,6 @@
library source_file_provider;
import 'dart:async';
-import 'dart:convert';
import 'dart:io';
import 'dart:math' as math;
import 'dart:typed_data';
@@ -25,10 +24,6 @@ abstract class SourceFileProvider implements CompilerInput {
Map<Uri, SourceFile> sourceFiles = <Uri, SourceFile>{};
int dartCharactersRead = 0;
- Future<String> readStringFromUri(Uri resourceUri) {
- return readUtf8BytesFromUri(resourceUri).then(UTF8.decode);
- }
-
Future<List<int>> readUtf8BytesFromUri(Uri resourceUri) {
if (resourceUri.scheme == 'file') {
return _readFromFile(resourceUri);
@@ -416,7 +411,7 @@ class BazelInputProvider extends SourceFileProvider {
}
}
}
- var result = await readUtf8BytesFromUri(resolvedUri);
+ List<int> result = await readUtf8BytesFromUri(resolvedUri);
sourceFiles[uri] = sourceFiles[resolvedUri];
return result;
}
« no previous file with comments | « no previous file | pkg/compiler/lib/src/use_unused_api.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698