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

Side by Side Diff: pkg/analyzer/test/services/data/stmt_tests.data

Issue 196983003: Fix handling of 'else if' statement blocks (dartbug.com/17363). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « pkg/analyzer/lib/src/services/formatter_impl.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 >>> 1 >>>
2 if (x && 2 if (x &&
3 y) { 3 y) {
4 print('!'); 4 print('!');
5 } 5 }
6 <<< 6 <<<
7 if (x && y) { 7 if (x && y) {
8 print('!'); 8 print('!');
9 } 9 }
10 >>> 10 >>>
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 while (true); 159 while (true);
160 <<< 160 <<<
161 while (true); 161 while (true);
162 >>> 162 >>>
163 for ( ; ; ) { 163 for ( ; ; ) {
164 print('!'); 164 print('!');
165 } 165 }
166 <<< 166 <<<
167 for ( ; ; ) { 167 for ( ; ; ) {
168 print('!'); 168 print('!');
169 }
170 >>>
171 main() {
172 var zero = 0;
173 if (0 == 0) {
174 zero = 0;
175 } else if (0 == 1) {
176 zero = 1;
177 } else if (0 == 2) {
178 zero = 2;
179 }
180 print(0);
181 }
182 <<<
183 main() {
184 var zero = 0;
185 if (0 == 0) {
186 zero = 0;
187 } else if (0 == 1) {
188 zero = 1;
189 } else if (0 == 2) {
190 zero = 2;
191 }
192 print(0);
169 } 193 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/services/formatter_impl.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698