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