79 lines
No EOL
2.3 KiB
TypeScript
79 lines
No EOL
2.3 KiB
TypeScript
/// <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
|
|
//// break label1;
|
|
//// continue label1;
|
|
//// break label2;
|
|
//// continue label2;
|
|
////
|
|
//// label4: do {
|
|
//// break;
|
|
//// continue;
|
|
//// break label4;
|
|
//// continue label4;
|
|
////
|
|
//// break label3;
|
|
//// continue label3;
|
|
////
|
|
//// switch (10) {
|
|
//// case 1:
|
|
//// case 2:
|
|
//// break;
|
|
//// break label4;
|
|
//// default:
|
|
//// continue;
|
|
//// }
|
|
////
|
|
//// // these cross function boundaries
|
|
//// break label1;
|
|
//// continue label1;
|
|
//// break label2;
|
|
//// continue label2;
|
|
//// () => { break; }
|
|
//// } while (true)
|
|
//// }
|
|
//// }
|
|
//// }
|
|
////}
|
|
////
|
|
////label5: [|while|] (true) [|br/**/eak|] label5;
|
|
////
|
|
////label7: while (true) continue label5;
|
|
|
|
test.ranges().forEach(r => {
|
|
goTo.position(r.start);
|
|
verify.occurrencesAtPositionCount(test.ranges().length);
|
|
|
|
test.ranges().forEach(range => {
|
|
verify.occurrencesAtPositionContains(range, false);
|
|
});
|
|
});
|
|
|
|
goTo.marker();
|
|
verify.occurrencesAtPositionCount(test.ranges().length);
|
|
test.ranges().forEach(range => {
|
|
verify.occurrencesAtPositionContains(range, false);
|
|
}); |