TypeScript/tests/baselines/reference/bpSpan_stmts.baseline
2015-02-26 17:19:19 -08:00

588 lines
21 KiB
Plaintext

1 >function f() {
~~~~~~~~~~~~~~~ => Pos: (0 to 14) SpanInfo: undefined
--------------------------------
2 > var y;
~~~~~~~~~~~ => Pos: (15 to 25) SpanInfo: undefined
--------------------------------
3 > var x = 0;
~~~~~~~~~~~~~~~ => Pos: (26 to 40) SpanInfo: {"start":30,"length":9}
>var x = 0
>:=> (line 3, col 4) to (line 3, col 13)
--------------------------------
4 > for (var i = 0; i < 10; i++) {
~~~~~~~~~~~~~~~~~~~ => Pos: (41 to 59) SpanInfo: {"start":50,"length":9}
>var i = 0
>:=> (line 4, col 9) to (line 4, col 18)
4 > for (var i = 0; i < 10; i++) {
~~~~~~~~ => Pos: (60 to 67) SpanInfo: {"start":61,"length":6}
>i < 10
>:=> (line 4, col 20) to (line 4, col 26)
4 > for (var i = 0; i < 10; i++) {
~~~~~~~~ => Pos: (68 to 75) SpanInfo: {"start":69,"length":3}
>i++
>:=> (line 4, col 28) to (line 4, col 31)
--------------------------------
5 > x += i;
~~~~~~~~~~~~~~~~ => Pos: (76 to 91) SpanInfo: {"start":84,"length":6}
>x += i
>:=> (line 5, col 8) to (line 5, col 14)
--------------------------------
6 > x *= 0;
~~~~~~~~~~~~~~~~ => Pos: (92 to 107) SpanInfo: {"start":100,"length":6}
>x *= 0
>:=> (line 6, col 8) to (line 6, col 14)
--------------------------------
7 > }
~~~~~~ => Pos: (108 to 113) SpanInfo: {"start":100,"length":6}
>x *= 0
>:=> (line 6, col 8) to (line 6, col 14)
--------------------------------
8 > if (x > 17) {
~~~~~~~~~~~~~~~~~~ => Pos: (114 to 131) SpanInfo: {"start":118,"length":11}
>if (x > 17)
>:=> (line 8, col 4) to (line 8, col 15)
--------------------------------
9 > x /= 9;
~~~~~~~~~~~~~~~~ => Pos: (132 to 147) SpanInfo: {"start":140,"length":6}
>x /= 9
>:=> (line 9, col 8) to (line 9, col 14)
--------------------------------
10 > } else {
~~~~~ => Pos: (148 to 152) SpanInfo: {"start":140,"length":6}
>x /= 9
>:=> (line 9, col 8) to (line 9, col 14)
10 > } else {
~~~~~~~~ => Pos: (153 to 160) SpanInfo: {"start":169,"length":7}
>x += 10
>:=> (line 11, col 8) to (line 11, col 15)
--------------------------------
11 > x += 10;
~~~~~~~~~~~~~~~~~ => Pos: (161 to 177) SpanInfo: {"start":169,"length":7}
>x += 10
>:=> (line 11, col 8) to (line 11, col 15)
--------------------------------
12 > x++;
~~~~~~~~~~~~~ => Pos: (178 to 190) SpanInfo: {"start":186,"length":3}
>x++
>:=> (line 12, col 8) to (line 12, col 11)
--------------------------------
13 > }
~~~~~~ => Pos: (191 to 196) SpanInfo: {"start":186,"length":3}
>x++
>:=> (line 12, col 8) to (line 12, col 11)
--------------------------------
14 > var a = [
~~~~~~~~~~~~~~ => Pos: (197 to 210) SpanInfo: {"start":201,"length":47}
>var a = [
> 1,
> 2,
> 3
> ]
>:=> (line 14, col 4) to (line 18, col 5)
--------------------------------
15 > 1,
~~~~~~~~~~~ => Pos: (211 to 221) SpanInfo: {"start":201,"length":47}
>var a = [
> 1,
> 2,
> 3
> ]
>:=> (line 14, col 4) to (line 18, col 5)
--------------------------------
16 > 2,
~~~~~~~~~~~ => Pos: (222 to 232) SpanInfo: {"start":201,"length":47}
>var a = [
> 1,
> 2,
> 3
> ]
>:=> (line 14, col 4) to (line 18, col 5)
--------------------------------
17 > 3
~~~~~~~~~~ => Pos: (233 to 242) SpanInfo: {"start":201,"length":47}
>var a = [
> 1,
> 2,
> 3
> ]
>:=> (line 14, col 4) to (line 18, col 5)
--------------------------------
18 > ];
~~~~~~~ => Pos: (243 to 249) SpanInfo: {"start":201,"length":47}
>var a = [
> 1,
> 2,
> 3
> ]
>:=> (line 14, col 4) to (line 18, col 5)
--------------------------------
19 > var obj = {
~~~~~~~~~~~~~~~~ => Pos: (250 to 265) SpanInfo: {"start":254,"length":50}
>var obj = {
> z: 1,
> q: "hello"
> }
>:=> (line 19, col 4) to (line 22, col 5)
--------------------------------
20 > z: 1,
~~~~~~~~~~~~~~ => Pos: (266 to 279) SpanInfo: {"start":254,"length":50}
>var obj = {
> z: 1,
> q: "hello"
> }
>:=> (line 19, col 4) to (line 22, col 5)
--------------------------------
21 > q: "hello"
~~~~~~~~~~~~~~~~~~~ => Pos: (280 to 298) SpanInfo: {"start":254,"length":50}
>var obj = {
> z: 1,
> q: "hello"
> }
>:=> (line 19, col 4) to (line 22, col 5)
--------------------------------
22 > };
~~~~~~~ => Pos: (299 to 305) SpanInfo: {"start":254,"length":50}
>var obj = {
> z: 1,
> q: "hello"
> }
>:=> (line 19, col 4) to (line 22, col 5)
--------------------------------
23 > for (var j in a) {
~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (306 to 328) SpanInfo: {"start":310,"length":16}
>for (var j in a)
>:=> (line 23, col 4) to (line 23, col 20)
--------------------------------
24 > obj.z = a[j];
~~~~~~~~~~~~~~~~~~~~~~ => Pos: (329 to 350) SpanInfo: {"start":337,"length":12}
>obj.z = a[j]
>:=> (line 24, col 8) to (line 24, col 20)
--------------------------------
25 > var v = 10;
~~~~~~~~~~~~~~~~~~~~ => Pos: (351 to 370) SpanInfo: {"start":359,"length":10}
>var v = 10
>:=> (line 25, col 8) to (line 25, col 18)
--------------------------------
26 > }
~~~~~~ => Pos: (371 to 376) SpanInfo: {"start":359,"length":10}
>var v = 10
>:=> (line 25, col 8) to (line 25, col 18)
--------------------------------
27 > try {
~~~~~~~~~~ => Pos: (377 to 386) SpanInfo: {"start":395,"length":14}
>obj.q = "ohhh"
>:=> (line 28, col 8) to (line 28, col 22)
--------------------------------
28 > obj.q = "ohhh";
~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (387 to 410) SpanInfo: {"start":395,"length":14}
>obj.q = "ohhh"
>:=> (line 28, col 8) to (line 28, col 22)
--------------------------------
29 > } catch (e) {
~~~~~ => Pos: (411 to 415) SpanInfo: {"start":395,"length":14}
>obj.q = "ohhh"
>:=> (line 28, col 8) to (line 28, col 22)
29 > } catch (e) {
~~~~~~~~ => Pos: (416 to 423) SpanInfo: {"start":437,"length":15}
>if (obj.z < 10)
>:=> (line 30, col 8) to (line 30, col 23)
29 > } catch (e) {
~ => Pos: (424 to 424) SpanInfo: undefined
29 > } catch (e) {
~~~~ => Pos: (425 to 428) SpanInfo: {"start":437,"length":15}
>if (obj.z < 10)
>:=> (line 30, col 8) to (line 30, col 23)
--------------------------------
30 > if (obj.z < 10) {
~~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (429 to 454) SpanInfo: {"start":437,"length":15}
>if (obj.z < 10)
>:=> (line 30, col 8) to (line 30, col 23)
--------------------------------
31 > obj.z = 12;
~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (455 to 478) SpanInfo: {"start":467,"length":10}
>obj.z = 12
>:=> (line 31, col 12) to (line 31, col 22)
--------------------------------
32 > } else {
~~~~~~~~~ => Pos: (479 to 487) SpanInfo: {"start":467,"length":10}
>obj.z = 12
>:=> (line 31, col 12) to (line 31, col 22)
32 > } else {
~~~~~~~~ => Pos: (488 to 495) SpanInfo: {"start":508,"length":13}
>obj.q = "hmm"
>:=> (line 33, col 12) to (line 33, col 25)
--------------------------------
33 > obj.q = "hmm";
~~~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (496 to 522) SpanInfo: {"start":508,"length":13}
>obj.q = "hmm"
>:=> (line 33, col 12) to (line 33, col 25)
--------------------------------
34 > }
~~~~~~~~~~ => Pos: (523 to 532) SpanInfo: {"start":508,"length":13}
>obj.q = "hmm"
>:=> (line 33, col 12) to (line 33, col 25)
--------------------------------
35 > }
~~~~~~ => Pos: (533 to 538) SpanInfo: {"start":437,"length":15}
>if (obj.z < 10)
>:=> (line 30, col 8) to (line 30, col 23)
--------------------------------
36 > try {
~~~~~~~~~~ => Pos: (539 to 548) SpanInfo: {"start":557,"length":17}
>throw new Error()
>:=> (line 37, col 8) to (line 37, col 25)
--------------------------------
37 > throw new Error();
~~~~~~~~~~~~~ => Pos: (549 to 561) SpanInfo: {"start":557,"length":17}
>throw new Error()
>:=> (line 37, col 8) to (line 37, col 25)
37 > throw new Error();
~~~~~~~~~~~~~~ => Pos: (562 to 575) SpanInfo: {"start":563,"length":11}
>new Error()
>:=> (line 37, col 14) to (line 37, col 25)
--------------------------------
38 > } catch (e1) {
~~~~~ => Pos: (576 to 580) SpanInfo: {"start":557,"length":17}
>throw new Error()
>:=> (line 37, col 8) to (line 37, col 25)
38 > } catch (e1) {
~~~~~~~~ => Pos: (581 to 588) SpanInfo: {"start":603,"length":10}
>var b = e1
>:=> (line 39, col 8) to (line 39, col 18)
38 > } catch (e1) {
~~ => Pos: (589 to 590) SpanInfo: undefined
38 > } catch (e1) {
~~~~ => Pos: (591 to 594) SpanInfo: {"start":603,"length":10}
>var b = e1
>:=> (line 39, col 8) to (line 39, col 18)
--------------------------------
39 > var b = e1;
~~~~~~~~~~~~~~~~~~~~ => Pos: (595 to 614) SpanInfo: {"start":603,"length":10}
>var b = e1
>:=> (line 39, col 8) to (line 39, col 18)
--------------------------------
40 > } finally {
~~~~~ => Pos: (615 to 619) SpanInfo: {"start":603,"length":10}
>var b = e1
>:=> (line 39, col 8) to (line 39, col 18)
40 > } finally {
~~~~~~~~~~~ => Pos: (620 to 630) SpanInfo: {"start":639,"length":6}
>y = 70
>:=> (line 41, col 8) to (line 41, col 14)
--------------------------------
41 > y = 70;
~~~~~~~~~~~~~~~~ => Pos: (631 to 646) SpanInfo: {"start":639,"length":6}
>y = 70
>:=> (line 41, col 8) to (line 41, col 14)
--------------------------------
42 > }
~~~~~~ => Pos: (647 to 652) SpanInfo: {"start":639,"length":6}
>y = 70
>:=> (line 41, col 8) to (line 41, col 14)
--------------------------------
43 > with (obj) {
~~~~~~~~~~~~~~~~~ => Pos: (653 to 669) SpanInfo: {"start":678,"length":5}
>i = 2
>:=> (line 44, col 8) to (line 44, col 13)
--------------------------------
44 > i = 2;
~~~~~~~~~~~~~~~ => Pos: (670 to 684) SpanInfo: {"start":678,"length":5}
>i = 2
>:=> (line 44, col 8) to (line 44, col 13)
--------------------------------
45 > z = 10;
~~~~~~~~~~~~~~~~ => Pos: (685 to 700) SpanInfo: {"start":693,"length":6}
>z = 10
>:=> (line 45, col 8) to (line 45, col 14)
--------------------------------
46 > }
~~~~~~ => Pos: (701 to 706) SpanInfo: {"start":693,"length":6}
>z = 10
>:=> (line 45, col 8) to (line 45, col 14)
--------------------------------
47 > switch (obj.z) {
~~~~~~~~~~~~~~~~~~~~~ => Pos: (707 to 727) SpanInfo: {"start":711,"length":14}
>switch (obj.z)
>:=> (line 47, col 4) to (line 47, col 18)
--------------------------------
48 > case 0: {
~~~~~~~~~~~~~~~~~~ => Pos: (728 to 745) SpanInfo: {"start":758,"length":3}
>x++
>:=> (line 49, col 12) to (line 49, col 15)
--------------------------------
49 > x++;
~~~~~~~~~~~~~~~~~ => Pos: (746 to 762) SpanInfo: {"start":758,"length":3}
>x++
>:=> (line 49, col 12) to (line 49, col 15)
--------------------------------
50 > break;
~~~~~~~~~~~~~~~~~~~ => Pos: (763 to 781) SpanInfo: {"start":775,"length":5}
>break
>:=> (line 50, col 12) to (line 50, col 17)
--------------------------------
51 >
~ => Pos: (782 to 782) SpanInfo: undefined
--------------------------------
52 > }
~~~~~~~~~~ => Pos: (783 to 792) SpanInfo: {"start":775,"length":5}
>break
>:=> (line 50, col 12) to (line 50, col 17)
--------------------------------
53 > case 1: {
~~~~~~~~~~~~~~~~~~ => Pos: (793 to 810) SpanInfo: {"start":823,"length":3}
>x--
>:=> (line 54, col 12) to (line 54, col 15)
--------------------------------
54 > x--;
~~~~~~~~~~~~~~~~~ => Pos: (811 to 827) SpanInfo: {"start":823,"length":3}
>x--
>:=> (line 54, col 12) to (line 54, col 15)
--------------------------------
55 > break;
~~~~~~~~~~~~~~~~~~~ => Pos: (828 to 846) SpanInfo: {"start":840,"length":5}
>break
>:=> (line 55, col 12) to (line 55, col 17)
--------------------------------
56 >
~ => Pos: (847 to 847) SpanInfo: undefined
--------------------------------
57 > }
~~~~~~~~~~ => Pos: (848 to 857) SpanInfo: {"start":840,"length":5}
>break
>:=> (line 55, col 12) to (line 55, col 17)
--------------------------------
58 > default: {
~~~~~~~~~~~~~~~~~~~ => Pos: (858 to 876) SpanInfo: {"start":889,"length":6}
>x *= 2
>:=> (line 59, col 12) to (line 59, col 18)
--------------------------------
59 > x *= 2;
~~~~~~~~~~~~~~~~~~~~ => Pos: (877 to 896) SpanInfo: {"start":889,"length":6}
>x *= 2
>:=> (line 59, col 12) to (line 59, col 18)
--------------------------------
60 > x = 50;
~~~~~~~~~~~~~~~~~~~~ => Pos: (897 to 916) SpanInfo: {"start":909,"length":6}
>x = 50
>:=> (line 60, col 12) to (line 60, col 18)
--------------------------------
61 > break;
~~~~~~~~~~~~~~~~~~~ => Pos: (917 to 935) SpanInfo: {"start":929,"length":5}
>break
>:=> (line 61, col 12) to (line 61, col 17)
--------------------------------
62 >
~ => Pos: (936 to 936) SpanInfo: undefined
--------------------------------
63 > }
~~~~~~~~~~ => Pos: (937 to 946) SpanInfo: {"start":929,"length":5}
>break
>:=> (line 61, col 12) to (line 61, col 17)
--------------------------------
64 > }
~~~~~~ => Pos: (947 to 952) SpanInfo: {"start":889,"length":6}
>x *= 2
>:=> (line 59, col 12) to (line 59, col 18)
--------------------------------
65 > while (x < 10) {
~~~~~~~~~~~~~~~~~~~~~ => Pos: (953 to 973) SpanInfo: {"start":957,"length":14}
>while (x < 10)
>:=> (line 65, col 4) to (line 65, col 18)
--------------------------------
66 > x++;
~~~~~~~~~~~~~ => Pos: (974 to 986) SpanInfo: {"start":982,"length":3}
>x++
>:=> (line 66, col 8) to (line 66, col 11)
--------------------------------
67 > }
~~~~~~ => Pos: (987 to 992) SpanInfo: {"start":982,"length":3}
>x++
>:=> (line 66, col 8) to (line 66, col 11)
--------------------------------
68 > do {
~~~~~~~~~ => Pos: (993 to 1001) SpanInfo: {"start":1010,"length":3}
>x--
>:=> (line 69, col 8) to (line 69, col 11)
--------------------------------
69 > x--;
~~~~~~~~~~~~~ => Pos: (1002 to 1014) SpanInfo: {"start":1010,"length":3}
>x--
>:=> (line 69, col 8) to (line 69, col 11)
--------------------------------
70 > } while (x > 4)
~~~~~ => Pos: (1015 to 1019) SpanInfo: {"start":1010,"length":3}
>x--
>:=> (line 69, col 8) to (line 69, col 11)
70 > } while (x > 4)
~~~~~~~~~~~~~~~ => Pos: (1020 to 1034) SpanInfo: {"start":1021,"length":13}
>while (x > 4)
>:=> (line 70, col 6) to (line 70, col 19)
--------------------------------
71 > x = y;
~~~~~~~~~~~ => Pos: (1035 to 1045) SpanInfo: {"start":1039,"length":5}
>x = y
>:=> (line 71, col 4) to (line 71, col 9)
--------------------------------
72 > var z = (x == 1) ? x + 1 : x - 1;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (1046 to 1083) SpanInfo: {"start":1050,"length":32}
>var z = (x == 1) ? x + 1 : x - 1
>:=> (line 72, col 4) to (line 72, col 36)
--------------------------------
73 > (x == 1) ? x + 1 : x - 1;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (1084 to 1113) SpanInfo: {"start":1088,"length":24}
>(x == 1) ? x + 1 : x - 1
>:=> (line 73, col 4) to (line 73, col 28)
--------------------------------
74 > x === 1;
~~~~~~~~~~~~~ => Pos: (1114 to 1126) SpanInfo: {"start":1118,"length":7}
>x === 1
>:=> (line 74, col 4) to (line 74, col 11)
--------------------------------
75 > x = z = 40;
~~~~~~~~~~~~~~~~ => Pos: (1127 to 1142) SpanInfo: {"start":1131,"length":10}
>x = z = 40
>:=> (line 75, col 4) to (line 75, col 14)
--------------------------------
76 > eval("y");
~~~~~~~~~~~~~~~ => Pos: (1143 to 1157) SpanInfo: {"start":1147,"length":9}
>eval("y")
>:=> (line 76, col 4) to (line 76, col 13)
--------------------------------
77 > return;
~~~~~~~~~~~~ => Pos: (1158 to 1169) SpanInfo: {"start":1162,"length":6}
>return
>:=> (line 77, col 4) to (line 77, col 10)
--------------------------------
78 >}
~~ => Pos: (1170 to 1171) SpanInfo: {"start":1170,"length":1}
>}
>:=> (line 78, col 0) to (line 78, col 1)
--------------------------------
79 >var b = function () {
~~~~~~~ => Pos: (1172 to 1178) SpanInfo: {"start":1172,"length":54}
>var b = function () {
> var x = 10;
> x = x + 1;
>}
>:=> (line 79, col 0) to (line 82, col 1)
79 >var b = function () {
~~~~~~~~~~~~~~~ => Pos: (1179 to 1193) SpanInfo: {"start":1198,"length":10}
>var x = 10
>:=> (line 80, col 4) to (line 80, col 14)
--------------------------------
80 > var x = 10;
~~~~~~~~~~~~~~~~ => Pos: (1194 to 1209) SpanInfo: {"start":1198,"length":10}
>var x = 10
>:=> (line 80, col 4) to (line 80, col 14)
--------------------------------
81 > x = x + 1;
~~~~~~~~~~~~~~~ => Pos: (1210 to 1224) SpanInfo: {"start":1214,"length":9}
>x = x + 1
>:=> (line 81, col 4) to (line 81, col 13)
--------------------------------
82 >};
~~~ => Pos: (1225 to 1227) SpanInfo: {"start":1225,"length":1}
>}
>:=> (line 82, col 0) to (line 82, col 1)
--------------------------------
83 >f();
~~~~ => Pos: (1228 to 1231) SpanInfo: {"start":1228,"length":3}
>f()
>:=> (line 83, col 0) to (line 83, col 3)