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

Unified Diff: frog/minfrogc.dart

Issue 10453097: Frog now called directly in dartdoc (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Frog called directly from dartdoc Created 8 years, 7 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 | lib/dartdoc/dartdoc.dart » ('j') | lib/dartdoc/dartdoc.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/minfrogc.dart
diff --git a/frog/minfrogc.dart b/frog/minfrogc.dart
index 70af32ae053da61b3843c2675a3509e9e83030ec..421cbb6fe865fb3d54fb376f255321bf5447be8a 100644
--- a/frog/minfrogc.dart
+++ b/frog/minfrogc.dart
@@ -10,7 +10,13 @@
main() {
List<String> argv = (new Options()).arguments;
+ if (!internalMain(argv)) {
+ print("Compilation failed");
+ exit(1);
+ }
+}
+bool internalMain(List<String> argv) {
// Infer --out if there is none defined.
var outFileDefined = false;
for (var arg in argv) {
@@ -29,8 +35,5 @@ main() {
// run from '.'
var homedir = (new File('.')).fullPathSync();
- if (!compile(homedir, argv, new VMFileSystem())) {
- print("Compilation failed");
- exit(1);
- }
-}
+ return compile(homedir, argv, new VMFileSystem());
+}
« no previous file with comments | « no previous file | lib/dartdoc/dartdoc.dart » ('j') | lib/dartdoc/dartdoc.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698