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

Unified Diff: sdk/lib/_internal/dartdoc/bin/dartdoc.dart

Issue 12446003: Support full dart2js output for dartdoc/apidoc. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased 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
Index: sdk/lib/_internal/dartdoc/bin/dartdoc.dart
diff --git a/sdk/lib/_internal/dartdoc/bin/dartdoc.dart b/sdk/lib/_internal/dartdoc/bin/dartdoc.dart
old mode 100755
new mode 100644
index ae69d0f6d9c084a99167de06e2b428cf8f4c6635..d38ea73574f187fc3b61d9d981b4db6c8d914909
--- a/sdk/lib/_internal/dartdoc/bin/dartdoc.dart
+++ b/sdk/lib/_internal/dartdoc/bin/dartdoc.dart
@@ -232,23 +232,28 @@ main() {
cleanOutputDirectory(dartdoc.outputDir);
- dartdoc.documentLibraries(entrypoints, libPath, pkgPath);
-
- Future compiled = compileScript(dartdoc.mode, dartdoc.outputDir, libPath);
- Future filesCopied = copyDirectory(scriptDir.append('../static'),
- dartdoc.outputDir);
-
- Future.wait([compiled, filesCopied]).then((futureStatus) {
+ print('Analyzing sources');
+ Future documented = dartdoc.documentLibraries(entrypoints, libPath, pkgPath);
+
+ documented.then((_) {
+ Future compiled = compileScript(dartdoc.mode, dartdoc.outputDir, libPath);
+ Future filesCopied = copyDirectory(scriptDir.append('../static'),
+ dartdoc.outputDir);
+
+ Future.wait([compiled, filesCopied]).then((_) {
+ dartdoc.cleanup();
+ if (dartdoc.totalLibraries + dartdoc.totalTypes +
+ dartdoc.totalMembers == 0) {
+ print('Nothing was documented!');
+ exit(1);
+ } else {
+ print('Documented ${dartdoc.totalLibraries} libraries, '
+ '${dartdoc.totalTypes} types, and ${dartdoc.totalMembers} '
+ 'members.');
+ }
+ });
+ }, onError: (AsyncError asyncError) {
+ print('Generation failed: ${asyncError.error}');
dartdoc.cleanup();
-
- if (dartdoc.totalLibraries + dartdoc.totalTypes +
- dartdoc.totalMembers == 0) {
- print('Nothing was documented!');
- exit(1);
- } else {
- print('Documented ${dartdoc.totalLibraries} libraries, '
- '${dartdoc.totalTypes} types, and ${dartdoc.totalMembers} '
- 'members.');
- }
});
}
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/mirrors/mirrors.dart ('k') | sdk/lib/_internal/dartdoc/lib/dartdoc.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698