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

Side by Side Diff: packages/dart_style/test/splitting/loops.stmt

Issue 1521693002: Roll Observatory deps (charted -> ^0.3.0) (Closed) Base URL: https://chromium.googlesource.com/external/github.com/dart-lang/observatory_pub_packages.git@master
Patch Set: Created 5 years 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
OLDNEW
1 40 columns | 1 40 columns |
2 >>> do not split before first clause 2 >>> do not split before first clause
3 for (extremelyReallyQuiteVeryLongFirstClause; second; third) {} 3 for (extremelyReallyQuiteVeryLongFirstClause; second; third) {}
4 <<< 4 <<<
5 for (extremelyReallyQuiteVeryLongFirstClause; 5 for (extremelyReallyQuiteVeryLongFirstClause;
6 second; 6 second;
7 third) {} 7 third) {}
8 >>> split after first clause 8 >>> split after first clause
9 for (veryLongFirstClause; veryLongSecondClause; third) {} 9 for (veryLongFirstClause; veryLongSecondClause; third) {}
10 <<< 10 <<<
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 } 76 }
77 >>> don't force updates to split if clauses do 77 >>> don't force updates to split if clauses do
78 for (var a = 0; longCondition(expression); a += 1, b += 1) { 78 for (var a = 0; longCondition(expression); a += 1, b += 1) {
79 ; 79 ;
80 } 80 }
81 <<< 81 <<<
82 for (var a = 0; 82 for (var a = 0;
83 longCondition(expression); 83 longCondition(expression);
84 a += 1, b += 1) { 84 a += 1, b += 1) {
85 ; 85 ;
86 } 86 }
87 >>> single line for without curlies
88 for (i = 0; i < 10; i++) something(i);
89 <<<
90 for (i = 0; i < 10; i++) something(i);
91 >>> multi-line for without curlies
92 for (i = 0; i < 10; i++) somethingLonger(i);
93 <<<
94 for (i = 0; i < 10; i++)
95 somethingLonger(i);
96 >>> single line for-in without curlies
97 for (i in sequence) something(i);
98 <<<
99 for (i in sequence) something(i);
100 >>> multi-line for-in without curlies
101 for (i in sequence) somethingMuchLonger(i);
102 <<<
103 for (i in sequence)
104 somethingMuchLonger(i);
105 >>> single line while without curlies
106 while (condition) something(i);
107 <<<
108 while (condition) something(i);
109 >>> multi-line while without curlies
110 while (condition) somethingMuchLonger(i);
111 <<<
112 while (condition)
113 somethingMuchLonger(i);
OLDNEW
« no previous file with comments | « packages/dart_style/test/splitting/list_arguments.stmt ('k') | packages/dart_style/test/splitting/members.unit » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698