1{ 2 "type": "Program", 3 "statements": [ 4 { 5 "type": "ClassDeclaration", 6 "definition": { 7 "id": { 8 "type": "Identifier", 9 "name": "ETSGLOBAL", 10 "decorators": [], 11 "loc": { 12 "start": { 13 "line": 1, 14 "column": 1, 15 "program": "generic_function_call_7.ets" 16 }, 17 "end": { 18 "line": 1, 19 "column": 1, 20 "program": "generic_function_call_7.ets" 21 } 22 } 23 }, 24 "superClass": null, 25 "implements": [], 26 "body": [ 27 { 28 "type": "MethodDefinition", 29 "key": { 30 "type": "Identifier", 31 "name": "_$init$_", 32 "decorators": [], 33 "loc": { 34 "start": { 35 "line": 1, 36 "column": 1, 37 "program": null 38 }, 39 "end": { 40 "line": 1, 41 "column": 1, 42 "program": null 43 } 44 } 45 }, 46 "kind": "method", 47 "accessibility": "public", 48 "static": true, 49 "optional": false, 50 "computed": false, 51 "value": { 52 "type": "FunctionExpression", 53 "function": { 54 "type": "ScriptFunction", 55 "id": { 56 "type": "Identifier", 57 "name": "_$init$_", 58 "decorators": [], 59 "loc": { 60 "start": { 61 "line": 1, 62 "column": 1, 63 "program": null 64 }, 65 "end": { 66 "line": 1, 67 "column": 1, 68 "program": null 69 } 70 } 71 }, 72 "generator": false, 73 "async": false, 74 "expression": false, 75 "params": [], 76 "body": { 77 "type": "BlockStatement", 78 "statements": [], 79 "loc": { 80 "start": { 81 "line": 1, 82 "column": 1, 83 "program": null 84 }, 85 "end": { 86 "line": 1, 87 "column": 1, 88 "program": null 89 } 90 } 91 }, 92 "loc": { 93 "start": { 94 "line": 1, 95 "column": 1, 96 "program": null 97 }, 98 "end": { 99 "line": 1, 100 "column": 1, 101 "program": null 102 } 103 } 104 }, 105 "loc": { 106 "start": { 107 "line": 1, 108 "column": 1, 109 "program": null 110 }, 111 "end": { 112 "line": 1, 113 "column": 1, 114 "program": null 115 } 116 } 117 }, 118 "overloads": [], 119 "decorators": [], 120 "loc": { 121 "start": { 122 "line": 1, 123 "column": 1, 124 "program": "generic_function_call_7.ets" 125 }, 126 "end": { 127 "line": 1, 128 "column": 1, 129 "program": "generic_function_call_7.ets" 130 } 131 } 132 }, 133 { 134 "type": "MethodDefinition", 135 "key": { 136 "type": "Identifier", 137 "name": "bar", 138 "decorators": [], 139 "loc": { 140 "start": { 141 "line": 16, 142 "column": 10, 143 "program": "generic_function_call_7.ets" 144 }, 145 "end": { 146 "line": 16, 147 "column": 13, 148 "program": "generic_function_call_7.ets" 149 } 150 } 151 }, 152 "kind": "method", 153 "accessibility": "public", 154 "static": true, 155 "optional": false, 156 "computed": false, 157 "value": { 158 "type": "FunctionExpression", 159 "function": { 160 "type": "ScriptFunction", 161 "id": { 162 "type": "Identifier", 163 "name": "bar", 164 "decorators": [], 165 "loc": { 166 "start": { 167 "line": 16, 168 "column": 10, 169 "program": "generic_function_call_7.ets" 170 }, 171 "end": { 172 "line": 16, 173 "column": 13, 174 "program": "generic_function_call_7.ets" 175 } 176 } 177 }, 178 "generator": false, 179 "async": false, 180 "expression": false, 181 "params": [ 182 { 183 "type": "ETSParameterExpression", 184 "name": { 185 "type": "Identifier", 186 "name": "a0", 187 "typeAnnotation": { 188 "type": "ETSTypeReference", 189 "part": { 190 "type": "ETSTypeReferencePart", 191 "name": { 192 "type": "Identifier", 193 "name": "U", 194 "decorators": [], 195 "loc": { 196 "start": { 197 "line": 16, 198 "column": 21, 199 "program": "generic_function_call_7.ets" 200 }, 201 "end": { 202 "line": 16, 203 "column": 22, 204 "program": "generic_function_call_7.ets" 205 } 206 } 207 }, 208 "loc": { 209 "start": { 210 "line": 16, 211 "column": 21, 212 "program": "generic_function_call_7.ets" 213 }, 214 "end": { 215 "line": 16, 216 "column": 23, 217 "program": "generic_function_call_7.ets" 218 } 219 } 220 }, 221 "loc": { 222 "start": { 223 "line": 16, 224 "column": 21, 225 "program": "generic_function_call_7.ets" 226 }, 227 "end": { 228 "line": 16, 229 "column": 23, 230 "program": "generic_function_call_7.ets" 231 } 232 } 233 }, 234 "decorators": [], 235 "loc": { 236 "start": { 237 "line": 16, 238 "column": 17, 239 "program": "generic_function_call_7.ets" 240 }, 241 "end": { 242 "line": 16, 243 "column": 23, 244 "program": "generic_function_call_7.ets" 245 } 246 } 247 }, 248 "loc": { 249 "start": { 250 "line": 16, 251 "column": 17, 252 "program": "generic_function_call_7.ets" 253 }, 254 "end": { 255 "line": 16, 256 "column": 23, 257 "program": "generic_function_call_7.ets" 258 } 259 } 260 } 261 ], 262 "returnType": { 263 "type": "ETSTypeReference", 264 "part": { 265 "type": "ETSTypeReferencePart", 266 "name": { 267 "type": "Identifier", 268 "name": "U", 269 "decorators": [], 270 "loc": { 271 "start": { 272 "line": 16, 273 "column": 25, 274 "program": "generic_function_call_7.ets" 275 }, 276 "end": { 277 "line": 16, 278 "column": 26, 279 "program": "generic_function_call_7.ets" 280 } 281 } 282 }, 283 "loc": { 284 "start": { 285 "line": 16, 286 "column": 25, 287 "program": "generic_function_call_7.ets" 288 }, 289 "end": { 290 "line": 16, 291 "column": 28, 292 "program": "generic_function_call_7.ets" 293 } 294 } 295 }, 296 "loc": { 297 "start": { 298 "line": 16, 299 "column": 25, 300 "program": "generic_function_call_7.ets" 301 }, 302 "end": { 303 "line": 16, 304 "column": 28, 305 "program": "generic_function_call_7.ets" 306 } 307 } 308 }, 309 "typeParameters": { 310 "type": "TSTypeParameterDeclaration", 311 "params": [ 312 { 313 "type": "TSTypeParameter", 314 "name": { 315 "type": "Identifier", 316 "name": "U", 317 "decorators": [], 318 "loc": { 319 "start": { 320 "line": 16, 321 "column": 14, 322 "program": "generic_function_call_7.ets" 323 }, 324 "end": { 325 "line": 16, 326 "column": 15, 327 "program": "generic_function_call_7.ets" 328 } 329 } 330 }, 331 "loc": { 332 "start": { 333 "line": 16, 334 "column": 14, 335 "program": "generic_function_call_7.ets" 336 }, 337 "end": { 338 "line": 16, 339 "column": 16, 340 "program": "generic_function_call_7.ets" 341 } 342 } 343 } 344 ], 345 "loc": { 346 "start": { 347 "line": 16, 348 "column": 13, 349 "program": "generic_function_call_7.ets" 350 }, 351 "end": { 352 "line": 16, 353 "column": 16, 354 "program": "generic_function_call_7.ets" 355 } 356 } 357 }, 358 "body": { 359 "type": "BlockStatement", 360 "statements": [ 361 { 362 "type": "ReturnStatement", 363 "argument": { 364 "type": "Identifier", 365 "name": "a0", 366 "decorators": [], 367 "loc": { 368 "start": { 369 "line": 17, 370 "column": 16, 371 "program": "generic_function_call_7.ets" 372 }, 373 "end": { 374 "line": 17, 375 "column": 18, 376 "program": "generic_function_call_7.ets" 377 } 378 } 379 }, 380 "loc": { 381 "start": { 382 "line": 17, 383 "column": 9, 384 "program": "generic_function_call_7.ets" 385 }, 386 "end": { 387 "line": 17, 388 "column": 19, 389 "program": "generic_function_call_7.ets" 390 } 391 } 392 } 393 ], 394 "loc": { 395 "start": { 396 "line": 16, 397 "column": 27, 398 "program": "generic_function_call_7.ets" 399 }, 400 "end": { 401 "line": 18, 402 "column": 6, 403 "program": "generic_function_call_7.ets" 404 } 405 } 406 }, 407 "loc": { 408 "start": { 409 "line": 16, 410 "column": 10, 411 "program": "generic_function_call_7.ets" 412 }, 413 "end": { 414 "line": 18, 415 "column": 6, 416 "program": "generic_function_call_7.ets" 417 } 418 } 419 }, 420 "loc": { 421 "start": { 422 "line": 16, 423 "column": 10, 424 "program": "generic_function_call_7.ets" 425 }, 426 "end": { 427 "line": 18, 428 "column": 6, 429 "program": "generic_function_call_7.ets" 430 } 431 } 432 }, 433 "overloads": [], 434 "decorators": [], 435 "loc": { 436 "start": { 437 "line": 16, 438 "column": 1, 439 "program": "generic_function_call_7.ets" 440 }, 441 "end": { 442 "line": 18, 443 "column": 6, 444 "program": "generic_function_call_7.ets" 445 } 446 } 447 }, 448 { 449 "type": "MethodDefinition", 450 "key": { 451 "type": "Identifier", 452 "name": "main", 453 "decorators": [], 454 "loc": { 455 "start": { 456 "line": 20, 457 "column": 10, 458 "program": "generic_function_call_7.ets" 459 }, 460 "end": { 461 "line": 20, 462 "column": 14, 463 "program": "generic_function_call_7.ets" 464 } 465 } 466 }, 467 "kind": "method", 468 "accessibility": "public", 469 "static": true, 470 "optional": false, 471 "computed": false, 472 "value": { 473 "type": "FunctionExpression", 474 "function": { 475 "type": "ScriptFunction", 476 "id": { 477 "type": "Identifier", 478 "name": "main", 479 "decorators": [], 480 "loc": { 481 "start": { 482 "line": 20, 483 "column": 10, 484 "program": "generic_function_call_7.ets" 485 }, 486 "end": { 487 "line": 20, 488 "column": 14, 489 "program": "generic_function_call_7.ets" 490 } 491 } 492 }, 493 "generator": false, 494 "async": false, 495 "expression": false, 496 "params": [], 497 "returnType": { 498 "type": "ETSPrimitiveType", 499 "loc": { 500 "start": { 501 "line": 20, 502 "column": 18, 503 "program": "generic_function_call_7.ets" 504 }, 505 "end": { 506 "line": 20, 507 "column": 22, 508 "program": "generic_function_call_7.ets" 509 } 510 } 511 }, 512 "body": { 513 "type": "BlockStatement", 514 "statements": [ 515 { 516 "type": "ExpressionStatement", 517 "expression": { 518 "type": "CallExpression", 519 "callee": { 520 "type": "Identifier", 521 "name": "bar", 522 "decorators": [], 523 "loc": { 524 "start": { 525 "line": 21, 526 "column": 5, 527 "program": "generic_function_call_7.ets" 528 }, 529 "end": { 530 "line": 21, 531 "column": 8, 532 "program": "generic_function_call_7.ets" 533 } 534 } 535 }, 536 "arguments": [ 537 { 538 "type": "NumberLiteral", 539 "value": 3, 540 "loc": { 541 "start": { 542 "line": 21, 543 "column": 14, 544 "program": "generic_function_call_7.ets" 545 }, 546 "end": { 547 "line": 21, 548 "column": 15, 549 "program": "generic_function_call_7.ets" 550 } 551 } 552 } 553 ], 554 "optional": false, 555 "typeParameters": { 556 "type": "TSTypeParameterInstantiation", 557 "params": [ 558 { 559 "type": "ETSPrimitiveType", 560 "loc": { 561 "start": { 562 "line": 21, 563 "column": 9, 564 "program": "generic_function_call_7.ets" 565 }, 566 "end": { 567 "line": 21, 568 "column": 12, 569 "program": "generic_function_call_7.ets" 570 } 571 } 572 } 573 ], 574 "loc": { 575 "start": { 576 "line": 21, 577 "column": 8, 578 "program": "generic_function_call_7.ets" 579 }, 580 "end": { 581 "line": 21, 582 "column": 13, 583 "program": "generic_function_call_7.ets" 584 } 585 } 586 }, 587 "loc": { 588 "start": { 589 "line": 21, 590 "column": 5, 591 "program": "generic_function_call_7.ets" 592 }, 593 "end": { 594 "line": 21, 595 "column": 16, 596 "program": "generic_function_call_7.ets" 597 } 598 } 599 }, 600 "loc": { 601 "start": { 602 "line": 21, 603 "column": 5, 604 "program": "generic_function_call_7.ets" 605 }, 606 "end": { 607 "line": 21, 608 "column": 17, 609 "program": "generic_function_call_7.ets" 610 } 611 } 612 }, 613 { 614 "type": "ExpressionStatement", 615 "expression": { 616 "type": "CallExpression", 617 "callee": { 618 "type": "Identifier", 619 "name": "bar", 620 "decorators": [], 621 "loc": { 622 "start": { 623 "line": 22, 624 "column": 5, 625 "program": "generic_function_call_7.ets" 626 }, 627 "end": { 628 "line": 22, 629 "column": 8, 630 "program": "generic_function_call_7.ets" 631 } 632 } 633 }, 634 "arguments": [ 635 { 636 "type": "NumberLiteral", 637 "value": 4, 638 "loc": { 639 "start": { 640 "line": 22, 641 "column": 9, 642 "program": "generic_function_call_7.ets" 643 }, 644 "end": { 645 "line": 22, 646 "column": 10, 647 "program": "generic_function_call_7.ets" 648 } 649 } 650 } 651 ], 652 "optional": false, 653 "loc": { 654 "start": { 655 "line": 22, 656 "column": 5, 657 "program": "generic_function_call_7.ets" 658 }, 659 "end": { 660 "line": 22, 661 "column": 11, 662 "program": "generic_function_call_7.ets" 663 } 664 } 665 }, 666 "loc": { 667 "start": { 668 "line": 22, 669 "column": 5, 670 "program": "generic_function_call_7.ets" 671 }, 672 "end": { 673 "line": 22, 674 "column": 12, 675 "program": "generic_function_call_7.ets" 676 } 677 } 678 } 679 ], 680 "loc": { 681 "start": { 682 "line": 20, 683 "column": 23, 684 "program": "generic_function_call_7.ets" 685 }, 686 "end": { 687 "line": 23, 688 "column": 2, 689 "program": "generic_function_call_7.ets" 690 } 691 } 692 }, 693 "loc": { 694 "start": { 695 "line": 20, 696 "column": 10, 697 "program": "generic_function_call_7.ets" 698 }, 699 "end": { 700 "line": 23, 701 "column": 2, 702 "program": "generic_function_call_7.ets" 703 } 704 } 705 }, 706 "loc": { 707 "start": { 708 "line": 20, 709 "column": 10, 710 "program": "generic_function_call_7.ets" 711 }, 712 "end": { 713 "line": 23, 714 "column": 2, 715 "program": "generic_function_call_7.ets" 716 } 717 } 718 }, 719 "overloads": [], 720 "decorators": [], 721 "loc": { 722 "start": { 723 "line": 20, 724 "column": 1, 725 "program": "generic_function_call_7.ets" 726 }, 727 "end": { 728 "line": 23, 729 "column": 2, 730 "program": "generic_function_call_7.ets" 731 } 732 } 733 } 734 ], 735 "loc": { 736 "start": { 737 "line": 1, 738 "column": 1, 739 "program": "generic_function_call_7.ets" 740 }, 741 "end": { 742 "line": 1, 743 "column": 1, 744 "program": "generic_function_call_7.ets" 745 } 746 } 747 }, 748 "loc": { 749 "start": { 750 "line": 1, 751 "column": 1, 752 "program": "generic_function_call_7.ets" 753 }, 754 "end": { 755 "line": 1, 756 "column": 1, 757 "program": "generic_function_call_7.ets" 758 } 759 } 760 } 761 ], 762 "loc": { 763 "start": { 764 "line": 1, 765 "column": 1, 766 "program": "generic_function_call_7.ets" 767 }, 768 "end": { 769 "line": 24, 770 "column": 1, 771 "program": "generic_function_call_7.ets" 772 } 773 } 774} 775