| Index: pkg/compiler/lib/src/compiler.dart
|
| diff --git a/pkg/compiler/lib/src/compiler.dart b/pkg/compiler/lib/src/compiler.dart
|
| index 19fba4a53261a32e10354a9f31356e208b16d5e8..6b15e9b2ff78fc8906d4b30fa772952680fec75b 100644
|
| --- a/pkg/compiler/lib/src/compiler.dart
|
| +++ b/pkg/compiler/lib/src/compiler.dart
|
| @@ -278,6 +278,8 @@ abstract class Backend {
|
|
|
| List<CompilerTask> get tasks;
|
|
|
| + bool get canHandleCompilationFailed;
|
| +
|
| void onResolutionComplete() {}
|
|
|
| ItemCompilationContext createItemCompilationContext() {
|
| @@ -1574,6 +1576,12 @@ abstract class Compiler implements DiagnosticListener {
|
| api.Diagnostic.HINT);
|
| });
|
| }
|
| +
|
| + // TODO(sigurdm): The dart backend should handle failed compilations.
|
| + if (compilationFailed && !backend.canHandleCompilationFailed) {
|
| + return;
|
| + }
|
| +
|
| if (analyzeOnly) {
|
| if (!analyzeAll && !compilationFailed) {
|
| // No point in reporting unused code when [analyzeAll] is true: all
|
|
|