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": "ambient_declaration.ets" 16 }, 17 "end": { 18 "line": 1, 19 "column": 1, 20 "program": "ambient_declaration.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": "ambient_declaration.ets" 125 }, 126 "end": { 127 "line": 1, 128 "column": 1, 129 "program": "ambient_declaration.ets" 130 } 131 } 132 }, 133 { 134 "type": "MethodDefinition", 135 "key": { 136 "type": "Identifier", 137 "name": "baz", 138 "decorators": [], 139 "loc": { 140 "start": { 141 "line": 16, 142 "column": 18, 143 "program": "ambient_declaration.ets" 144 }, 145 "end": { 146 "line": 16, 147 "column": 21, 148 "program": "ambient_declaration.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": "baz", 164 "decorators": [], 165 "loc": { 166 "start": { 167 "line": 16, 168 "column": 18, 169 "program": "ambient_declaration.ets" 170 }, 171 "end": { 172 "line": 16, 173 "column": 21, 174 "program": "ambient_declaration.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": "x", 187 "typeAnnotation": { 188 "type": "ETSPrimitiveType", 189 "loc": { 190 "start": { 191 "line": 16, 192 "column": 27, 193 "program": "ambient_declaration.ets" 194 }, 195 "end": { 196 "line": 16, 197 "column": 30, 198 "program": "ambient_declaration.ets" 199 } 200 } 201 }, 202 "decorators": [], 203 "loc": { 204 "start": { 205 "line": 16, 206 "column": 22, 207 "program": "ambient_declaration.ets" 208 }, 209 "end": { 210 "line": 16, 211 "column": 30, 212 "program": "ambient_declaration.ets" 213 } 214 } 215 }, 216 "loc": { 217 "start": { 218 "line": 16, 219 "column": 22, 220 "program": "ambient_declaration.ets" 221 }, 222 "end": { 223 "line": 16, 224 "column": 30, 225 "program": "ambient_declaration.ets" 226 } 227 } 228 }, 229 { 230 "type": "ETSParameterExpression", 231 "name": { 232 "type": "Identifier", 233 "name": "y", 234 "typeAnnotation": { 235 "type": "ETSTypeReference", 236 "part": { 237 "type": "ETSTypeReferencePart", 238 "name": { 239 "type": "Identifier", 240 "name": "number", 241 "decorators": [], 242 "loc": { 243 "start": { 244 "line": 16, 245 "column": 36, 246 "program": "ambient_declaration.ets" 247 }, 248 "end": { 249 "line": 16, 250 "column": 42, 251 "program": "ambient_declaration.ets" 252 } 253 } 254 }, 255 "loc": { 256 "start": { 257 "line": 16, 258 "column": 36, 259 "program": "ambient_declaration.ets" 260 }, 261 "end": { 262 "line": 16, 263 "column": 43, 264 "program": "ambient_declaration.ets" 265 } 266 } 267 }, 268 "loc": { 269 "start": { 270 "line": 16, 271 "column": 36, 272 "program": "ambient_declaration.ets" 273 }, 274 "end": { 275 "line": 16, 276 "column": 43, 277 "program": "ambient_declaration.ets" 278 } 279 } 280 }, 281 "decorators": [], 282 "loc": { 283 "start": { 284 "line": 16, 285 "column": 32, 286 "program": "ambient_declaration.ets" 287 }, 288 "end": { 289 "line": 16, 290 "column": 43, 291 "program": "ambient_declaration.ets" 292 } 293 } 294 }, 295 "loc": { 296 "start": { 297 "line": 16, 298 "column": 32, 299 "program": "ambient_declaration.ets" 300 }, 301 "end": { 302 "line": 16, 303 "column": 43, 304 "program": "ambient_declaration.ets" 305 } 306 } 307 } 308 ], 309 "returnType": { 310 "type": "ETSPrimitiveType", 311 "loc": { 312 "start": { 313 "line": 16, 314 "column": 46, 315 "program": "ambient_declaration.ets" 316 }, 317 "end": { 318 "line": 16, 319 "column": 50, 320 "program": "ambient_declaration.ets" 321 } 322 } 323 }, 324 "declare": true, 325 "annotations": [ 326 { 327 "expr_": { 328 "type": "ETSTypeReference", 329 "part": { 330 "type": "ETSTypeReferencePart", 331 "name": { 332 "type": "TSQualifiedName", 333 "left": { 334 "type": "Identifier", 335 "name": "functions", 336 "decorators": [], 337 "loc": { 338 "start": { 339 "line": 16, 340 "column": 18, 341 "program": "ambient_declaration.ets" 342 }, 343 "end": { 344 "line": 16, 345 "column": 21, 346 "program": "ambient_declaration.ets" 347 } 348 } 349 }, 350 "right": { 351 "type": "Identifier", 352 "name": "OptionalParametersAnnotation", 353 "decorators": [], 354 "loc": { 355 "start": { 356 "line": 16, 357 "column": 18, 358 "program": "ambient_declaration.ets" 359 }, 360 "end": { 361 "line": 16, 362 "column": 21, 363 "program": "ambient_declaration.ets" 364 } 365 } 366 }, 367 "loc": { 368 "start": { 369 "line": 16, 370 "column": 18, 371 "program": "ambient_declaration.ets" 372 }, 373 "end": { 374 "line": 16, 375 "column": 21, 376 "program": "ambient_declaration.ets" 377 } 378 } 379 }, 380 "loc": { 381 "start": { 382 "line": 16, 383 "column": 18, 384 "program": "ambient_declaration.ets" 385 }, 386 "end": { 387 "line": 16, 388 "column": 21, 389 "program": "ambient_declaration.ets" 390 } 391 } 392 }, 393 "loc": { 394 "start": { 395 "line": 16, 396 "column": 18, 397 "program": "ambient_declaration.ets" 398 }, 399 "end": { 400 "line": 16, 401 "column": 21, 402 "program": "ambient_declaration.ets" 403 } 404 } 405 }, 406 "properties": [ 407 { 408 "type": "ClassProperty", 409 "key": { 410 "type": "Identifier", 411 "name": "minArgCount", 412 "decorators": [], 413 "loc": { 414 "start": { 415 "line": 16, 416 "column": 18, 417 "program": "ambient_declaration.ets" 418 }, 419 "end": { 420 "line": 16, 421 "column": 21, 422 "program": "ambient_declaration.ets" 423 } 424 } 425 }, 426 "value": { 427 "type": "NumberLiteral", 428 "value": 0, 429 "loc": { 430 "start": { 431 "line": 16, 432 "column": 18, 433 "program": "ambient_declaration.ets" 434 }, 435 "end": { 436 "line": 16, 437 "column": 21, 438 "program": "ambient_declaration.ets" 439 } 440 } 441 }, 442 "static": false, 443 "readonly": false, 444 "declare": false, 445 "optional": false, 446 "computed": false, 447 "definite": false, 448 "decorators": [], 449 "loc": { 450 "start": { 451 "line": 16, 452 "column": 18, 453 "program": "ambient_declaration.ets" 454 }, 455 "end": { 456 "line": 16, 457 "column": 21, 458 "program": "ambient_declaration.ets" 459 } 460 } 461 } 462 ], 463 "loc": { 464 "start": { 465 "line": 16, 466 "column": 18, 467 "program": "ambient_declaration.ets" 468 }, 469 "end": { 470 "line": 16, 471 "column": 21, 472 "program": "ambient_declaration.ets" 473 } 474 } 475 } 476 ], 477 "loc": { 478 "start": { 479 "line": 16, 480 "column": 18, 481 "program": "ambient_declaration.ets" 482 }, 483 "end": { 484 "line": 16, 485 "column": 21, 486 "program": "ambient_declaration.ets" 487 } 488 } 489 }, 490 "loc": { 491 "start": { 492 "line": 16, 493 "column": 18, 494 "program": "ambient_declaration.ets" 495 }, 496 "end": { 497 "line": 16, 498 "column": 21, 499 "program": "ambient_declaration.ets" 500 } 501 } 502 }, 503 "overloads": [], 504 "decorators": [], 505 "loc": { 506 "start": { 507 "line": 16, 508 "column": 1, 509 "program": "ambient_declaration.ets" 510 }, 511 "end": { 512 "line": 16, 513 "column": 21, 514 "program": "ambient_declaration.ets" 515 } 516 } 517 }, 518 { 519 "type": "MethodDefinition", 520 "key": { 521 "type": "Identifier", 522 "name": "main", 523 "decorators": [], 524 "loc": { 525 "start": { 526 "line": 18, 527 "column": 10, 528 "program": "ambient_declaration.ets" 529 }, 530 "end": { 531 "line": 18, 532 "column": 14, 533 "program": "ambient_declaration.ets" 534 } 535 } 536 }, 537 "kind": "method", 538 "accessibility": "public", 539 "static": true, 540 "optional": false, 541 "computed": false, 542 "value": { 543 "type": "FunctionExpression", 544 "function": { 545 "type": "ScriptFunction", 546 "id": { 547 "type": "Identifier", 548 "name": "main", 549 "decorators": [], 550 "loc": { 551 "start": { 552 "line": 18, 553 "column": 10, 554 "program": "ambient_declaration.ets" 555 }, 556 "end": { 557 "line": 18, 558 "column": 14, 559 "program": "ambient_declaration.ets" 560 } 561 } 562 }, 563 "generator": false, 564 "async": false, 565 "expression": false, 566 "params": [], 567 "body": { 568 "type": "BlockStatement", 569 "statements": [], 570 "loc": { 571 "start": { 572 "line": 18, 573 "column": 17, 574 "program": "ambient_declaration.ets" 575 }, 576 "end": { 577 "line": 19, 578 "column": 2, 579 "program": "ambient_declaration.ets" 580 } 581 } 582 }, 583 "loc": { 584 "start": { 585 "line": 18, 586 "column": 10, 587 "program": "ambient_declaration.ets" 588 }, 589 "end": { 590 "line": 19, 591 "column": 2, 592 "program": "ambient_declaration.ets" 593 } 594 } 595 }, 596 "loc": { 597 "start": { 598 "line": 18, 599 "column": 10, 600 "program": "ambient_declaration.ets" 601 }, 602 "end": { 603 "line": 19, 604 "column": 2, 605 "program": "ambient_declaration.ets" 606 } 607 } 608 }, 609 "overloads": [], 610 "decorators": [], 611 "loc": { 612 "start": { 613 "line": 18, 614 "column": 1, 615 "program": "ambient_declaration.ets" 616 }, 617 "end": { 618 "line": 19, 619 "column": 2, 620 "program": "ambient_declaration.ets" 621 } 622 } 623 } 624 ], 625 "loc": { 626 "start": { 627 "line": 1, 628 "column": 1, 629 "program": "ambient_declaration.ets" 630 }, 631 "end": { 632 "line": 1, 633 "column": 1, 634 "program": "ambient_declaration.ets" 635 } 636 } 637 }, 638 "loc": { 639 "start": { 640 "line": 1, 641 "column": 1, 642 "program": "ambient_declaration.ets" 643 }, 644 "end": { 645 "line": 1, 646 "column": 1, 647 "program": "ambient_declaration.ets" 648 } 649 } 650 } 651 ], 652 "loc": { 653 "start": { 654 "line": 1, 655 "column": 1, 656 "program": "ambient_declaration.ets" 657 }, 658 "end": { 659 "line": 20, 660 "column": 1, 661 "program": "ambient_declaration.ets" 662 } 663 } 664} 665