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": "array_new.ets" 16 }, 17 "end": { 18 "line": 1, 19 "column": 1, 20 "program": "array_new.ets" 21 } 22 } 23 }, 24 "superClass": null, 25 "implements": [], 26 "body": [ 27 { 28 "type": "MethodDefinition", 29 "key": { 30 "type": "Identifier", 31 "name": "main", 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": "main", 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": "array_new.ets" 125 }, 126 "end": { 127 "line": 1, 128 "column": 1, 129 "program": "array_new.ets" 130 } 131 } 132 }, 133 { 134 "type": "MethodDefinition", 135 "key": { 136 "type": "Identifier", 137 "name": "_$init$_", 138 "decorators": [], 139 "loc": { 140 "start": { 141 "line": 1, 142 "column": 1, 143 "program": null 144 }, 145 "end": { 146 "line": 1, 147 "column": 1, 148 "program": null 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": "_$init$_", 164 "decorators": [], 165 "loc": { 166 "start": { 167 "line": 1, 168 "column": 1, 169 "program": null 170 }, 171 "end": { 172 "line": 1, 173 "column": 1, 174 "program": null 175 } 176 } 177 }, 178 "generator": false, 179 "async": false, 180 "expression": false, 181 "params": [], 182 "body": { 183 "type": "BlockStatement", 184 "statements": [], 185 "loc": { 186 "start": { 187 "line": 1, 188 "column": 1, 189 "program": null 190 }, 191 "end": { 192 "line": 1, 193 "column": 1, 194 "program": null 195 } 196 } 197 }, 198 "loc": { 199 "start": { 200 "line": 1, 201 "column": 1, 202 "program": null 203 }, 204 "end": { 205 "line": 1, 206 "column": 1, 207 "program": null 208 } 209 } 210 }, 211 "loc": { 212 "start": { 213 "line": 1, 214 "column": 1, 215 "program": null 216 }, 217 "end": { 218 "line": 1, 219 "column": 1, 220 "program": null 221 } 222 } 223 }, 224 "overloads": [], 225 "decorators": [], 226 "loc": { 227 "start": { 228 "line": 1, 229 "column": 1, 230 "program": "array_new.ets" 231 }, 232 "end": { 233 "line": 1, 234 "column": 1, 235 "program": "array_new.ets" 236 } 237 } 238 }, 239 { 240 "type": "MethodDefinition", 241 "key": { 242 "type": "Identifier", 243 "name": "foo", 244 "decorators": [], 245 "loc": { 246 "start": { 247 "line": 16, 248 "column": 10, 249 "program": "array_new.ets" 250 }, 251 "end": { 252 "line": 16, 253 "column": 13, 254 "program": "array_new.ets" 255 } 256 } 257 }, 258 "kind": "method", 259 "accessibility": "public", 260 "static": true, 261 "optional": false, 262 "computed": false, 263 "value": { 264 "type": "FunctionExpression", 265 "function": { 266 "type": "ScriptFunction", 267 "id": { 268 "type": "Identifier", 269 "name": "foo", 270 "decorators": [], 271 "loc": { 272 "start": { 273 "line": 16, 274 "column": 10, 275 "program": "array_new.ets" 276 }, 277 "end": { 278 "line": 16, 279 "column": 13, 280 "program": "array_new.ets" 281 } 282 } 283 }, 284 "generator": false, 285 "async": false, 286 "expression": false, 287 "params": [], 288 "returnType": { 289 "type": "ETSPrimitiveType", 290 "loc": { 291 "start": { 292 "line": 16, 293 "column": 17, 294 "program": "array_new.ets" 295 }, 296 "end": { 297 "line": 16, 298 "column": 21, 299 "program": "array_new.ets" 300 } 301 } 302 }, 303 "body": { 304 "type": "BlockStatement", 305 "statements": [ 306 { 307 "type": "VariableDeclaration", 308 "declarations": [ 309 { 310 "type": "VariableDeclarator", 311 "id": { 312 "type": "Identifier", 313 "name": "a", 314 "decorators": [], 315 "loc": { 316 "start": { 317 "line": 17, 318 "column": 7, 319 "program": "array_new.ets" 320 }, 321 "end": { 322 "line": 17, 323 "column": 8, 324 "program": "array_new.ets" 325 } 326 } 327 }, 328 "init": { 329 "type": "ETSNewArrayInstanceExpression", 330 "typeReference": { 331 "type": "ETSPrimitiveType", 332 "loc": { 333 "start": { 334 "line": 17, 335 "column": 15, 336 "program": "array_new.ets" 337 }, 338 "end": { 339 "line": 17, 340 "column": 18, 341 "program": "array_new.ets" 342 } 343 } 344 }, 345 "dimension": { 346 "type": "NumberLiteral", 347 "value": 5, 348 "loc": { 349 "start": { 350 "line": 17, 351 "column": 19, 352 "program": "array_new.ets" 353 }, 354 "end": { 355 "line": 17, 356 "column": 22, 357 "program": "array_new.ets" 358 } 359 } 360 }, 361 "loc": { 362 "start": { 363 "line": 17, 364 "column": 11, 365 "program": "array_new.ets" 366 }, 367 "end": { 368 "line": 17, 369 "column": 23, 370 "program": "array_new.ets" 371 } 372 } 373 }, 374 "loc": { 375 "start": { 376 "line": 17, 377 "column": 7, 378 "program": "array_new.ets" 379 }, 380 "end": { 381 "line": 17, 382 "column": 23, 383 "program": "array_new.ets" 384 } 385 } 386 } 387 ], 388 "kind": "let", 389 "loc": { 390 "start": { 391 "line": 17, 392 "column": 3, 393 "program": "array_new.ets" 394 }, 395 "end": { 396 "line": 17, 397 "column": 23, 398 "program": "array_new.ets" 399 } 400 } 401 } 402 ], 403 "loc": { 404 "start": { 405 "line": 16, 406 "column": 22, 407 "program": "array_new.ets" 408 }, 409 "end": { 410 "line": 18, 411 "column": 2, 412 "program": "array_new.ets" 413 } 414 } 415 }, 416 "loc": { 417 "start": { 418 "line": 16, 419 "column": 10, 420 "program": "array_new.ets" 421 }, 422 "end": { 423 "line": 18, 424 "column": 2, 425 "program": "array_new.ets" 426 } 427 } 428 }, 429 "loc": { 430 "start": { 431 "line": 16, 432 "column": 10, 433 "program": "array_new.ets" 434 }, 435 "end": { 436 "line": 18, 437 "column": 2, 438 "program": "array_new.ets" 439 } 440 } 441 }, 442 "overloads": [], 443 "decorators": [], 444 "loc": { 445 "start": { 446 "line": 16, 447 "column": 1, 448 "program": "array_new.ets" 449 }, 450 "end": { 451 "line": 18, 452 "column": 2, 453 "program": "array_new.ets" 454 } 455 } 456 } 457 ], 458 "loc": { 459 "start": { 460 "line": 1, 461 "column": 1, 462 "program": "array_new.ets" 463 }, 464 "end": { 465 "line": 1, 466 "column": 1, 467 "program": "array_new.ets" 468 } 469 } 470 }, 471 "loc": { 472 "start": { 473 "line": 1, 474 "column": 1, 475 "program": "array_new.ets" 476 }, 477 "end": { 478 "line": 1, 479 "column": 1, 480 "program": "array_new.ets" 481 } 482 } 483 } 484 ], 485 "loc": { 486 "start": { 487 "line": 1, 488 "column": 1, 489 "program": "array_new.ets" 490 }, 491 "end": { 492 "line": 19, 493 "column": 1, 494 "program": "array_new.ets" 495 } 496 } 497} 498