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

Unified Diff: lib/src/line_writer.dart

Issue 1182953003: Eat some dogfood! (Closed) Base URL: https://github.com/dart-lang/dart_style.git@master
Patch Set: Created 5 years, 6 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: lib/src/line_writer.dart
diff --git a/lib/src/line_writer.dart b/lib/src/line_writer.dart
index 728a5bffe72801879fe84f727ee032054febc92a..20eefe1aeac6258562d0628414fdb9ad1bb935c5 100644
--- a/lib/src/line_writer.dart
+++ b/lib/src/line_writer.dart
@@ -81,8 +81,8 @@ class LineWriter {
var cached = _blockCache[key];
if (cached != null) return cached;
- var writer = new LineWriter._(chunk.blockChunks, _lineEnding,
- pageWidth, column, _blockCache);
+ var writer = new LineWriter._(
+ chunk.blockChunks, _lineEnding, pageWidth, column, _blockCache);
// TODO(rnystrom): Passing in an initial indent here is hacky. The
// LineWriter ensures all but the first chunk have a block indent, and this
@@ -96,7 +96,8 @@ class LineWriter {
///
/// Since this is linear and line splitting is worse it's good to feed the
/// line splitter smaller lists of chunks when possible.
- FormatResult writeLines(int firstLineIndent, {bool isCompilationUnit: false}) {
+ FormatResult writeLines(int firstLineIndent,
+ {bool isCompilationUnit: false}) {
// Now that we know what hard splits there will be, break the chunks into
// independently splittable lines.
var newlines = 0;
« no previous file with comments | « lib/src/line_splitter.dart ('k') | lib/src/nesting.dart » ('j') | lib/src/source_visitor.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698