| Index: pkg/compiler/lib/src/compiler.dart
|
| diff --git a/pkg/compiler/lib/src/compiler.dart b/pkg/compiler/lib/src/compiler.dart
|
| index 82daf7def17787062cec6f0a080db260a5da7f4b..2084a7e37b535b75f65802da6dcfc911c0f1399e 100644
|
| --- a/pkg/compiler/lib/src/compiler.dart
|
| +++ b/pkg/compiler/lib/src/compiler.dart
|
| @@ -39,6 +39,7 @@ import 'environment.dart';
|
| import 'frontend_strategy.dart';
|
| import 'id_generator.dart';
|
| import 'io/source_information.dart' show SourceInformation;
|
| +import 'io/source_file.dart' show Binary;
|
| import 'js_backend/backend.dart' show JavaScriptBackend;
|
| import 'js_backend/element_strategy.dart' show ElementBackendStrategy;
|
| import 'kernel/kernel_strategy.dart';
|
| @@ -856,6 +857,11 @@ abstract class Compiler {
|
| node, 'Compiler.readScript not implemented.');
|
| }
|
|
|
| + Future<Binary> readBinary(Uri readableUri, [Spannable node]) {
|
| + throw new SpannableAssertionFailure(
|
| + node, 'Compiler.readBinary not implemented.');
|
| + }
|
| +
|
| Element lookupElementIn(ScopeContainerElement container, String name) {
|
| Element element = container.localLookup(name);
|
| if (element == null) {
|
| @@ -1542,6 +1548,9 @@ class _ScriptLoader implements ScriptLoader {
|
|
|
| Future<Script> readScript(Uri uri, [Spannable spannable]) =>
|
| compiler.readScript(uri, spannable);
|
| +
|
| + Future<Binary> readBinary(Uri uri, [Spannable spannable]) =>
|
| + compiler.readBinary(uri, spannable);
|
| }
|
|
|
| /// [ScriptLoader] used to ensure that scripts are not loaded accidentally
|
| @@ -1554,6 +1563,11 @@ class _NoScriptLoader implements ScriptLoader {
|
| throw compiler.reporter
|
| .internalError(spannable, "Script loading of '$uri' is not enabled.");
|
| }
|
| +
|
| + Future<Binary> readBinary(Uri uri, [Spannable spannable]) {
|
| + throw compiler.reporter
|
| + .internalError(spannable, "Script loading of '$uri' is not enabled.");
|
| + }
|
| }
|
|
|
| class _ElementScanner implements ElementScanner {
|
|
|