189 lines
7.1 KiB
Plaintext
189 lines
7.1 KiB
Plaintext
|
|
1 >var greetings = 0;
|
|
|
|
~~~~~~~~~~~~~~~~~~~ => Pos: (0 to 18) SpanInfo: {"start":0,"length":17}
|
|
>var greetings = 0
|
|
>:=> (line 1, col 0) to (line 1, col 17)
|
|
--------------------------------
|
|
2 >var greet = (greeting: string): number => {
|
|
|
|
~~~~~~~~~~~ => Pos: (19 to 29) SpanInfo: {"start":19,"length":84}
|
|
>var greet = (greeting: string): number => {
|
|
> greetings++;
|
|
> return greetings;
|
|
>}
|
|
>:=> (line 2, col 0) to (line 5, col 1)
|
|
2 >var greet = (greeting: string): number => {
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (30 to 62) SpanInfo: {"start":67,"length":11}
|
|
>greetings++
|
|
>:=> (line 3, col 4) to (line 3, col 15)
|
|
--------------------------------
|
|
3 > greetings++;
|
|
|
|
~~~~~~~~~~~~~~~~~ => Pos: (63 to 79) SpanInfo: {"start":67,"length":11}
|
|
>greetings++
|
|
>:=> (line 3, col 4) to (line 3, col 15)
|
|
--------------------------------
|
|
4 > return greetings;
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~ => Pos: (80 to 101) SpanInfo: {"start":84,"length":16}
|
|
>return greetings
|
|
>:=> (line 4, col 4) to (line 4, col 20)
|
|
--------------------------------
|
|
5 >}
|
|
|
|
~~ => Pos: (102 to 103) SpanInfo: {"start":102,"length":1}
|
|
>}
|
|
>:=> (line 5, col 0) to (line 5, col 1)
|
|
--------------------------------
|
|
6 >greet("Hello");
|
|
|
|
~~~~~~~~~~~~~~~~ => Pos: (104 to 119) SpanInfo: {"start":104,"length":14}
|
|
>greet("Hello")
|
|
>:=> (line 6, col 0) to (line 6, col 14)
|
|
--------------------------------
|
|
7 >var incrGreetings = () => greetings++;
|
|
|
|
~~~~~~~~~~~~~~~~~~~ => Pos: (120 to 138) SpanInfo: {"start":120,"length":37}
|
|
>var incrGreetings = () => greetings++
|
|
>:=> (line 7, col 0) to (line 7, col 37)
|
|
7 >var incrGreetings = () => greetings++;
|
|
|
|
~~~~~~~~~~~~~~~~~~~~ => Pos: (139 to 158) SpanInfo: {"start":146,"length":11}
|
|
>greetings++
|
|
>:=> (line 7, col 26) to (line 7, col 37)
|
|
--------------------------------
|
|
8 >var greetNewMsg = msg => greet(msg);
|
|
|
|
~~~~~~~~~~~~~~~~~ => Pos: (159 to 175) SpanInfo: {"start":159,"length":35}
|
|
>var greetNewMsg = msg => greet(msg)
|
|
>:=> (line 8, col 0) to (line 8, col 35)
|
|
8 >var greetNewMsg = msg => greet(msg);
|
|
|
|
~~~~~~~~~~~~~~~~~~~~ => Pos: (176 to 195) SpanInfo: {"start":184,"length":10}
|
|
>greet(msg)
|
|
>:=> (line 8, col 25) to (line 8, col 35)
|
|
--------------------------------
|
|
9 >greetNewMsg = function (msg: string) {
|
|
|
|
~~~~~~~~~~~~~ => Pos: (196 to 208) SpanInfo: {"start":196,"length":63}
|
|
>greetNewMsg = function (msg: string) {
|
|
> return greet(msg);
|
|
>}
|
|
>:=> (line 9, col 0) to (line 11, col 1)
|
|
9 >greetNewMsg = function (msg: string) {
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (209 to 234) SpanInfo: {"start":239,"length":17}
|
|
>return greet(msg)
|
|
>:=> (line 10, col 4) to (line 10, col 21)
|
|
--------------------------------
|
|
10 > return greet(msg);
|
|
|
|
~~~~~~~~~~ => Pos: (235 to 244) SpanInfo: {"start":239,"length":17}
|
|
>return greet(msg)
|
|
>:=> (line 10, col 4) to (line 10, col 21)
|
|
10 > return greet(msg);
|
|
|
|
~~~~~~~~~~~~~ => Pos: (245 to 257) SpanInfo: {"start":246,"length":10}
|
|
>greet(msg)
|
|
>:=> (line 10, col 11) to (line 10, col 21)
|
|
--------------------------------
|
|
11 >};
|
|
|
|
~~~ => Pos: (258 to 260) SpanInfo: {"start":258,"length":1}
|
|
>}
|
|
>:=> (line 11, col 0) to (line 11, col 1)
|
|
--------------------------------
|
|
12 >function bar(a = function foo() {
|
|
|
|
~~~~~~~~~~~~~ => Pos: (261 to 273) SpanInfo: {"start":326,"length":9}
|
|
>if (!a())
|
|
>:=> (line 15, col 4) to (line 15, col 13)
|
|
12 >function bar(a = function foo() {
|
|
|
|
~~~ => Pos: (274 to 276) SpanInfo: {"start":274,"length":44}
|
|
>a = function foo() {
|
|
> return greetings;
|
|
>}
|
|
>:=> (line 12, col 13) to (line 14, col 1)
|
|
12 >function bar(a = function foo() {
|
|
|
|
~~~~~~~~~~~~~~~~~~ => Pos: (277 to 294) SpanInfo: {"start":299,"length":16}
|
|
>return greetings
|
|
>:=> (line 13, col 4) to (line 13, col 20)
|
|
--------------------------------
|
|
13 > return greetings;
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~ => Pos: (295 to 316) SpanInfo: {"start":299,"length":16}
|
|
>return greetings
|
|
>:=> (line 13, col 4) to (line 13, col 20)
|
|
--------------------------------
|
|
14 >}) {
|
|
|
|
~~ => Pos: (317 to 318) SpanInfo: {"start":317,"length":1}
|
|
>}
|
|
>:=> (line 14, col 0) to (line 14, col 1)
|
|
14 >}) {
|
|
|
|
~~~ => Pos: (319 to 321) SpanInfo: {"start":326,"length":9}
|
|
>if (!a())
|
|
>:=> (line 15, col 4) to (line 15, col 13)
|
|
--------------------------------
|
|
15 > if (!a()) {
|
|
|
|
~~~~~~~~~ => Pos: (322 to 330) SpanInfo: {"start":326,"length":9}
|
|
>if (!a())
|
|
>:=> (line 15, col 4) to (line 15, col 13)
|
|
15 > if (!a()) {
|
|
|
|
~~~ => Pos: (331 to 333) SpanInfo: {"start":331,"length":3}
|
|
>a()
|
|
>:=> (line 15, col 9) to (line 15, col 12)
|
|
15 > if (!a()) {
|
|
|
|
~~~~ => Pos: (334 to 337) SpanInfo: {"start":326,"length":9}
|
|
>if (!a())
|
|
>:=> (line 15, col 4) to (line 15, col 13)
|
|
--------------------------------
|
|
16 > return a;
|
|
|
|
~~~~~~~~~~~~~~~~~~ => Pos: (338 to 355) SpanInfo: {"start":346,"length":8}
|
|
>return a
|
|
>:=> (line 16, col 8) to (line 16, col 16)
|
|
--------------------------------
|
|
17 > }
|
|
|
|
~~~~~~ => Pos: (356 to 361) SpanInfo: {"start":346,"length":8}
|
|
>return a
|
|
>:=> (line 16, col 8) to (line 16, col 16)
|
|
--------------------------------
|
|
18 > return function bar() {
|
|
|
|
~~~~~~~~~~ => Pos: (362 to 371) SpanInfo: {"start":366,"length":56}
|
|
>return function bar() {
|
|
> return -greetings;
|
|
> }
|
|
>:=> (line 18, col 4) to (line 20, col 5)
|
|
18 > return function bar() {
|
|
|
|
~~~~~~~~~~~~~~~~~~ => Pos: (372 to 389) SpanInfo: {"start":398,"length":17}
|
|
>return -greetings
|
|
>:=> (line 19, col 8) to (line 19, col 25)
|
|
--------------------------------
|
|
19 > return -greetings;
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~ => Pos: (390 to 416) SpanInfo: {"start":398,"length":17}
|
|
>return -greetings
|
|
>:=> (line 19, col 8) to (line 19, col 25)
|
|
--------------------------------
|
|
20 > };
|
|
|
|
~~~~~~~ => Pos: (417 to 423) SpanInfo: {"start":421,"length":1}
|
|
>}
|
|
>:=> (line 20, col 4) to (line 20, col 5)
|
|
--------------------------------
|
|
21 >}
|
|
~ => Pos: (424 to 424) SpanInfo: {"start":424,"length":1}
|
|
>}
|
|
>:=> (line 21, col 0) to (line 21, col 1) |