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

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: frogsh 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
« no previous file with comments | « dart/frog/tests/leg_only/src/BasicClassTest.dart ('k') | dart/tools/testing/test_configuration.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/frog/world.dart
diff --git a/dart/frog/world.dart b/dart/frog/world.dart
index 6457a77b6f2e92f5628fbecc07e711535967695b..5b652e45f55af552f62c904b32d4bcb58caf8635 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;
}
« no previous file with comments | « dart/frog/tests/leg_only/src/BasicClassTest.dart ('k') | dart/tools/testing/test_configuration.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698