2014-08-27 02:24:11 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
2014-09-10 20:54:10 +02:00
|
|
|
////[|switch|] (10) {
|
|
|
|
//// [|case|] 1:
|
|
|
|
//// [|case|] 2:
|
|
|
|
//// [|case|] 4:
|
|
|
|
//// [|case|] 8:
|
2014-08-27 02:24:11 +02:00
|
|
|
//// foo: switch (20) {
|
|
|
|
//// case 1:
|
|
|
|
//// case 2:
|
|
|
|
//// break;
|
|
|
|
//// default:
|
|
|
|
//// break foo;
|
|
|
|
//// }
|
2014-09-10 20:54:10 +02:00
|
|
|
//// [|case|] 0xBEEF:
|
|
|
|
//// [|default|]:
|
|
|
|
//// [|break|];
|
|
|
|
//// [|case|] 16:
|
2014-08-27 02:24:11 +02:00
|
|
|
////}
|
|
|
|
|
|
|
|
|
2014-09-10 20:54:10 +02:00
|
|
|
test.ranges().forEach(r => {
|
|
|
|
goTo.position(r.start);
|
|
|
|
verify.occurrencesAtPositionCount(test.ranges().length);
|
2014-08-27 02:24:11 +02:00
|
|
|
|
|
|
|
test.ranges().forEach(range => {
|
|
|
|
verify.occurrencesAtPositionContains(range, false);
|
|
|
|
});
|
2014-09-10 20:54:10 +02:00
|
|
|
});
|