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

Unified Diff: test/splitting/expressions.stmt

Issue 843653005: Increase nesting in conditional expressions. Fix #122. (Closed) Base URL: https://github.com/dart-lang/dart_style.git@master
Patch Set: Created 5 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 | « test/regression/122.unit ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/splitting/expressions.stmt
diff --git a/test/splitting/expressions.stmt b/test/splitting/expressions.stmt
index f034717ae3abe7a1812ae45ceacbf65bcb2fafc6..55640203258e3eff50a20ada94a5c9a3897475d1 100644
--- a/test/splitting/expressions.stmt
+++ b/test/splitting/expressions.stmt
@@ -93,4 +93,14 @@ someFunction(
(identifier *
(verylongIdentifier *
verylongIdentifier) *
- identifier);
+ identifier);
+>>> conditional operands are nested
+identifier ? identifier ? someParticularlyLongOperand : someParticularlyLongOperand : identifier ? someParticularlyLongOperand : someParticularlyLongOperand;
+<<<
+identifier ?
+ identifier ?
+ someParticularlyLongOperand :
+ someParticularlyLongOperand :
+ identifier ?
+ someParticularlyLongOperand :
+ someParticularlyLongOperand;
pquitslund 2015/01/09 18:59:12 Please shoot me if you ever see me write code like
« no previous file with comments | « test/regression/122.unit ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698