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