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

Unified Diff: pkg/analyzer/lib/src/services/formatter_impl.dart

Issue 136863003: Line breaking plumbing (continued). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 11 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 | « no previous file | pkg/analyzer/lib/src/services/writer.dart » ('j') | pkg/analyzer/lib/src/services/writer.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/services/formatter_impl.dart
===================================================================
--- pkg/analyzer/lib/src/services/formatter_impl.dart (revision 31744)
+++ pkg/analyzer/lib/src/services/formatter_impl.dart (working copy)
@@ -367,7 +367,7 @@
final twoSlashes = new RegExp(r'//[^/]');
/// A weight for potential breakpoints.
- int breakWeight = null;
+ int breakWeight = DEFAULT_SPACE_WEIGHT;
/// Original pre-format selection information (may be null).
final Selection preSelection;
@@ -1464,7 +1464,7 @@
}
leadingSpaces = 0;
allowLineLeadingSpaces = false;
- breakWeight = null;
+ breakWeight = DEFAULT_SPACE_WEIGHT;
}
}
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/services/writer.dart » ('j') | pkg/analyzer/lib/src/services/writer.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698