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

Unified Diff: lib/src/formatter_options.dart

Issue 1470263004: Add "-i" to command line to specify leading indent. (Closed) Base URL: https://github.com/dart-lang/dart_style.git@master
Patch Set: Created 5 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 | « bin/format.dart ('k') | lib/src/io.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/formatter_options.dart
diff --git a/lib/src/formatter_options.dart b/lib/src/formatter_options.dart
index aeb02e4096e4ba841325b9c0125bd4f450f9896e..69a46ffac44d8a951aaa142f68c4c37d3cef5060 100644
--- a/lib/src/formatter_options.dart
+++ b/lib/src/formatter_options.dart
@@ -14,6 +14,9 @@ class FormatterOptions {
/// The [OutputReporter] used to show the formatting results.
final OutputReporter reporter;
+ /// The number of spaces of indentation to prefix the output with.
+ final int indent;
+
/// The number of columns that formatted output should be constrained to fit
/// within.
final int pageWidth;
@@ -22,7 +25,7 @@ class FormatterOptions {
final bool followLinks;
FormatterOptions(this.reporter,
- {this.pageWidth: 80, this.followLinks: false});
+ {this.indent: 0, this.pageWidth: 80, this.followLinks: false});
}
/// How the formatter reports the results it produces.
« no previous file with comments | « bin/format.dart ('k') | lib/src/io.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698