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

Unified Diff: tools/dom/docs/bin/docs.dart

Issue 13116021: Fix docs.dart, which has been sad and neglected. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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 | « sdk/lib/html/dartium/html_dartium.dart ('k') | tools/dom/docs/docs.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/docs/bin/docs.dart
diff --git a/tools/dom/docs/bin/docs.dart b/tools/dom/docs/bin/docs.dart
index 697243268ca547d807d3c9141c9838742b445401..ab5aebd62b8de604abce972837de16af965f5abf 100644
--- a/tools/dom/docs/bin/docs.dart
+++ b/tools/dom/docs/bin/docs.dart
@@ -18,10 +18,11 @@ final Path lib_path = scriptDir.append('../../../../sdk/').canonicalize();
main() {
print('Converting HTML docs from $lib_path to $json_path.');
- var anyErrors = convert(lib_path, json_path);
-
- print('Converted HTML docs ${anyErrors ? "with $anyErrors" : "without"}'
- ' errors.');
+ convert(lib_path, json_path)
+ .then((bool anyErrors) {
+ print('Converted HTML docs ${anyErrors ? "with $anyErrors" : "without"}'
Emily Fortuna 2013/03/27 21:21:47 if anyErrors is true, then wouldn't this print out
Andrei Mouravski 2013/03/27 21:47:26 Done.
+ ' errors.');
+ });
}
/**
@@ -29,4 +30,4 @@ main() {
* script.
*/
Path get scriptDir =>
- new Path(new Options().script).directoryPath;
+ new Path(new Options().script).directoryPath;
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | tools/dom/docs/docs.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698