2014-09-05 19:59:20 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
////foo: [|switch|] (1) {
|
|
|
|
//// [|case|] 1:
|
|
|
|
//// [|case|] 2:
|
|
|
|
//// [|break|];
|
|
|
|
//// [|case|] 3:
|
|
|
|
//// switch (2) {
|
|
|
|
//// case 1:
|
|
|
|
//// [|break|] foo;
|
|
|
|
//// continue; // invalid
|
|
|
|
//// default:
|
|
|
|
//// break;
|
|
|
|
//// }
|
|
|
|
//// [|default|]:
|
|
|
|
//// [|break|];
|
|
|
|
////}
|
|
|
|
|
|
|
|
test.ranges().forEach(r => {
|
|
|
|
goTo.position(r.start);
|
2014-09-10 20:54:10 +02:00
|
|
|
verify.occurrencesAtPositionCount(test.ranges().length);
|
2014-09-05 19:59:20 +02:00
|
|
|
|
|
|
|
test.ranges().forEach(range => {
|
|
|
|
verify.occurrencesAtPositionContains(range, false);
|
|
|
|
});
|
|
|
|
});
|