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

Unified Diff: lib/src/call_chain_visitor.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/call_chain_visitor.dart
diff --git a/lib/src/call_chain_visitor.dart b/lib/src/call_chain_visitor.dart
index 5b3683e3b896324a6ffc2dcd815782675be88904..84a051aba84018d80f33a54cf54bffdfdafb0a40 100644
--- a/lib/src/call_chain_visitor.dart
+++ b/lib/src/call_chain_visitor.dart
@@ -30,7 +30,7 @@ class CallChainVisitor {
/// The mixed method calls and property accesses in the call chain in the
/// order that they appear in the source.
- final List <Expression> _calls;
+ final List<Expression> _calls;
/// Whether or not a [Rule] is currently active for the call chain.
bool _ruleEnabled = false;
@@ -74,9 +74,8 @@ class CallChainVisitor {
// .length;
var properties = [];
if (target is SimpleIdentifier) {
- properties = calls
- .takeWhile((call) => call is! MethodInvocation)
- .toList();
+ properties =
+ calls.takeWhile((call) => call is! MethodInvocation).toList();
}
calls.removeRange(0, properties.length);

Powered by Google App Engine
This is Rietveld 408576698