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

Unified Diff: pkg/docgen/lib/docgen.dart

Issue 237863002: pkg/docgen: add --indent-json option (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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: pkg/docgen/lib/docgen.dart
diff --git a/pkg/docgen/lib/docgen.dart b/pkg/docgen/lib/docgen.dart
index f35037c33ae9c5afaf3f974f3f71c54e1d453d0a..c23cd7d5dda3fddbc5b5b9dfcd32c62fc3d1e187 100644
--- a/pkg/docgen/lib/docgen.dart
+++ b/pkg/docgen/lib/docgen.dart
@@ -43,7 +43,7 @@ Future<bool> docgen(List<String> files, {String packageRoot,
List<String> excludeLibraries: const [],
bool includeDependentPackages: false, bool compile: false,
bool serve: false, bool noDocs: false, String startPage, String pubScript,
- String dartBinary}) {
+ String dartBinary, bool indentJSON: false}) {
var result;
if (!noDocs) {
viewer.ensureMovedViewerCode();
@@ -53,7 +53,8 @@ Future<bool> docgen(List<String> files, {String packageRoot,
introFileName: introFileName, out: out,
excludeLibraries: excludeLibraries,
includeDependentPackages: includeDependentPackages,
- startPage: startPage, pubScript: pubScript, dartBinary: dartBinary);
+ startPage: startPage, pubScript: pubScript, dartBinary: dartBinary,
+ indentJSON: indentJSON);
viewer.addBackViewerCode();
if (compile || serve) {
result.then((success) {

Powered by Google App Engine
This is Rietveld 408576698