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

Unified Diff: dart/sdk/lib/_internal/compiler/implementation/compiler.dart

Issue 233353002: Complain if there are pending classes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Update expectations for parser tests Created 6 years, 8 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 | dart/tests/compiler/dart2js/message_kind_helper.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « no previous file | dart/tests/compiler/dart2js/message_kind_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698