swc/crates/swc_ecma_parser/tests/tsc/destructuringSameNames.json

2529 lines
64 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 17,
"end": 898,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 17,
"end": 52,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 21,
"end": 51,
"ctxt": 0
},
"id": {
"type": "ObjectPattern",
"span": {
"start": 21,
"end": 38,
"ctxt": 0
},
"properties": [
{
"type": "AssignmentPatternProperty",
"span": {
"start": 23,
"end": 26,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 23,
"end": 26,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"value": null
},
{
"type": "KeyValuePatternProperty",
"key": {
"type": "Identifier",
"span": {
"start": 28,
"end": 31,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"value": {
"type": "Identifier",
"span": {
"start": 33,
"end": 36,
"ctxt": 0
},
"value": "bar",
"optional": false,
"typeAnnotation": null
}
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 41,
"end": 51,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 43,
"end": 46,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 48,
"end": 49,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
]
},
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 53,
"end": 81,
"ctxt": 0
},
"expression": {
"type": "ParenthesisExpression",
"span": {
"start": 53,
"end": 80,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 54,
"end": 79,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ObjectPattern",
"span": {
"start": 54,
"end": 66,
"ctxt": 0
},
"properties": [
{
"type": "AssignmentPatternProperty",
"span": {
"start": 56,
"end": 59,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 56,
"end": 59,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"value": null
},
{
"type": "AssignmentPatternProperty",
"span": {
"start": 61,
"end": 64,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 61,
"end": 64,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"value": null
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 69,
"end": 79,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 71,
"end": 74,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 76,
"end": 77,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
}
}
]
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 82,
"end": 115,
"ctxt": 0
},
"expression": {
"type": "ParenthesisExpression",
"span": {
"start": 82,
"end": 114,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 83,
"end": 113,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ObjectPattern",
"span": {
"start": 83,
"end": 100,
"ctxt": 0
},
"properties": [
{
"type": "AssignmentPatternProperty",
"span": {
"start": 85,
"end": 88,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 85,
"end": 88,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"value": null
},
{
"type": "KeyValuePatternProperty",
"key": {
"type": "Identifier",
"span": {
"start": 90,
"end": 93,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"value": {
"type": "Identifier",
"span": {
"start": 95,
"end": 98,
"ctxt": 0
},
"value": "bar",
"optional": false,
"typeAnnotation": null
}
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 103,
"end": 113,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 105,
"end": 108,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 110,
"end": 111,
"ctxt": 0
},
"value": 3.0,
"raw": "3"
}
}
]
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 116,
"end": 149,
"ctxt": 0
},
"expression": {
"type": "ParenthesisExpression",
"span": {
"start": 116,
"end": 148,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 117,
"end": 147,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ObjectPattern",
"span": {
"start": 117,
"end": 134,
"ctxt": 0
},
"properties": [
{
"type": "KeyValuePatternProperty",
"key": {
"type": "Identifier",
"span": {
"start": 119,
"end": 122,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"value": {
"type": "Identifier",
"span": {
"start": 124,
"end": 127,
"ctxt": 0
},
"value": "bar",
"optional": false,
"typeAnnotation": null
}
},
{
"type": "AssignmentPatternProperty",
"span": {
"start": 129,
"end": 132,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 129,
"end": 132,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"value": null
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 137,
"end": 147,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 139,
"end": 142,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 144,
"end": 145,
"ctxt": 0
},
"value": 4.0,
"raw": "4"
}
}
]
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 150,
"end": 192,
"ctxt": 0
},
"expression": {
"type": "ParenthesisExpression",
"span": {
"start": 150,
"end": 191,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 151,
"end": 190,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ObjectPattern",
"span": {
"start": 151,
"end": 168,
"ctxt": 0
},
"properties": [
{
"type": "AssignmentPatternProperty",
"span": {
"start": 153,
"end": 156,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 153,
"end": 156,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"value": null
},
{
"type": "KeyValuePatternProperty",
"key": {
"type": "Identifier",
"span": {
"start": 158,
"end": 161,
"ctxt": 0
},
"value": "bar",
"optional": false
},
"value": {
"type": "Identifier",
"span": {
"start": 163,
"end": 166,
"ctxt": 0
},
"value": "foo",
"optional": false,
"typeAnnotation": null
}
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 171,
"end": 190,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 173,
"end": 176,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 178,
"end": 179,
"ctxt": 0
},
"value": 3.0,
"raw": "3"
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 181,
"end": 184,
"ctxt": 0
},
"value": "bar",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 186,
"end": 188,
"ctxt": 0
},
"value": 33.0,
"raw": "33"
}
}
]
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 193,
"end": 235,
"ctxt": 0
},
"expression": {
"type": "ParenthesisExpression",
"span": {
"start": 193,
"end": 234,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 194,
"end": 233,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ObjectPattern",
"span": {
"start": 194,
"end": 211,
"ctxt": 0
},
"properties": [
{
"type": "KeyValuePatternProperty",
"key": {
"type": "Identifier",
"span": {
"start": 196,
"end": 199,
"ctxt": 0
},
"value": "bar",
"optional": false
},
"value": {
"type": "Identifier",
"span": {
"start": 201,
"end": 204,
"ctxt": 0
},
"value": "foo",
"optional": false,
"typeAnnotation": null
}
},
{
"type": "AssignmentPatternProperty",
"span": {
"start": 206,
"end": 209,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 206,
"end": 209,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"value": null
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 214,
"end": 233,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 216,
"end": 219,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 221,
"end": 222,
"ctxt": 0
},
"value": 4.0,
"raw": "4"
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 224,
"end": 227,
"ctxt": 0
},
"value": "bar",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 229,
"end": 231,
"ctxt": 0
},
"value": 44.0,
"raw": "44"
}
}
]
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 236,
"end": 274,
"ctxt": 0
},
"expression": {
"type": "ParenthesisExpression",
"span": {
"start": 236,
"end": 273,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 237,
"end": 272,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ObjectPattern",
"span": {
"start": 237,
"end": 259,
"ctxt": 0
},
"properties": [
{
"type": "KeyValuePatternProperty",
"key": {
"type": "Identifier",
"span": {
"start": 239,
"end": 242,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"value": {
"type": "Identifier",
"span": {
"start": 244,
"end": 247,
"ctxt": 0
},
"value": "bar",
"optional": false,
"typeAnnotation": null
}
},
{
"type": "KeyValuePatternProperty",
"key": {
"type": "Identifier",
"span": {
"start": 249,
"end": 252,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"value": {
"type": "Identifier",
"span": {
"start": 254,
"end": 257,
"ctxt": 0
},
"value": "bar",
"optional": false,
"typeAnnotation": null
}
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 262,
"end": 272,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 264,
"end": 267,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 269,
"end": 270,
"ctxt": 0
},
"value": 5.0,
"raw": "5"
}
}
]
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 275,
"end": 322,
"ctxt": 0
},
"expression": {
"type": "ParenthesisExpression",
"span": {
"start": 275,
"end": 321,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 276,
"end": 320,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ObjectPattern",
"span": {
"start": 276,
"end": 298,
"ctxt": 0
},
"properties": [
{
"type": "KeyValuePatternProperty",
"key": {
"type": "Identifier",
"span": {
"start": 278,
"end": 281,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"value": {
"type": "Identifier",
"span": {
"start": 283,
"end": 286,
"ctxt": 0
},
"value": "bar",
"optional": false,
"typeAnnotation": null
}
},
{
"type": "KeyValuePatternProperty",
"key": {
"type": "Identifier",
"span": {
"start": 288,
"end": 291,
"ctxt": 0
},
"value": "bar",
"optional": false
},
"value": {
"type": "Identifier",
"span": {
"start": 293,
"end": 296,
"ctxt": 0
},
"value": "foo",
"optional": false,
"typeAnnotation": null
}
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 301,
"end": 320,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 303,
"end": 306,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 308,
"end": 309,
"ctxt": 0
},
"value": 6.0,
"raw": "6"
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 311,
"end": 314,
"ctxt": 0
},
"value": "bar",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 316,
"end": 318,
"ctxt": 0
},
"value": 66.0,
"raw": "66"
}
}
]
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 323,
"end": 361,
"ctxt": 0
},
"expression": {
"type": "ParenthesisExpression",
"span": {
"start": 323,
"end": 360,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 324,
"end": 359,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ObjectPattern",
"span": {
"start": 324,
"end": 346,
"ctxt": 0
},
"properties": [
{
"type": "KeyValuePatternProperty",
"key": {
"type": "Identifier",
"span": {
"start": 326,
"end": 329,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"value": {
"type": "Identifier",
"span": {
"start": 331,
"end": 334,
"ctxt": 0
},
"value": "bar",
"optional": false,
"typeAnnotation": null
}
},
{
"type": "KeyValuePatternProperty",
"key": {
"type": "Identifier",
"span": {
"start": 336,
"end": 339,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"value": {
"type": "Identifier",
"span": {
"start": 341,
"end": 344,
"ctxt": 0
},
"value": "bar",
"optional": false,
"typeAnnotation": null
}
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 349,
"end": 359,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 351,
"end": 354,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 356,
"end": 357,
"ctxt": 0
},
"value": 7.0,
"raw": "7"
}
}
]
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 363,
"end": 388,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 363,
"end": 387,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ArrayPattern",
"span": {
"start": 363,
"end": 373,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 364,
"end": 367,
"ctxt": 0
},
"value": "foo",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 369,
"end": 372,
"ctxt": 0
},
"value": "foo",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrayExpression",
"span": {
"start": 376,
"end": 387,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 377,
"end": 380,
"ctxt": 0
},
"value": 111.0,
"raw": "111"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 382,
"end": 386,
"ctxt": 0
},
"value": 1111.0,
"raw": "1111"
}
}
]
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 389,
"end": 414,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 389,
"end": 413,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ArrayPattern",
"span": {
"start": 389,
"end": 399,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 390,
"end": 393,
"ctxt": 0
},
"value": "foo",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 395,
"end": 398,
"ctxt": 0
},
"value": "foo",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrayExpression",
"span": {
"start": 402,
"end": 413,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 403,
"end": 406,
"ctxt": 0
},
"value": 222.0,
"raw": "222"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 408,
"end": 412,
"ctxt": 0
},
"value": 2222.0,
"raw": "2222"
}
}
]
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 415,
"end": 452,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 415,
"end": 451,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ArrayPattern",
"span": {
"start": 415,
"end": 430,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 416,
"end": 419,
"ctxt": 0
},
"value": "bar",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 421,
"end": 424,
"ctxt": 0
},
"value": "foo",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 426,
"end": 429,
"ctxt": 0
},
"value": "foo",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrayExpression",
"span": {
"start": 433,
"end": 451,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 434,
"end": 437,
"ctxt": 0
},
"value": 333.0,
"raw": "333"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 439,
"end": 443,
"ctxt": 0
},
"value": 3333.0,
"raw": "3333"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 445,
"end": 450,
"ctxt": 0
},
"value": 33333.0,
"raw": "33333"
}
}
]
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 453,
"end": 490,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 453,
"end": 489,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ArrayPattern",
"span": {
"start": 453,
"end": 468,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 454,
"end": 457,
"ctxt": 0
},
"value": "foo",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 459,
"end": 462,
"ctxt": 0
},
"value": "bar",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 464,
"end": 467,
"ctxt": 0
},
"value": "foo",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrayExpression",
"span": {
"start": 471,
"end": 489,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 472,
"end": 475,
"ctxt": 0
},
"value": 333.0,
"raw": "333"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 477,
"end": 481,
"ctxt": 0
},
"value": 3333.0,
"raw": "3333"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 483,
"end": 488,
"ctxt": 0
},
"value": 33333.0,
"raw": "33333"
}
}
]
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 491,
"end": 528,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 491,
"end": 527,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ArrayPattern",
"span": {
"start": 491,
"end": 506,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 492,
"end": 495,
"ctxt": 0
},
"value": "foo",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 497,
"end": 500,
"ctxt": 0
},
"value": "foo",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 502,
"end": 505,
"ctxt": 0
},
"value": "bar",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrayExpression",
"span": {
"start": 509,
"end": 527,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 510,
"end": 513,
"ctxt": 0
},
"value": 444.0,
"raw": "444"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 515,
"end": 519,
"ctxt": 0
},
"value": 4444.0,
"raw": "4444"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 521,
"end": 526,
"ctxt": 0
},
"value": 44444.0,
"raw": "44444"
}
}
]
}
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 546,
"end": 580,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 550,
"end": 579,
"ctxt": 0
},
"id": {
"type": "ObjectPattern",
"span": {
"start": 550,
"end": 564,
"ctxt": 0
},
"properties": [
{
"type": "AssignmentPatternProperty",
"span": {
"start": 552,
"end": 556,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 552,
"end": 556,
"ctxt": 0
},
"value": "foo1",
"optional": false
},
"value": null
},
{
"type": "AssignmentPatternProperty",
"span": {
"start": 558,
"end": 562,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 558,
"end": 562,
"ctxt": 0
},
"value": "foo1",
"optional": false
},
"value": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 567,
"end": 579,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 569,
"end": 573,
"ctxt": 0
},
"value": "foo1",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 575,
"end": 577,
"ctxt": 0
},
"value": 10.0,
"raw": "10"
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 581,
"end": 632,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 585,
"end": 631,
"ctxt": 0
},
"id": {
"type": "ObjectPattern",
"span": {
"start": 585,
"end": 605,
"ctxt": 0
},
"properties": [
{
"type": "AssignmentPatternProperty",
"span": {
"start": 587,
"end": 591,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 587,
"end": 591,
"ctxt": 0
},
"value": "foo2",
"optional": false
},
"value": null
},
{
"type": "KeyValuePatternProperty",
"key": {
"type": "Identifier",
"span": {
"start": 593,
"end": 597,
"ctxt": 0
},
"value": "bar2",
"optional": false
},
"value": {
"type": "Identifier",
"span": {
"start": 599,
"end": 603,
"ctxt": 0
},
"value": "foo2",
"optional": false,
"typeAnnotation": null
}
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 608,
"end": 631,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 610,
"end": 614,
"ctxt": 0
},
"value": "foo2",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 616,
"end": 618,
"ctxt": 0
},
"value": 20.0,
"raw": "20"
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 620,
"end": 624,
"ctxt": 0
},
"value": "bar2",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 626,
"end": 629,
"ctxt": 0
},
"value": 220.0,
"raw": "220"
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 633,
"end": 684,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 637,
"end": 683,
"ctxt": 0
},
"id": {
"type": "ObjectPattern",
"span": {
"start": 637,
"end": 657,
"ctxt": 0
},
"properties": [
{
"type": "KeyValuePatternProperty",
"key": {
"type": "Identifier",
"span": {
"start": 639,
"end": 643,
"ctxt": 0
},
"value": "bar3",
"optional": false
},
"value": {
"type": "Identifier",
"span": {
"start": 645,
"end": 649,
"ctxt": 0
},
"value": "foo3",
"optional": false,
"typeAnnotation": null
}
},
{
"type": "AssignmentPatternProperty",
"span": {
"start": 651,
"end": 655,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 651,
"end": 655,
"ctxt": 0
},
"value": "foo3",
"optional": false
},
"value": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 660,
"end": 683,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 662,
"end": 666,
"ctxt": 0
},
"value": "foo3",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 668,
"end": 670,
"ctxt": 0
},
"value": 30.0,
"raw": "30"
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 672,
"end": 676,
"ctxt": 0
},
"value": "bar3",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 678,
"end": 681,
"ctxt": 0
},
"value": 330.0,
"raw": "330"
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 685,
"end": 721,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 691,
"end": 720,
"ctxt": 0
},
"id": {
"type": "ObjectPattern",
"span": {
"start": 691,
"end": 705,
"ctxt": 0
},
"properties": [
{
"type": "AssignmentPatternProperty",
"span": {
"start": 693,
"end": 697,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 693,
"end": 697,
"ctxt": 0
},
"value": "foo4",
"optional": false
},
"value": null
},
{
"type": "AssignmentPatternProperty",
"span": {
"start": 699,
"end": 703,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 699,
"end": 703,
"ctxt": 0
},
"value": "foo4",
"optional": false
},
"value": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 708,
"end": 720,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 710,
"end": 714,
"ctxt": 0
},
"value": "foo4",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 716,
"end": 718,
"ctxt": 0
},
"value": 40.0,
"raw": "40"
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 722,
"end": 775,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 728,
"end": 774,
"ctxt": 0
},
"id": {
"type": "ObjectPattern",
"span": {
"start": 728,
"end": 748,
"ctxt": 0
},
"properties": [
{
"type": "AssignmentPatternProperty",
"span": {
"start": 730,
"end": 734,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 730,
"end": 734,
"ctxt": 0
},
"value": "foo5",
"optional": false
},
"value": null
},
{
"type": "KeyValuePatternProperty",
"key": {
"type": "Identifier",
"span": {
"start": 736,
"end": 740,
"ctxt": 0
},
"value": "bar5",
"optional": false
},
"value": {
"type": "Identifier",
"span": {
"start": 742,
"end": 746,
"ctxt": 0
},
"value": "foo5",
"optional": false,
"typeAnnotation": null
}
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 751,
"end": 774,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 753,
"end": 757,
"ctxt": 0
},
"value": "foo5",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 759,
"end": 761,
"ctxt": 0
},
"value": 50.0,
"raw": "50"
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 763,
"end": 767,
"ctxt": 0
},
"value": "bar5",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 769,
"end": 772,
"ctxt": 0
},
"value": 550.0,
"raw": "550"
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 776,
"end": 829,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 782,
"end": 828,
"ctxt": 0
},
"id": {
"type": "ObjectPattern",
"span": {
"start": 782,
"end": 802,
"ctxt": 0
},
"properties": [
{
"type": "KeyValuePatternProperty",
"key": {
"type": "Identifier",
"span": {
"start": 784,
"end": 788,
"ctxt": 0
},
"value": "bar6",
"optional": false
},
"value": {
"type": "Identifier",
"span": {
"start": 790,
"end": 794,
"ctxt": 0
},
"value": "foo6",
"optional": false,
"typeAnnotation": null
}
},
{
"type": "AssignmentPatternProperty",
"span": {
"start": 796,
"end": 800,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 796,
"end": 800,
"ctxt": 0
},
"value": "foo6",
"optional": false
},
"value": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 805,
"end": 828,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 807,
"end": 811,
"ctxt": 0
},
"value": "foo6",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 813,
"end": 815,
"ctxt": 0
},
"value": 60.0,
"raw": "60"
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 817,
"end": 821,
"ctxt": 0
},
"value": "bar6",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 823,
"end": 826,
"ctxt": 0
},
"value": 660.0,
"raw": "660"
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 831,
"end": 863,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 835,
"end": 862,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 835,
"end": 849,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 836,
"end": 841,
"ctxt": 0
},
"value": "blah1",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 843,
"end": 848,
"ctxt": 0
},
"value": "blah1",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 852,
"end": 862,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 853,
"end": 856,
"ctxt": 0
},
"value": 111.0,
"raw": "111"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 858,
"end": 861,
"ctxt": 0
},
"value": 222.0,
"raw": "222"
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 864,
"end": 898,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 870,
"end": 897,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 870,
"end": 884,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 871,
"end": 876,
"ctxt": 0
},
"value": "blah2",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 878,
"end": 883,
"ctxt": 0
},
"value": "blah2",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 887,
"end": 897,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 888,
"end": 891,
"ctxt": 0
},
"value": 333.0,
"raw": "333"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 893,
"end": 896,
"ctxt": 0
},
"value": 444.0,
"raw": "444"
}
}
]
},
"definite": false
}
]
}
],
"interpreter": null
}