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

Unified Diff: test/splitting/invocations.stmt

Issue 1355203002: Handle index expressions in the middle of call chains. (Closed) Base URL: https://github.com/dart-lang/dart_style.git@master
Patch Set: Handle chained indexes. Created 5 years, 3 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 | « test/regression/other/analysis_server.unit ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/splitting/invocations.stmt
diff --git a/test/splitting/invocations.stmt b/test/splitting/invocations.stmt
index 3d2a5032d43c525b6e9249a4827e1f3af5538758..e22e28307912dd0575938bd3d91aa6d4b57c7ee9 100644
--- a/test/splitting/invocations.stmt
+++ b/test/splitting/invocations.stmt
@@ -159,4 +159,34 @@ object
?.method()
.method()
?.method()
- .method();
+ .method();
+>>> index in property chain
+someReceiverObject.property1.property2
+ .property3[0]
+ .property4
+ .property5
+ .property6;
+<<<
+someReceiverObject
+ .property1
+ .property2
+ .property3[0]
+ .property4
+ .property5
+ .property6;
+>>> chained indexes
+someReceiverObject.property1.property2
+ .property3[argument]
+ [argument][argument]
+ .property4
+ .property5
+ .property6;
+<<<
+someReceiverObject
+ .property1
+ .property2
+ .property3[argument][argument]
+ [argument]
+ .property4
+ .property5
+ .property6;
« no previous file with comments | « test/regression/other/analysis_server.unit ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698