| Index: dart/sdk/lib/_internal/compiler/implementation/compiler.dart
|
| diff --git a/dart/sdk/lib/_internal/compiler/implementation/compiler.dart b/dart/sdk/lib/_internal/compiler/implementation/compiler.dart
|
| index 96b287618d588d3cdc0601665b9f6c3c7fc784c9..4ab4f2762113f32254fabae539b6430b8c5073fb 100644
|
| --- a/dart/sdk/lib/_internal/compiler/implementation/compiler.dart
|
| +++ b/dart/sdk/lib/_internal/compiler/implementation/compiler.dart
|
| @@ -437,6 +437,10 @@ abstract class Compiler implements DiagnosticListener {
|
|
|
| bool disableInlining = false;
|
|
|
| + /// True if compilation was aborted with a [CompilerCancelledException]. Only
|
| + /// set after Future retuned by [run] has completed.
|
| + bool compilerWasCancelled = false;
|
| +
|
| List<Uri> librariesToAnalyzeWhenRun;
|
|
|
| Tracer tracer;
|
| @@ -800,6 +804,7 @@ abstract class Compiler implements DiagnosticListener {
|
|
|
| return new Future.sync(() => runCompiler(uri)).catchError((error) {
|
| if (error is CompilerCancelledException) {
|
| + compilerWasCancelled = true;
|
| log('Error: $error');
|
| return false;
|
| }
|
|
|