TypeScript/tests/baselines/reference/bpSpan_switch.baseline
2014-10-20 23:05:44 -07:00

272 lines
9.5 KiB
Plaintext

1 >var x = 10;
~~~~~~~~~~~~ => Pos: (0 to 11) SpanInfo: {"start":0,"length":10}
>var x = 10
>:=> (line 1, col 0) to (line 1, col 10)
--------------------------------
2 >switch (x) {
~~~~~~~~~~~~~ => Pos: (12 to 24) SpanInfo: {"start":12,"length":10}
>switch (x)
>:=> (line 2, col 0) to (line 2, col 10)
--------------------------------
3 > case 5:
~~~~~~~~~~~~ => Pos: (25 to 36) SpanInfo: {"start":45,"length":3}
>x++
>:=> (line 4, col 8) to (line 4, col 11)
--------------------------------
4 > x++;
~~~~~~~~~~~~~ => Pos: (37 to 49) SpanInfo: {"start":45,"length":3}
>x++
>:=> (line 4, col 8) to (line 4, col 11)
--------------------------------
5 > break;
~~~~~~~~~~~~~~~ => Pos: (50 to 64) SpanInfo: {"start":58,"length":5}
>break
>:=> (line 5, col 8) to (line 5, col 13)
--------------------------------
6 > case 10:
~~~~~~~~~~~~~ => Pos: (65 to 77) SpanInfo: {"start":100,"length":3}
>x--
>:=> (line 8, col 12) to (line 8, col 15)
--------------------------------
7 > {
~~~~~~~~~~ => Pos: (78 to 87) SpanInfo: {"start":100,"length":3}
>x--
>:=> (line 8, col 12) to (line 8, col 15)
--------------------------------
8 > x--;
~~~~~~~~~~~~~~~~~ => Pos: (88 to 104) SpanInfo: {"start":100,"length":3}
>x--
>:=> (line 8, col 12) to (line 8, col 15)
--------------------------------
9 > break;
~~~~~~~~~~~~~~~~~~~ => Pos: (105 to 123) SpanInfo: {"start":117,"length":5}
>break
>:=> (line 9, col 12) to (line 9, col 17)
--------------------------------
10 > }
~~~~~~~~~~ => Pos: (124 to 133) SpanInfo: {"start":117,"length":5}
>break
>:=> (line 9, col 12) to (line 9, col 17)
--------------------------------
11 > default:
~~~~~~~~~~~~~ => Pos: (134 to 146) SpanInfo: {"start":155,"length":9}
>x = x *10
>:=> (line 12, col 8) to (line 12, col 17)
--------------------------------
12 > x = x *10;
~~~~~~~~~~~~~~~~~~~ => Pos: (147 to 165) SpanInfo: {"start":155,"length":9}
>x = x *10
>:=> (line 12, col 8) to (line 12, col 17)
--------------------------------
13 >}
~~ => Pos: (166 to 167) SpanInfo: {"start":155,"length":9}
>x = x *10
>:=> (line 12, col 8) to (line 12, col 17)
--------------------------------
14 >switch (x)
~~~~~~~~~~~ => Pos: (168 to 178) SpanInfo: {"start":168,"length":10}
>switch (x)
>:=> (line 14, col 0) to (line 14, col 10)
--------------------------------
15 >{
~~ => Pos: (179 to 180) SpanInfo: {"start":201,"length":3}
>x++
>:=> (line 17, col 8) to (line 17, col 11)
--------------------------------
16 > case 5:
~~~~~~~~~~~~ => Pos: (181 to 192) SpanInfo: {"start":201,"length":3}
>x++
>:=> (line 17, col 8) to (line 17, col 11)
--------------------------------
17 > x++;
~~~~~~~~~~~~~ => Pos: (193 to 205) SpanInfo: {"start":201,"length":3}
>x++
>:=> (line 17, col 8) to (line 17, col 11)
--------------------------------
18 > break;
~~~~~~~~~~~~~~~ => Pos: (206 to 220) SpanInfo: {"start":214,"length":5}
>break
>:=> (line 18, col 8) to (line 18, col 13)
--------------------------------
19 > case 10:
~~~~~~~~~~~~~ => Pos: (221 to 233) SpanInfo: {"start":256,"length":3}
>x--
>:=> (line 21, col 12) to (line 21, col 15)
--------------------------------
20 > {
~~~~~~~~~~ => Pos: (234 to 243) SpanInfo: {"start":256,"length":3}
>x--
>:=> (line 21, col 12) to (line 21, col 15)
--------------------------------
21 > x--;
~~~~~~~~~~~~~~~~~ => Pos: (244 to 260) SpanInfo: {"start":256,"length":3}
>x--
>:=> (line 21, col 12) to (line 21, col 15)
--------------------------------
22 > break;
~~~~~~~~~~~~~~~~~~~ => Pos: (261 to 279) SpanInfo: {"start":273,"length":5}
>break
>:=> (line 22, col 12) to (line 22, col 17)
--------------------------------
23 > }
~~~~~~~~~~ => Pos: (280 to 289) SpanInfo: {"start":273,"length":5}
>break
>:=> (line 22, col 12) to (line 22, col 17)
--------------------------------
24 > default:
~~~~~~~~~~~~~ => Pos: (290 to 302) SpanInfo: {"start":325,"length":10}
>x = x * 10
>:=> (line 26, col 12) to (line 26, col 22)
--------------------------------
25 > {
~~~~~~~~~~ => Pos: (303 to 312) SpanInfo: {"start":325,"length":10}
>x = x * 10
>:=> (line 26, col 12) to (line 26, col 22)
--------------------------------
26 > x = x * 10;
~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (313 to 336) SpanInfo: {"start":325,"length":10}
>x = x * 10
>:=> (line 26, col 12) to (line 26, col 22)
--------------------------------
27 > }
~~~~~~~~~~ => Pos: (337 to 346) SpanInfo: {"start":325,"length":10}
>x = x * 10
>:=> (line 26, col 12) to (line 26, col 22)
--------------------------------
28 >}
~~ => Pos: (347 to 348) SpanInfo: {"start":325,"length":10}
>x = x * 10
>:=> (line 26, col 12) to (line 26, col 22)
--------------------------------
29 >switch ((function foo() {
~~~~~~~~ => Pos: (349 to 356) SpanInfo: {"start":349,"length":50}
>switch ((function foo() {
> return x * 30;
>})())
>:=> (line 29, col 0) to (line 31, col 5)
29 >switch ((function foo() {
~ => Pos: (357 to 357) SpanInfo: {"start":357,"length":41}
>(function foo() {
> return x * 30;
>})()
>:=> (line 29, col 8) to (line 31, col 4)
29 >switch ((function foo() {
~~~~~~~~~~~~~~~~~ => Pos: (358 to 374) SpanInfo: {"start":379,"length":13}
>return x * 30
>:=> (line 30, col 4) to (line 30, col 17)
--------------------------------
30 > return x * 30;
~~~~~~~~~~~~~~~~~~~ => Pos: (375 to 393) SpanInfo: {"start":379,"length":13}
>return x * 30
>:=> (line 30, col 4) to (line 30, col 17)
--------------------------------
31 >})()) {
~ => Pos: (394 to 394) SpanInfo: {"start":394,"length":1}
>}
>:=> (line 31, col 0) to (line 31, col 1)
31 >})()) {
~~~ => Pos: (395 to 397) SpanInfo: {"start":357,"length":41}
>(function foo() {
> return x * 30;
>})()
>:=> (line 29, col 8) to (line 31, col 4)
31 >})()) {
~ => Pos: (398 to 398) SpanInfo: {"start":349,"length":50}
>switch ((function foo() {
> return x * 30;
>})())
>:=> (line 29, col 0) to (line 31, col 5)
31 >})()) {
~~~ => Pos: (399 to 401) SpanInfo: {"start":466,"length":3}
>x++
>:=> (line 35, col 8) to (line 35, col 11)
--------------------------------
32 > case (function bar() {
~~~~~~~~ => Pos: (402 to 409) SpanInfo: {"start":466,"length":3}
>x++
>:=> (line 35, col 8) to (line 35, col 11)
32 > case (function bar() {
~~ => Pos: (410 to 411) SpanInfo: {"start":411,"length":45}
>(function bar() {
> return 30;
> })()
>:=> (line 32, col 9) to (line 34, col 8)
32 > case (function bar() {
~~~~~~~~~~~~~~~~~ => Pos: (412 to 428) SpanInfo: {"start":437,"length":9}
>return 30
>:=> (line 33, col 8) to (line 33, col 17)
--------------------------------
33 > return 30;
~~~~~~~~~~~~~~~~~~~ => Pos: (429 to 447) SpanInfo: {"start":437,"length":9}
>return 30
>:=> (line 33, col 8) to (line 33, col 17)
--------------------------------
34 > })():
~~~~~ => Pos: (448 to 452) SpanInfo: {"start":452,"length":1}
>}
>:=> (line 34, col 4) to (line 34, col 5)
34 > })():
~~~ => Pos: (453 to 455) SpanInfo: {"start":411,"length":45}
>(function bar() {
> return 30;
> })()
>:=> (line 32, col 9) to (line 34, col 8)
34 > })():
~~ => Pos: (456 to 457) SpanInfo: {"start":466,"length":3}
>x++
>:=> (line 35, col 8) to (line 35, col 11)
--------------------------------
35 > x++;
~~~~~~~~~~~~~ => Pos: (458 to 470) SpanInfo: {"start":466,"length":3}
>x++
>:=> (line 35, col 8) to (line 35, col 11)
--------------------------------
36 >}
~ => Pos: (471 to 471) SpanInfo: {"start":466,"length":3}
>x++
>:=> (line 35, col 8) to (line 35, col 11)