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

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

Issue 118333003: Fix to handle loop variables not declared in the for. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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 | 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 >>>
11 for (var a=0; a<100; ++a) { print(a); } 11 for (var a=0; a<100; ++a) { print(a); }
12 <<< 12 <<<
13 for (var a = 0; a < 100; ++a) { 13 for (var a = 0; a < 100; ++a) {
14 print(a); 14 print(a);
15 } 15 }
16 >>> 16 >>>
17 for( 17 for(
18 var a=0; 18 var a=0;
19 a<100; 19 a<100;
20 ++a) 20 ++a)
21 { 21 {
22 print(a); 22 print(a);
23 } 23 }
24 <<< 24 <<<
25 for (var a = 0; a < 100; ++a) { 25 for (var a = 0; a < 100; ++a) {
26 print(a); 26 print(a);
27 }
28 >>>
29 for (x in xs) {
30 print(x);
31 }
32 <<<
33 for (x in xs) {
34 print(x);
27 } 35 }
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