1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583
|
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 575) SpanInfo: {"start":557,"length":17}
>throw new Error()
>:=> (line 37, col 8) 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)
|