1{ 2 "type": "Program", 3 "statements": [ 4 { 5 "type": "VariableDeclaration", 6 "declarations": [ 7 { 8 "type": "VariableDeclarator", 9 "id": { 10 "type": "ObjectPattern", 11 "properties": [ 12 { 13 "type": "Property", 14 "method": false, 15 "shorthand": false, 16 "computed": false, 17 "key": { 18 "type": "Identifier", 19 "name": "a", 20 "decorators": [], 21 "loc": { 22 "start": { 23 "line": 17, 24 "column": 7 25 }, 26 "end": { 27 "line": 17, 28 "column": 8 29 } 30 } 31 }, 32 "value": { 33 "type": "AssignmentPattern", 34 "left": { 35 "type": "ObjectPattern", 36 "properties": [ 37 { 38 "type": "Property", 39 "method": false, 40 "shorthand": false, 41 "computed": false, 42 "key": { 43 "type": "Identifier", 44 "name": "b", 45 "decorators": [], 46 "loc": { 47 "start": { 48 "line": 17, 49 "column": 12 50 }, 51 "end": { 52 "line": 17, 53 "column": 13 54 } 55 } 56 }, 57 "value": { 58 "type": "AssignmentPattern", 59 "left": { 60 "type": "ArrayPattern", 61 "elements": [ 62 { 63 "type": "AssignmentPattern", 64 "left": { 65 "type": "ObjectPattern", 66 "properties": [ 67 { 68 "type": "Property", 69 "method": false, 70 "shorthand": true, 71 "computed": false, 72 "key": { 73 "type": "Identifier", 74 "name": "r", 75 "decorators": [], 76 "loc": { 77 "start": { 78 "line": 17, 79 "column": 18 80 }, 81 "end": { 82 "line": 17, 83 "column": 19 84 } 85 } 86 }, 87 "value": { 88 "type": "Identifier", 89 "name": "r", 90 "decorators": [], 91 "loc": { 92 "start": { 93 "line": 17, 94 "column": 18 95 }, 96 "end": { 97 "line": 17, 98 "column": 19 99 } 100 } 101 }, 102 "kind": "init", 103 "loc": { 104 "start": { 105 "line": 17, 106 "column": 18 107 }, 108 "end": { 109 "line": 17, 110 "column": 19 111 } 112 } 113 }, 114 { 115 "type": "Property", 116 "method": false, 117 "shorthand": true, 118 "computed": false, 119 "key": { 120 "type": "Identifier", 121 "name": "k", 122 "decorators": [], 123 "loc": { 124 "start": { 125 "line": 17, 126 "column": 21 127 }, 128 "end": { 129 "line": 17, 130 "column": 22 131 } 132 } 133 }, 134 "value": { 135 "type": "Identifier", 136 "name": "k", 137 "decorators": [], 138 "loc": { 139 "start": { 140 "line": 17, 141 "column": 21 142 }, 143 "end": { 144 "line": 17, 145 "column": 22 146 } 147 } 148 }, 149 "kind": "init", 150 "loc": { 151 "start": { 152 "line": 17, 153 "column": 21 154 }, 155 "end": { 156 "line": 17, 157 "column": 22 158 } 159 } 160 } 161 ], 162 "loc": { 163 "start": { 164 "line": 17, 165 "column": 16 166 }, 167 "end": { 168 "line": 17, 169 "column": 24 170 } 171 } 172 }, 173 "right": { 174 "type": "ObjectExpression", 175 "properties": [ 176 { 177 "type": "Property", 178 "method": false, 179 "shorthand": false, 180 "computed": false, 181 "key": { 182 "type": "Identifier", 183 "name": "er", 184 "decorators": [], 185 "loc": { 186 "start": { 187 "line": 17, 188 "column": 29 189 }, 190 "end": { 191 "line": 17, 192 "column": 31 193 } 194 } 195 }, 196 "value": { 197 "type": "NumberLiteral", 198 "value": 5, 199 "loc": { 200 "start": { 201 "line": 17, 202 "column": 33 203 }, 204 "end": { 205 "line": 17, 206 "column": 34 207 } 208 } 209 }, 210 "kind": "init", 211 "loc": { 212 "start": { 213 "line": 17, 214 "column": 29 215 }, 216 "end": { 217 "line": 17, 218 "column": 34 219 } 220 } 221 } 222 ], 223 "loc": { 224 "start": { 225 "line": 17, 226 "column": 27 227 }, 228 "end": { 229 "line": 17, 230 "column": 36 231 } 232 } 233 }, 234 "loc": { 235 "start": { 236 "line": 17, 237 "column": 16 238 }, 239 "end": { 240 "line": 17, 241 "column": 36 242 } 243 } 244 } 245 ], 246 "loc": { 247 "start": { 248 "line": 17, 249 "column": 15 250 }, 251 "end": { 252 "line": 17, 253 "column": 37 254 } 255 } 256 }, 257 "right": { 258 "type": "ArrayExpression", 259 "elements": [ 260 { 261 "type": "StringLiteral", 262 "value": "foo", 263 "loc": { 264 "start": { 265 "line": 17, 266 "column": 41 267 }, 268 "end": { 269 "line": 17, 270 "column": 46 271 } 272 } 273 }, 274 { 275 "type": "BooleanLiteral", 276 "value": true, 277 "loc": { 278 "start": { 279 "line": 17, 280 "column": 48 281 }, 282 "end": { 283 "line": 17, 284 "column": 52 285 } 286 } 287 } 288 ], 289 "loc": { 290 "start": { 291 "line": 17, 292 "column": 40 293 }, 294 "end": { 295 "line": 17, 296 "column": 53 297 } 298 } 299 }, 300 "loc": { 301 "start": { 302 "line": 17, 303 "column": 15 304 }, 305 "end": { 306 "line": 17, 307 "column": 53 308 } 309 } 310 }, 311 "kind": "init", 312 "loc": { 313 "start": { 314 "line": 17, 315 "column": 12 316 }, 317 "end": { 318 "line": 17, 319 "column": 53 320 } 321 } 322 } 323 ], 324 "loc": { 325 "start": { 326 "line": 17, 327 "column": 10 328 }, 329 "end": { 330 "line": 17, 331 "column": 55 332 } 333 } 334 }, 335 "right": { 336 "type": "ObjectExpression", 337 "properties": [ 338 { 339 "type": "Property", 340 "method": false, 341 "shorthand": false, 342 "computed": false, 343 "key": { 344 "type": "Identifier", 345 "name": "z", 346 "decorators": [], 347 "loc": { 348 "start": { 349 "line": 17, 350 "column": 60 351 }, 352 "end": { 353 "line": 17, 354 "column": 61 355 } 356 } 357 }, 358 "value": { 359 "type": "NumberLiteral", 360 "value": 5, 361 "loc": { 362 "start": { 363 "line": 17, 364 "column": 63 365 }, 366 "end": { 367 "line": 17, 368 "column": 64 369 } 370 } 371 }, 372 "kind": "init", 373 "loc": { 374 "start": { 375 "line": 17, 376 "column": 60 377 }, 378 "end": { 379 "line": 17, 380 "column": 64 381 } 382 } 383 }, 384 { 385 "type": "Property", 386 "method": false, 387 "shorthand": false, 388 "computed": false, 389 "key": { 390 "type": "Identifier", 391 "name": "b", 392 "decorators": [], 393 "loc": { 394 "start": { 395 "line": 17, 396 "column": 66 397 }, 398 "end": { 399 "line": 17, 400 "column": 67 401 } 402 } 403 }, 404 "value": { 405 "type": "ArrayExpression", 406 "elements": [ 407 { 408 "type": "NumberLiteral", 409 "value": 2, 410 "loc": { 411 "start": { 412 "line": 17, 413 "column": 70 414 }, 415 "end": { 416 "line": 17, 417 "column": 71 418 } 419 } 420 }, 421 { 422 "type": "StringLiteral", 423 "value": "foo", 424 "loc": { 425 "start": { 426 "line": 17, 427 "column": 73 428 }, 429 "end": { 430 "line": 17, 431 "column": 78 432 } 433 } 434 } 435 ], 436 "loc": { 437 "start": { 438 "line": 17, 439 "column": 69 440 }, 441 "end": { 442 "line": 17, 443 "column": 79 444 } 445 } 446 }, 447 "kind": "init", 448 "loc": { 449 "start": { 450 "line": 17, 451 "column": 66 452 }, 453 "end": { 454 "line": 17, 455 "column": 79 456 } 457 } 458 } 459 ], 460 "loc": { 461 "start": { 462 "line": 17, 463 "column": 58 464 }, 465 "end": { 466 "line": 17, 467 "column": 81 468 } 469 } 470 }, 471 "loc": { 472 "start": { 473 "line": 17, 474 "column": 10 475 }, 476 "end": { 477 "line": 17, 478 "column": 81 479 } 480 } 481 }, 482 "kind": "init", 483 "loc": { 484 "start": { 485 "line": 17, 486 "column": 7 487 }, 488 "end": { 489 "line": 17, 490 "column": 81 491 } 492 } 493 } 494 ], 495 "loc": { 496 "start": { 497 "line": 17, 498 "column": 5 499 }, 500 "end": { 501 "line": 17, 502 "column": 83 503 } 504 } 505 }, 506 "init": { 507 "type": "ObjectExpression", 508 "properties": [ 509 { 510 "type": "Property", 511 "method": false, 512 "shorthand": false, 513 "computed": false, 514 "key": { 515 "type": "Identifier", 516 "name": "a", 517 "decorators": [], 518 "loc": { 519 "start": { 520 "line": 17, 521 "column": 88 522 }, 523 "end": { 524 "line": 17, 525 "column": 89 526 } 527 } 528 }, 529 "value": { 530 "type": "ObjectExpression", 531 "properties": [ 532 { 533 "type": "Property", 534 "method": false, 535 "shorthand": false, 536 "computed": false, 537 "key": { 538 "type": "Identifier", 539 "name": "k", 540 "decorators": [], 541 "loc": { 542 "start": { 543 "line": 17, 544 "column": 93 545 }, 546 "end": { 547 "line": 17, 548 "column": 94 549 } 550 } 551 }, 552 "value": { 553 "type": "NumberLiteral", 554 "value": 2, 555 "loc": { 556 "start": { 557 "line": 17, 558 "column": 96 559 }, 560 "end": { 561 "line": 17, 562 "column": 97 563 } 564 } 565 }, 566 "kind": "init", 567 "loc": { 568 "start": { 569 "line": 17, 570 "column": 93 571 }, 572 "end": { 573 "line": 17, 574 "column": 97 575 } 576 } 577 }, 578 { 579 "type": "Property", 580 "method": false, 581 "shorthand": false, 582 "computed": false, 583 "key": { 584 "type": "Identifier", 585 "name": "b", 586 "decorators": [], 587 "loc": { 588 "start": { 589 "line": 17, 590 "column": 99 591 }, 592 "end": { 593 "line": 17, 594 "column": 100 595 } 596 } 597 }, 598 "value": { 599 "type": "ArrayExpression", 600 "elements": [ 601 { 602 "type": "BooleanLiteral", 603 "value": true, 604 "loc": { 605 "start": { 606 "line": 17, 607 "column": 103 608 }, 609 "end": { 610 "line": 17, 611 "column": 107 612 } 613 } 614 }, 615 { 616 "type": "BigIntLiteral", 617 "value": "2", 618 "loc": { 619 "start": { 620 "line": 17, 621 "column": 109 622 }, 623 "end": { 624 "line": 17, 625 "column": 111 626 } 627 } 628 } 629 ], 630 "loc": { 631 "start": { 632 "line": 17, 633 "column": 102 634 }, 635 "end": { 636 "line": 17, 637 "column": 112 638 } 639 } 640 }, 641 "kind": "init", 642 "loc": { 643 "start": { 644 "line": 17, 645 "column": 99 646 }, 647 "end": { 648 "line": 17, 649 "column": 112 650 } 651 } 652 } 653 ], 654 "loc": { 655 "start": { 656 "line": 17, 657 "column": 91 658 }, 659 "end": { 660 "line": 17, 661 "column": 114 662 } 663 } 664 }, 665 "kind": "init", 666 "loc": { 667 "start": { 668 "line": 17, 669 "column": 88 670 }, 671 "end": { 672 "line": 17, 673 "column": 114 674 } 675 } 676 }, 677 { 678 "type": "Property", 679 "method": false, 680 "shorthand": false, 681 "computed": false, 682 "key": { 683 "type": "Identifier", 684 "name": "k", 685 "decorators": [], 686 "loc": { 687 "start": { 688 "line": 17, 689 "column": 116 690 }, 691 "end": { 692 "line": 17, 693 "column": 117 694 } 695 } 696 }, 697 "value": { 698 "type": "NumberLiteral", 699 "value": 5, 700 "loc": { 701 "start": { 702 "line": 17, 703 "column": 119 704 }, 705 "end": { 706 "line": 17, 707 "column": 120 708 } 709 } 710 }, 711 "kind": "init", 712 "loc": { 713 "start": { 714 "line": 17, 715 "column": 116 716 }, 717 "end": { 718 "line": 17, 719 "column": 120 720 } 721 } 722 } 723 ], 724 "loc": { 725 "start": { 726 "line": 17, 727 "column": 86 728 }, 729 "end": { 730 "line": 17, 731 "column": 122 732 } 733 } 734 }, 735 "loc": { 736 "start": { 737 "line": 17, 738 "column": 5 739 }, 740 "end": { 741 "line": 17, 742 "column": 122 743 } 744 } 745 } 746 ], 747 "kind": "var", 748 "loc": { 749 "start": { 750 "line": 17, 751 "column": 1 752 }, 753 "end": { 754 "line": 17, 755 "column": 123 756 } 757 } 758 } 759 ], 760 "loc": { 761 "start": { 762 "line": 1, 763 "column": 1 764 }, 765 "end": { 766 "line": 18, 767 "column": 1 768 } 769 } 770} 771TypeError: Object literal may only specify known properties, and property 'k' does not exist in the pattern. [objectDestructuring26.ts:17:5] 772