2014-07-13 01:04:16 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
// @BaselineFile: bpSpan_switch.baseline
|
|
|
|
// @Filename: bpSpan_switch.ts
|
|
|
|
|
|
|
|
////var x = 10;
|
|
|
|
////switch (x) {
|
|
|
|
//// case 5:
|
|
|
|
//// x++;
|
|
|
|
//// break;
|
|
|
|
//// case 10:
|
|
|
|
//// {
|
|
|
|
//// x--;
|
|
|
|
//// break;
|
|
|
|
//// }
|
|
|
|
//// default:
|
|
|
|
//// x = x *10;
|
|
|
|
////}
|
|
|
|
////switch (x)
|
|
|
|
////{
|
|
|
|
//// case 5:
|
|
|
|
//// x++;
|
|
|
|
//// break;
|
|
|
|
//// case 10:
|
|
|
|
//// {
|
|
|
|
//// x--;
|
|
|
|
//// break;
|
|
|
|
//// }
|
|
|
|
//// default:
|
|
|
|
//// {
|
|
|
|
//// x = x * 10;
|
|
|
|
//// }
|
|
|
|
////}
|
2014-10-21 04:07:18 +02:00
|
|
|
////switch ((function foo() {
|
|
|
|
//// return x * 30;
|
|
|
|
////})()) {
|
|
|
|
//// case (function bar() {
|
|
|
|
//// return 30;
|
|
|
|
//// })():
|
|
|
|
//// x++;
|
|
|
|
////}
|
2014-07-13 01:04:16 +02:00
|
|
|
verify.baselineCurrentFileBreakpointLocations();
|