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

Unified Diff: lib/src/line_splitter.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_splitter.dart
diff --git a/lib/src/line_splitter.dart b/lib/src/line_splitter.dart
index 6bc9e3534ce925c0dadb60f175f7ced9820684a1..ceaf94f1f4b41855e90720e422e399af17af99de 100644
--- a/lib/src/line_splitter.dart
+++ b/lib/src/line_splitter.dart
@@ -207,8 +207,8 @@ class LineSplitter {
/// Updates [solution] with the solution for [prefix] assuming it uses
/// [longerPrefix] for the next chunk.
- void _tryLongerPrefix(SplitSolution solution, LinePrefix prefix,
- LinePrefix longerPrefix) {
+ void _tryLongerPrefix(
+ SplitSolution solution, LinePrefix prefix, LinePrefix longerPrefix) {
var remaining = _findBestSplits(longerPrefix);
// If it wasn't possible to split the suffix given this nesting stack,
@@ -233,9 +233,8 @@ class LineSplitter {
var updatedValues = {};
for (var prefixRule in prefixRules) {
- var ruleValue = prefixRule == nextRule
- ? value
- : prefix.ruleValues[prefixRule];
+ var ruleValue =
+ prefixRule == nextRule ? value : prefix.ruleValues[prefixRule];
if (suffixRules.contains(prefixRule)) {
// If the same rule appears in both the prefix and suffix, then preserve
« no previous file with comments | « lib/src/line_prefix.dart ('k') | lib/src/line_writer.dart » ('j') | lib/src/source_visitor.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698