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": "arrayLiteralReassign.ets" 16 }, 17 "end": { 18 "line": 1, 19 "column": 1, 20 "program": "arrayLiteralReassign.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": "arrayLiteralReassign.ets" 125 }, 126 "end": { 127 "line": 1, 128 "column": 1, 129 "program": "arrayLiteralReassign.ets" 130 } 131 } 132 }, 133 { 134 "type": "MethodDefinition", 135 "key": { 136 "type": "Identifier", 137 "name": "main", 138 "decorators": [], 139 "loc": { 140 "start": { 141 "line": 16, 142 "column": 10, 143 "program": "arrayLiteralReassign.ets" 144 }, 145 "end": { 146 "line": 16, 147 "column": 14, 148 "program": "arrayLiteralReassign.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": "main", 164 "decorators": [], 165 "loc": { 166 "start": { 167 "line": 16, 168 "column": 10, 169 "program": "arrayLiteralReassign.ets" 170 }, 171 "end": { 172 "line": 16, 173 "column": 14, 174 "program": "arrayLiteralReassign.ets" 175 } 176 } 177 }, 178 "generator": false, 179 "async": false, 180 "expression": false, 181 "params": [], 182 "body": { 183 "type": "BlockStatement", 184 "statements": [ 185 { 186 "type": "VariableDeclaration", 187 "declarations": [ 188 { 189 "type": "VariableDeclarator", 190 "id": { 191 "type": "Identifier", 192 "name": "arr", 193 "typeAnnotation": { 194 "type": "ETSTypeReference", 195 "part": { 196 "type": "ETSTypeReferencePart", 197 "name": { 198 "type": "Identifier", 199 "name": "Array", 200 "decorators": [], 201 "loc": { 202 "start": { 203 "line": 1, 204 "column": 1, 205 "program": "arrayLiteralReassign.ets" 206 }, 207 "end": { 208 "line": 1, 209 "column": 3, 210 "program": "arrayLiteralReassign.ets" 211 } 212 } 213 }, 214 "typeParams": { 215 "type": "TSTypeParameterInstantiation", 216 "params": [ 217 { 218 "type": "ETSTypeReference", 219 "part": { 220 "type": "ETSTypeReferencePart", 221 "name": { 222 "type": "Identifier", 223 "name": "number", 224 "decorators": [], 225 "loc": { 226 "start": { 227 "line": 1, 228 "column": 3, 229 "program": "arrayLiteralReassign.ets" 230 }, 231 "end": { 232 "line": 1, 233 "column": 3, 234 "program": "arrayLiteralReassign.ets" 235 } 236 } 237 }, 238 "loc": { 239 "start": { 240 "line": 1, 241 "column": 3, 242 "program": "arrayLiteralReassign.ets" 243 }, 244 "end": { 245 "line": 1, 246 "column": 3, 247 "program": "arrayLiteralReassign.ets" 248 } 249 } 250 }, 251 "loc": { 252 "start": { 253 "line": 1, 254 "column": 3, 255 "program": "arrayLiteralReassign.ets" 256 }, 257 "end": { 258 "line": 1, 259 "column": 3, 260 "program": "arrayLiteralReassign.ets" 261 } 262 } 263 } 264 ], 265 "loc": { 266 "start": { 267 "line": 1, 268 "column": 3, 269 "program": "arrayLiteralReassign.ets" 270 }, 271 "end": { 272 "line": 1, 273 "column": 3, 274 "program": "arrayLiteralReassign.ets" 275 } 276 } 277 }, 278 "loc": { 279 "start": { 280 "line": 1, 281 "column": 1, 282 "program": "arrayLiteralReassign.ets" 283 }, 284 "end": { 285 "line": 1, 286 "column": 3, 287 "program": "arrayLiteralReassign.ets" 288 } 289 } 290 }, 291 "loc": { 292 "start": { 293 "line": 17, 294 "column": 20, 295 "program": "arrayLiteralReassign.ets" 296 }, 297 "end": { 298 "line": 17, 299 "column": 22, 300 "program": "arrayLiteralReassign.ets" 301 } 302 } 303 }, 304 "decorators": [], 305 "loc": { 306 "start": { 307 "line": 17, 308 "column": 9, 309 "program": "arrayLiteralReassign.ets" 310 }, 311 "end": { 312 "line": 17, 313 "column": 12, 314 "program": "arrayLiteralReassign.ets" 315 } 316 } 317 }, 318 "init": { 319 "type": "ArrayExpression", 320 "elements": [ 321 { 322 "type": "NumberLiteral", 323 "value": 5, 324 "loc": { 325 "start": { 326 "line": 17, 327 "column": 26, 328 "program": "arrayLiteralReassign.ets" 329 }, 330 "end": { 331 "line": 17, 332 "column": 27, 333 "program": "arrayLiteralReassign.ets" 334 } 335 } 336 } 337 ], 338 "loc": { 339 "start": { 340 "line": 17, 341 "column": 25, 342 "program": "arrayLiteralReassign.ets" 343 }, 344 "end": { 345 "line": 17, 346 "column": 28, 347 "program": "arrayLiteralReassign.ets" 348 } 349 } 350 }, 351 "loc": { 352 "start": { 353 "line": 17, 354 "column": 9, 355 "program": "arrayLiteralReassign.ets" 356 }, 357 "end": { 358 "line": 17, 359 "column": 28, 360 "program": "arrayLiteralReassign.ets" 361 } 362 } 363 } 364 ], 365 "kind": "let", 366 "loc": { 367 "start": { 368 "line": 17, 369 "column": 5, 370 "program": "arrayLiteralReassign.ets" 371 }, 372 "end": { 373 "line": 17, 374 "column": 28, 375 "program": "arrayLiteralReassign.ets" 376 } 377 } 378 }, 379 { 380 "type": "ExpressionStatement", 381 "expression": { 382 "type": "AssignmentExpression", 383 "operator": "=", 384 "left": { 385 "type": "Identifier", 386 "name": "arr", 387 "decorators": [], 388 "loc": { 389 "start": { 390 "line": 18, 391 "column": 5, 392 "program": "arrayLiteralReassign.ets" 393 }, 394 "end": { 395 "line": 18, 396 "column": 8, 397 "program": "arrayLiteralReassign.ets" 398 } 399 } 400 }, 401 "right": { 402 "type": "ArrayExpression", 403 "elements": [ 404 { 405 "type": "NumberLiteral", 406 "value": 5, 407 "loc": { 408 "start": { 409 "line": 18, 410 "column": 12, 411 "program": "arrayLiteralReassign.ets" 412 }, 413 "end": { 414 "line": 18, 415 "column": 13, 416 "program": "arrayLiteralReassign.ets" 417 } 418 } 419 }, 420 { 421 "type": "NumberLiteral", 422 "value": 6, 423 "loc": { 424 "start": { 425 "line": 18, 426 "column": 15, 427 "program": "arrayLiteralReassign.ets" 428 }, 429 "end": { 430 "line": 18, 431 "column": 16, 432 "program": "arrayLiteralReassign.ets" 433 } 434 } 435 } 436 ], 437 "loc": { 438 "start": { 439 "line": 18, 440 "column": 11, 441 "program": "arrayLiteralReassign.ets" 442 }, 443 "end": { 444 "line": 18, 445 "column": 17, 446 "program": "arrayLiteralReassign.ets" 447 } 448 } 449 }, 450 "loc": { 451 "start": { 452 "line": 18, 453 "column": 5, 454 "program": "arrayLiteralReassign.ets" 455 }, 456 "end": { 457 "line": 18, 458 "column": 17, 459 "program": "arrayLiteralReassign.ets" 460 } 461 } 462 }, 463 "loc": { 464 "start": { 465 "line": 18, 466 "column": 5, 467 "program": "arrayLiteralReassign.ets" 468 }, 469 "end": { 470 "line": 18, 471 "column": 17, 472 "program": "arrayLiteralReassign.ets" 473 } 474 } 475 } 476 ], 477 "loc": { 478 "start": { 479 "line": 16, 480 "column": 17, 481 "program": "arrayLiteralReassign.ets" 482 }, 483 "end": { 484 "line": 19, 485 "column": 2, 486 "program": "arrayLiteralReassign.ets" 487 } 488 } 489 }, 490 "loc": { 491 "start": { 492 "line": 16, 493 "column": 10, 494 "program": "arrayLiteralReassign.ets" 495 }, 496 "end": { 497 "line": 19, 498 "column": 2, 499 "program": "arrayLiteralReassign.ets" 500 } 501 } 502 }, 503 "loc": { 504 "start": { 505 "line": 16, 506 "column": 10, 507 "program": "arrayLiteralReassign.ets" 508 }, 509 "end": { 510 "line": 19, 511 "column": 2, 512 "program": "arrayLiteralReassign.ets" 513 } 514 } 515 }, 516 "overloads": [], 517 "decorators": [], 518 "loc": { 519 "start": { 520 "line": 16, 521 "column": 1, 522 "program": "arrayLiteralReassign.ets" 523 }, 524 "end": { 525 "line": 19, 526 "column": 2, 527 "program": "arrayLiteralReassign.ets" 528 } 529 } 530 } 531 ], 532 "loc": { 533 "start": { 534 "line": 1, 535 "column": 1, 536 "program": "arrayLiteralReassign.ets" 537 }, 538 "end": { 539 "line": 1, 540 "column": 1, 541 "program": "arrayLiteralReassign.ets" 542 } 543 } 544 }, 545 "loc": { 546 "start": { 547 "line": 1, 548 "column": 1, 549 "program": "arrayLiteralReassign.ets" 550 }, 551 "end": { 552 "line": 1, 553 "column": 1, 554 "program": "arrayLiteralReassign.ets" 555 } 556 } 557 } 558 ], 559 "loc": { 560 "start": { 561 "line": 1, 562 "column": 1, 563 "program": "arrayLiteralReassign.ets" 564 }, 565 "end": { 566 "line": 20, 567 "column": 1, 568 "program": "arrayLiteralReassign.ets" 569 } 570 } 571} 572