2014-09-05 19:59:20 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
////var arr = [1, 2, 3, 4];
|
|
|
|
////label1: for (var n in arr) {
|
|
|
|
//// break;
|
|
|
|
//// continue;
|
|
|
|
//// break label1;
|
|
|
|
//// continue label1;
|
|
|
|
////
|
|
|
|
//// label2: for (var i = 0; i < arr[n]; i++) {
|
|
|
|
//// break label1;
|
|
|
|
//// continue label1;
|
|
|
|
////
|
|
|
|
//// break;
|
|
|
|
//// continue;
|
|
|
|
//// break label2;
|
|
|
|
//// continue label2;
|
|
|
|
////
|
|
|
|
//// function foo() {
|
|
|
|
//// label3: while (true) {
|
|
|
|
//// break;
|
|
|
|
//// continue;
|
|
|
|
//// break label3;
|
|
|
|
//// continue label3;
|
|
|
|
////
|
|
|
|
//// // these cross function boundaries
|
|
|
|
//// br/*1*/eak label1;
|
|
|
|
//// cont/*2*/inue label1;
|
|
|
|
//// bre/*3*/ak label2;
|
|
|
|
//// c/*4*/ontinue label2;
|
|
|
|
////
|
|
|
|
//// label4: do {
|
|
|
|
//// break;
|
|
|
|
//// continue;
|
|
|
|
//// break label4;
|
|
|
|
//// continue label4;
|
|
|
|
////
|
|
|
|
//// break label3;
|
|
|
|
//// continue label3;
|
|
|
|
////
|
|
|
|
//// switch (10) {
|
|
|
|
//// case 1:
|
|
|
|
//// case 2:
|
|
|
|
//// break;
|
|
|
|
//// break label4;
|
|
|
|
//// default:
|
|
|
|
//// continue;
|
|
|
|
//// }
|
2017-01-18 22:55:31 +01:00
|
|
|
////
|
2014-09-05 19:59:20 +02:00
|
|
|
//// // these cross function boundaries
|
|
|
|
//// br/*5*/eak label1;
|
|
|
|
//// co/*6*/ntinue label1;
|
|
|
|
//// br/*7*/eak label2;
|
|
|
|
//// con/*8*/tinue label2;
|
|
|
|
//// () => { b/*9*/reak; }
|
|
|
|
//// } while (true)
|
|
|
|
//// }
|
|
|
|
//// }
|
|
|
|
//// }
|
|
|
|
////}
|
|
|
|
////
|
|
|
|
////label5: while (true) break label5;
|
|
|
|
////
|
|
|
|
////label7: while (true) co/*10*/ntinue label5;
|
|
|
|
|
2017-01-18 22:55:31 +01:00
|
|
|
goTo.eachMarker(() => verify.occurrencesAtPositionCount(0));
|