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

Side by Side Diff: test/regression/45.stmt

Issue 846133002: Put conditional operators on the left. (Closed) Base URL: https://github.com/dart-lang/dart_style.git@master
Patch Set: Update version. 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 unified diff | Download patch
« no previous file with comments | « test/regression/44.stmt ('k') | test/regression/80.unit » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 >>> doesn't wrap after condition on single-line ifs 1 >>> doesn't wrap after condition on single-line ifs
2 foo() { 2 foo() {
3 if (xxxxxxxxxxxxxxxx || xxxxxxxxxxxxxxxxxxxxx) 3 if (xxxxxxxxxxxxxxxx || xxxxxxxxxxxxxxxxxxxxx)
4 return xxxxxxxxxxxxxx ? xxxxxxxxxxxxxxxxxxxx : xxxxxxxxxxxxxxxxxxxxxxxxxx; 4 return xxxxxxxxxxxxxx ? xxxxxxxxxxxxxxxxxxxx : xxxxxxxxxxxxxxxxxxxxxxxxxx;
5 } 5 }
6 <<< 6 <<<
7 foo() { 7 foo() {
8 if (xxxxxxxxxxxxxxxx || xxxxxxxxxxxxxxxxxxxxx) return xxxxxxxxxxxxxx ? 8 if (xxxxxxxxxxxxxxxx || xxxxxxxxxxxxxxxxxxxxx) return xxxxxxxxxxxxxx
9 xxxxxxxxxxxxxxxxxxxx : 9 ? xxxxxxxxxxxxxxxxxxxx
10 xxxxxxxxxxxxxxxxxxxxxxxxxx; 10 : xxxxxxxxxxxxxxxxxxxxxxxxxx;
11 } 11 }
OLDNEW
« no previous file with comments | « test/regression/44.stmt ('k') | test/regression/80.unit » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698