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": "ETSPrimitiveType", 166 "loc": { 167 "start": { 168 "line": 16, 169 "column": 18 170 }, 171 "end": { 172 "line": 16, 173 "column": 22 174 } 175 } 176 }, 177 "body": { 178 "type": "BlockStatement", 179 "statements": [ 180 { 181 "type": "VariableDeclaration", 182 "declarations": [ 183 { 184 "type": "VariableDeclarator", 185 "id": { 186 "type": "Identifier", 187 "name": "y", 188 "typeAnnotation": { 189 "type": "ETSFunctionType", 190 "params": [], 191 "returnType": { 192 "type": "ETSPrimitiveType", 193 "loc": { 194 "start": { 195 "line": 17, 196 "column": 18 197 }, 198 "end": { 199 "line": 17, 200 "column": 22 201 } 202 } 203 }, 204 "loc": { 205 "start": { 206 "line": 17, 207 "column": 12 208 }, 209 "end": { 210 "line": 17, 211 "column": 22 212 } 213 } 214 }, 215 "decorators": [], 216 "loc": { 217 "start": { 218 "line": 17, 219 "column": 9 220 }, 221 "end": { 222 "line": 17, 223 "column": 10 224 } 225 } 226 }, 227 "init": { 228 "type": "ArrowFunctionExpression", 229 "function": { 230 "type": "ScriptFunction", 231 "id": null, 232 "generator": false, 233 "async": false, 234 "expression": true, 235 "params": [], 236 "returnType": { 237 "type": "ETSPrimitiveType", 238 "loc": { 239 "start": { 240 "line": 17, 241 "column": 29 242 }, 243 "end": { 244 "line": 17, 245 "column": 33 246 } 247 } 248 }, 249 "body": { 250 "type": "BlockStatement", 251 "statements": [ 252 { 253 "type": "ExpressionStatement", 254 "expression": { 255 "type": "CallExpression", 256 "callee": { 257 "type": "MemberExpression", 258 "object": { 259 "type": "Identifier", 260 "name": "console", 261 "decorators": [], 262 "loc": { 263 "start": { 264 "line": 17, 265 "column": 37 266 }, 267 "end": { 268 "line": 17, 269 "column": 44 270 } 271 } 272 }, 273 "property": { 274 "type": "Identifier", 275 "name": "println", 276 "decorators": [], 277 "loc": { 278 "start": { 279 "line": 17, 280 "column": 45 281 }, 282 "end": { 283 "line": 17, 284 "column": 52 285 } 286 } 287 }, 288 "computed": false, 289 "optional": false, 290 "loc": { 291 "start": { 292 "line": 17, 293 "column": 37 294 }, 295 "end": { 296 "line": 17, 297 "column": 52 298 } 299 } 300 }, 301 "arguments": [ 302 { 303 "type": "NumberLiteral", 304 "value": 10, 305 "loc": { 306 "start": { 307 "line": 17, 308 "column": 53 309 }, 310 "end": { 311 "line": 17, 312 "column": 55 313 } 314 } 315 } 316 ], 317 "optional": false, 318 "loc": { 319 "start": { 320 "line": 17, 321 "column": 37 322 }, 323 "end": { 324 "line": 17, 325 "column": 56 326 } 327 } 328 }, 329 "loc": { 330 "start": { 331 "line": 1, 332 "column": 1 333 }, 334 "end": { 335 "line": 1, 336 "column": 1 337 } 338 } 339 } 340 ], 341 "loc": { 342 "start": { 343 "line": 1, 344 "column": 1 345 }, 346 "end": { 347 "line": 1, 348 "column": 1 349 } 350 } 351 }, 352 "loc": { 353 "start": { 354 "line": 17, 355 "column": 25 356 }, 357 "end": { 358 "line": 17, 359 "column": 56 360 } 361 } 362 }, 363 "loc": { 364 "start": { 365 "line": 17, 366 "column": 25 367 }, 368 "end": { 369 "line": 17, 370 "column": 56 371 } 372 } 373 }, 374 "loc": { 375 "start": { 376 "line": 17, 377 "column": 9 378 }, 379 "end": { 380 "line": 17, 381 "column": 56 382 } 383 } 384 } 385 ], 386 "kind": "let", 387 "loc": { 388 "start": { 389 "line": 17, 390 "column": 5 391 }, 392 "end": { 393 "line": 17, 394 "column": 57 395 } 396 } 397 }, 398 { 399 "type": "ExpressionStatement", 400 "expression": { 401 "type": "CallExpression", 402 "callee": { 403 "type": "Identifier", 404 "name": "y", 405 "decorators": [], 406 "loc": { 407 "start": { 408 "line": 18, 409 "column": 5 410 }, 411 "end": { 412 "line": 18, 413 "column": 6 414 } 415 } 416 }, 417 "arguments": [], 418 "optional": false, 419 "loc": { 420 "start": { 421 "line": 18, 422 "column": 5 423 }, 424 "end": { 425 "line": 18, 426 "column": 8 427 } 428 } 429 }, 430 "loc": { 431 "start": { 432 "line": 18, 433 "column": 5 434 }, 435 "end": { 436 "line": 18, 437 "column": 9 438 } 439 } 440 } 441 ], 442 "loc": { 443 "start": { 444 "line": 16, 445 "column": 23 446 }, 447 "end": { 448 "line": 19, 449 "column": 2 450 } 451 } 452 }, 453 "loc": { 454 "start": { 455 "line": 16, 456 "column": 14 457 }, 458 "end": { 459 "line": 19, 460 "column": 2 461 } 462 } 463 }, 464 "loc": { 465 "start": { 466 "line": 16, 467 "column": 14 468 }, 469 "end": { 470 "line": 19, 471 "column": 2 472 } 473 } 474 }, 475 "overloads": [], 476 "decorators": [], 477 "loc": { 478 "start": { 479 "line": 16, 480 "column": 1 481 }, 482 "end": { 483 "line": 19, 484 "column": 2 485 } 486 } 487 } 488 ], 489 "loc": { 490 "start": { 491 "line": 1, 492 "column": 1 493 }, 494 "end": { 495 "line": 1, 496 "column": 1 497 } 498 } 499 }, 500 "loc": { 501 "start": { 502 "line": 1, 503 "column": 1 504 }, 505 "end": { 506 "line": 1, 507 "column": 1 508 } 509 } 510 } 511 ], 512 "loc": { 513 "start": { 514 "line": 1, 515 "column": 1 516 }, 517 "end": { 518 "line": 20, 519 "column": 1 520 } 521 } 522} 523