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

Unified Diff: dart/frog/world.dart

Issue 8508016: Create class AST nodes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 1 month 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
Index: dart/frog/world.dart
diff --git a/dart/frog/world.dart b/dart/frog/world.dart
index 92e90250e6bb4346dc5d3b6138ffd1e8fad85f54..2110844e75d66ed7cad3fa2a56ed3bb7eade4745 100644
--- a/dart/frog/world.dart
+++ b/dart/frog/world.dart
@@ -262,11 +262,13 @@ class World {
return !hasErrors;
}
+ /** Returns true if Leg handled the compilation job. */
bool runLeg() {
if (!options.enableLeg) return false;
bool res = withTiming('try leg compile', () => leg.compile(this));
if (!res && options.legOnly) {
fatal("Leg could not compile ${options.dartScript}");
+ return true; // In --leg_only, always "handle" the compilation.
}
return res;
}

Powered by Google App Engine
This is Rietveld 408576698