198 lines
6.8 KiB
Plaintext
198 lines
6.8 KiB
Plaintext
|
|
1 >var a = [10, 20, 30];
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~ => Pos: (0 to 21) SpanInfo: {"start":0,"length":20}
|
|
>var a = [10, 20, 30]
|
|
>:=> (line 1, col 0) to (line 1, col 20)
|
|
--------------------------------
|
|
2 >function foo(a: number) {
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (22 to 47) SpanInfo: {"start":52,"length":8}
|
|
>return a
|
|
>:=> (line 3, col 4) to (line 3, col 12)
|
|
--------------------------------
|
|
3 > return a;
|
|
|
|
~~~~~~~~~~~~~~ => Pos: (48 to 61) SpanInfo: {"start":52,"length":8}
|
|
>return a
|
|
>:=> (line 3, col 4) to (line 3, col 12)
|
|
--------------------------------
|
|
4 >}
|
|
|
|
~~ => Pos: (62 to 63) SpanInfo: {"start":62,"length":1}
|
|
>}
|
|
>:=> (line 4, col 0) to (line 4, col 1)
|
|
--------------------------------
|
|
5 >a = [foo(30), (function () {
|
|
|
|
~~~~~ => Pos: (64 to 68) SpanInfo: {"start":64,"length":49}
|
|
>a = [foo(30), (function () {
|
|
> return 30;
|
|
>})()]
|
|
>:=> (line 5, col 0) to (line 7, col 5)
|
|
5 >a = [foo(30), (function () {
|
|
|
|
~~~~~~~~ => Pos: (69 to 76) SpanInfo: {"start":69,"length":7}
|
|
>foo(30)
|
|
>:=> (line 5, col 5) to (line 5, col 12)
|
|
5 >a = [foo(30), (function () {
|
|
|
|
~~ => Pos: (77 to 78) SpanInfo: {"start":78,"length":34}
|
|
>(function () {
|
|
> return 30;
|
|
>})()
|
|
>:=> (line 5, col 14) to (line 7, col 4)
|
|
5 >a = [foo(30), (function () {
|
|
|
|
~~~~~~~~~~~~~~ => Pos: (79 to 92) SpanInfo: {"start":97,"length":9}
|
|
>return 30
|
|
>:=> (line 6, col 4) to (line 6, col 13)
|
|
--------------------------------
|
|
6 > return 30;
|
|
|
|
~~~~~~~~~~~~~~~ => Pos: (93 to 107) SpanInfo: {"start":97,"length":9}
|
|
>return 30
|
|
>:=> (line 6, col 4) to (line 6, col 13)
|
|
--------------------------------
|
|
7 >})()];
|
|
|
|
~ => Pos: (108 to 108) SpanInfo: {"start":108,"length":1}
|
|
>}
|
|
>:=> (line 7, col 0) to (line 7, col 1)
|
|
7 >})()];
|
|
|
|
~~~ => Pos: (109 to 111) SpanInfo: {"start":78,"length":34}
|
|
>(function () {
|
|
> return 30;
|
|
>})()
|
|
>:=> (line 5, col 14) to (line 7, col 4)
|
|
7 >})()];
|
|
|
|
~~~ => Pos: (112 to 114) SpanInfo: {"start":64,"length":49}
|
|
>a = [foo(30), (function () {
|
|
> return 30;
|
|
>})()]
|
|
>:=> (line 5, col 0) to (line 7, col 5)
|
|
--------------------------------
|
|
8 >function bar() {
|
|
|
|
~~~~~~~~~~~~~~~~~ => Pos: (115 to 131) SpanInfo: {"start":136,"length":8}
|
|
>return a
|
|
>:=> (line 9, col 4) to (line 9, col 12)
|
|
--------------------------------
|
|
9 > return a;
|
|
|
|
~~~~~~~~~~~~~~ => Pos: (132 to 145) SpanInfo: {"start":136,"length":8}
|
|
>return a
|
|
>:=> (line 9, col 4) to (line 9, col 12)
|
|
--------------------------------
|
|
10 >}
|
|
|
|
~~ => Pos: (146 to 147) SpanInfo: {"start":146,"length":1}
|
|
>}
|
|
>:=> (line 10, col 0) to (line 10, col 1)
|
|
--------------------------------
|
|
11 >var x = bar()[0];
|
|
|
|
~~~~~~~ => Pos: (148 to 154) SpanInfo: {"start":148,"length":16}
|
|
>var x = bar()[0]
|
|
>:=> (line 11, col 0) to (line 11, col 16)
|
|
11 >var x = bar()[0];
|
|
|
|
~~~~~~ => Pos: (155 to 160) SpanInfo: {"start":156,"length":5}
|
|
>bar()
|
|
>:=> (line 11, col 8) to (line 11, col 13)
|
|
11 >var x = bar()[0];
|
|
|
|
~~~~~ => Pos: (161 to 165) SpanInfo: {"start":148,"length":16}
|
|
>var x = bar()[0]
|
|
>:=> (line 11, col 0) to (line 11, col 16)
|
|
--------------------------------
|
|
12 >x = (function () {
|
|
|
|
~~~ => Pos: (166 to 168) SpanInfo: {"start":166,"length":40}
|
|
>x = (function () {
|
|
> return a;
|
|
>})()[x]
|
|
>:=> (line 12, col 0) to (line 14, col 7)
|
|
12 >x = (function () {
|
|
|
|
~~ => Pos: (169 to 170) SpanInfo: {"start":170,"length":33}
|
|
>(function () {
|
|
> return a;
|
|
>})()
|
|
>:=> (line 12, col 4) to (line 14, col 4)
|
|
12 >x = (function () {
|
|
|
|
~~~~~~~~~~~~~~ => Pos: (171 to 184) SpanInfo: {"start":189,"length":8}
|
|
>return a
|
|
>:=> (line 13, col 4) to (line 13, col 12)
|
|
--------------------------------
|
|
13 > return a;
|
|
|
|
~~~~~~~~~~~~~~ => Pos: (185 to 198) SpanInfo: {"start":189,"length":8}
|
|
>return a
|
|
>:=> (line 13, col 4) to (line 13, col 12)
|
|
--------------------------------
|
|
14 >})()[x];
|
|
|
|
~ => Pos: (199 to 199) SpanInfo: {"start":199,"length":1}
|
|
>}
|
|
>:=> (line 14, col 0) to (line 14, col 1)
|
|
14 >})()[x];
|
|
|
|
~~~ => Pos: (200 to 202) SpanInfo: {"start":170,"length":33}
|
|
>(function () {
|
|
> return a;
|
|
>})()
|
|
>:=> (line 12, col 4) to (line 14, col 4)
|
|
14 >})()[x];
|
|
|
|
~~~~~ => Pos: (203 to 207) SpanInfo: {"start":166,"length":40}
|
|
>x = (function () {
|
|
> return a;
|
|
>})()[x]
|
|
>:=> (line 12, col 0) to (line 14, col 7)
|
|
--------------------------------
|
|
15 >a[(function () {
|
|
|
|
~~ => Pos: (208 to 209) SpanInfo: {"start":208,"length":36}
|
|
>a[(function () {
|
|
> return x;
|
|
>})()]
|
|
>:=> (line 15, col 0) to (line 17, col 5)
|
|
15 >a[(function () {
|
|
|
|
~ => Pos: (210 to 210) SpanInfo: {"start":210,"length":33}
|
|
>(function () {
|
|
> return x;
|
|
>})()
|
|
>:=> (line 15, col 2) to (line 17, col 4)
|
|
15 >a[(function () {
|
|
|
|
~~~~~~~~~~~~~~ => Pos: (211 to 224) SpanInfo: {"start":229,"length":8}
|
|
>return x
|
|
>:=> (line 16, col 4) to (line 16, col 12)
|
|
--------------------------------
|
|
16 > return x;
|
|
|
|
~~~~~~~~~~~~~~ => Pos: (225 to 238) SpanInfo: {"start":229,"length":8}
|
|
>return x
|
|
>:=> (line 16, col 4) to (line 16, col 12)
|
|
--------------------------------
|
|
17 >})()];
|
|
~ => Pos: (239 to 239) SpanInfo: {"start":239,"length":1}
|
|
>}
|
|
>:=> (line 17, col 0) to (line 17, col 1)
|
|
17 >})()];
|
|
~~~ => Pos: (240 to 242) SpanInfo: {"start":210,"length":33}
|
|
>(function () {
|
|
> return x;
|
|
>})()
|
|
>:=> (line 15, col 2) to (line 17, col 4)
|
|
17 >})()];
|
|
~~ => Pos: (243 to 244) SpanInfo: {"start":208,"length":36}
|
|
>a[(function () {
|
|
> return x;
|
|
>})()]
|
|
>:=> (line 15, col 0) to (line 17, col 5) |