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

Side by Side Diff: tests/compiler/dart2js/jumps/data/simple_loops.dart

Issue 3007903002: Support annotations on assignment and postfix operations (Closed)
Patch Set: Updated cf. comments Created 3 years, 3 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
OLDNEW
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 simpleForLoop(count) { 5 simpleForLoop(count) {
6 for (int i = 0; i < count; i = i + 1) { 6 for (int i = 0; i < count; i++) {
7 print(i); 7 print(i);
8 } 8 }
9 } 9 }
10 10
11 simpleForLoopWithBreak(count) { 11 simpleForLoopWithBreak(count) {
12 /*0@break*/ for (int i = 0; i < count; i = i + 1) { 12 /*0@break*/ for (int i = 0; i < count; i = i + 1) {
13 if (i % 2 == 0) /*target=0*/ break; 13 if (i % 2 == 0) /*target=0*/ break;
14 print(i); 14 print(i);
15 } 15 }
16 } 16 }
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 simpleWhileLoopWithLabelledBreak(10); 230 simpleWhileLoopWithLabelledBreak(10);
231 simpleWhileLoopWithLabelledContinue(10); 231 simpleWhileLoopWithLabelledContinue(10);
232 232
233 simpleDoLoop(10); 233 simpleDoLoop(10);
234 simpleDoLoopWithBreak(10); 234 simpleDoLoopWithBreak(10);
235 simpleDoLoopWithContinue(10); 235 simpleDoLoopWithContinue(10);
236 simpleDoLoopWithBreakAndContinue(10); 236 simpleDoLoopWithBreakAndContinue(10);
237 simpleDoLoopWithLabelledBreak(10); 237 simpleDoLoopWithLabelledBreak(10);
238 simpleDoLoopWithLabelledContinue(10); 238 simpleDoLoopWithLabelledContinue(10);
239 } 239 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/inference/inference_test_helper.dart ('k') | tests/compiler/dart2js/jumps/jump_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698