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 ba766cda7e8a00d24c45cc177da8c17719bf6851..4a072bdaeea07b328003815b4d6573b15ca825c3 100644 |
--- a/pkg/compiler/lib/src/source_file_provider.dart |
+++ b/pkg/compiler/lib/src/source_file_provider.dart |
@@ -130,10 +130,12 @@ List<int> readAll(String filename, {bool zeroTerminated: true}) { |
class CompilerSourceFileProvider extends SourceFileProvider { |
// TODO(johnniwinther): Remove this when no longer needed for the old compiler |
// API. |
- Future<List<int>> call(Uri resourceUri) => readFromUri(resourceUri); |
+ Future<List<int>> call(Uri resourceUri) => |
+ readFromUri(resourceUri).then((input) => input.data); |
@override |
- Future readFromUri(Uri uri, {InputKind inputKind: InputKind.utf8}) => |
+ Future<api.Input<List<int>>> readFromUri(Uri uri, |
+ {InputKind inputKind: InputKind.utf8}) => |
readBytesFromUri(uri, inputKind); |
} |