swc/crates/swc_ecma_parser/tests/tsc/elementAccessChain.3.json

2006 lines
48 KiB
JSON

{
"type": "Script",
"span": {
"start": 19,
"end": 504,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 19,
"end": 42,
"ctxt": 0
},
"kind": "const",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 33,
"end": 41,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 33,
"end": 36,
"ctxt": 0
},
"value": "obj",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 36,
"end": 41,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 38,
"end": 41,
"ctxt": 0
},
"kind": "any"
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 44,
"end": 57,
"ctxt": 0
},
"expression": {
"type": "UpdateExpression",
"span": {
"start": 44,
"end": 56,
"ctxt": 0
},
"operator": "++",
"prefix": false,
"argument": {
"type": "OptionalChainingExpression",
"span": {
"start": 44,
"end": 54,
"ctxt": 0
},
"questionDotToken": {
"start": 47,
"end": 48,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 44,
"end": 54,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 44,
"end": 47,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 49,
"end": 54,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 50,
"end": 53,
"ctxt": 0
},
"value": "a",
"raw": "\"a\""
}
}
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 58,
"end": 72,
"ctxt": 0
},
"expression": {
"type": "UpdateExpression",
"span": {
"start": 58,
"end": 71,
"ctxt": 0
},
"operator": "++",
"prefix": false,
"argument": {
"type": "MemberExpression",
"span": {
"start": 58,
"end": 69,
"ctxt": 0
},
"object": {
"type": "OptionalChainingExpression",
"span": {
"start": 58,
"end": 64,
"ctxt": 0
},
"questionDotToken": {
"start": 61,
"end": 62,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 58,
"end": 64,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 58,
"end": 61,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 63,
"end": 64,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
},
"property": {
"type": "Computed",
"span": {
"start": 64,
"end": 69,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 65,
"end": 68,
"ctxt": 0
},
"value": "b",
"raw": "\"b\""
}
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 73,
"end": 86,
"ctxt": 0
},
"expression": {
"type": "UpdateExpression",
"span": {
"start": 73,
"end": 85,
"ctxt": 0
},
"operator": "--",
"prefix": false,
"argument": {
"type": "OptionalChainingExpression",
"span": {
"start": 73,
"end": 83,
"ctxt": 0
},
"questionDotToken": {
"start": 76,
"end": 77,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 73,
"end": 83,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 73,
"end": 76,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 78,
"end": 83,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 79,
"end": 82,
"ctxt": 0
},
"value": "a",
"raw": "\"a\""
}
}
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 87,
"end": 101,
"ctxt": 0
},
"expression": {
"type": "UpdateExpression",
"span": {
"start": 87,
"end": 100,
"ctxt": 0
},
"operator": "--",
"prefix": false,
"argument": {
"type": "MemberExpression",
"span": {
"start": 87,
"end": 98,
"ctxt": 0
},
"object": {
"type": "OptionalChainingExpression",
"span": {
"start": 87,
"end": 93,
"ctxt": 0
},
"questionDotToken": {
"start": 90,
"end": 91,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 87,
"end": 93,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 87,
"end": 90,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 92,
"end": 93,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
},
"property": {
"type": "Computed",
"span": {
"start": 93,
"end": 98,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 94,
"end": 97,
"ctxt": 0
},
"value": "b",
"raw": "\"b\""
}
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 103,
"end": 116,
"ctxt": 0
},
"expression": {
"type": "UpdateExpression",
"span": {
"start": 103,
"end": 115,
"ctxt": 0
},
"operator": "++",
"prefix": true,
"argument": {
"type": "OptionalChainingExpression",
"span": {
"start": 105,
"end": 115,
"ctxt": 0
},
"questionDotToken": {
"start": 108,
"end": 109,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 105,
"end": 115,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 105,
"end": 108,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 110,
"end": 115,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 111,
"end": 114,
"ctxt": 0
},
"value": "a",
"raw": "\"a\""
}
}
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 117,
"end": 131,
"ctxt": 0
},
"expression": {
"type": "UpdateExpression",
"span": {
"start": 117,
"end": 130,
"ctxt": 0
},
"operator": "++",
"prefix": true,
"argument": {
"type": "MemberExpression",
"span": {
"start": 119,
"end": 130,
"ctxt": 0
},
"object": {
"type": "OptionalChainingExpression",
"span": {
"start": 119,
"end": 125,
"ctxt": 0
},
"questionDotToken": {
"start": 122,
"end": 123,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 119,
"end": 125,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 119,
"end": 122,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 124,
"end": 125,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
},
"property": {
"type": "Computed",
"span": {
"start": 125,
"end": 130,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 126,
"end": 129,
"ctxt": 0
},
"value": "b",
"raw": "\"b\""
}
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 132,
"end": 145,
"ctxt": 0
},
"expression": {
"type": "UpdateExpression",
"span": {
"start": 132,
"end": 144,
"ctxt": 0
},
"operator": "--",
"prefix": true,
"argument": {
"type": "OptionalChainingExpression",
"span": {
"start": 134,
"end": 144,
"ctxt": 0
},
"questionDotToken": {
"start": 137,
"end": 138,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 134,
"end": 144,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 134,
"end": 137,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 139,
"end": 144,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 140,
"end": 143,
"ctxt": 0
},
"value": "a",
"raw": "\"a\""
}
}
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 146,
"end": 160,
"ctxt": 0
},
"expression": {
"type": "UpdateExpression",
"span": {
"start": 146,
"end": 159,
"ctxt": 0
},
"operator": "--",
"prefix": true,
"argument": {
"type": "MemberExpression",
"span": {
"start": 148,
"end": 159,
"ctxt": 0
},
"object": {
"type": "OptionalChainingExpression",
"span": {
"start": 148,
"end": 154,
"ctxt": 0
},
"questionDotToken": {
"start": 151,
"end": 152,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 148,
"end": 154,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 148,
"end": 151,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 153,
"end": 154,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
},
"property": {
"type": "Computed",
"span": {
"start": 154,
"end": 159,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 155,
"end": 158,
"ctxt": 0
},
"value": "b",
"raw": "\"b\""
}
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 162,
"end": 177,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 162,
"end": 176,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "OptionalChainingExpression",
"span": {
"start": 162,
"end": 172,
"ctxt": 0
},
"questionDotToken": {
"start": 165,
"end": 166,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 162,
"end": 172,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 162,
"end": 165,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 167,
"end": 172,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 168,
"end": 171,
"ctxt": 0
},
"value": "a",
"raw": "\"a\""
}
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 175,
"end": 176,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 178,
"end": 194,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 178,
"end": 193,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 178,
"end": 189,
"ctxt": 0
},
"object": {
"type": "OptionalChainingExpression",
"span": {
"start": 178,
"end": 184,
"ctxt": 0
},
"questionDotToken": {
"start": 181,
"end": 182,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 178,
"end": 184,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 178,
"end": 181,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 183,
"end": 184,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
},
"property": {
"type": "Computed",
"span": {
"start": 184,
"end": 189,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 185,
"end": 188,
"ctxt": 0
},
"value": "b",
"raw": "\"b\""
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 192,
"end": 193,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 195,
"end": 211,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 195,
"end": 210,
"ctxt": 0
},
"operator": "+=",
"left": {
"type": "OptionalChainingExpression",
"span": {
"start": 195,
"end": 205,
"ctxt": 0
},
"questionDotToken": {
"start": 198,
"end": 199,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 195,
"end": 205,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 195,
"end": 198,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 200,
"end": 205,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 201,
"end": 204,
"ctxt": 0
},
"value": "a",
"raw": "\"a\""
}
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 209,
"end": 210,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 212,
"end": 229,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 212,
"end": 228,
"ctxt": 0
},
"operator": "+=",
"left": {
"type": "MemberExpression",
"span": {
"start": 212,
"end": 223,
"ctxt": 0
},
"object": {
"type": "OptionalChainingExpression",
"span": {
"start": 212,
"end": 218,
"ctxt": 0
},
"questionDotToken": {
"start": 215,
"end": 216,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 212,
"end": 218,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 212,
"end": 215,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 217,
"end": 218,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
},
"property": {
"type": "Computed",
"span": {
"start": 218,
"end": 223,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 219,
"end": 222,
"ctxt": 0
},
"value": "b",
"raw": "\"b\""
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 227,
"end": 228,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
},
{
"type": "ForInStatement",
"span": {
"start": 231,
"end": 254,
"ctxt": 0
},
"left": {
"type": "OptionalChainingExpression",
"span": {
"start": 236,
"end": 246,
"ctxt": 0
},
"questionDotToken": {
"start": 239,
"end": 240,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 236,
"end": 246,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 236,
"end": 239,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 241,
"end": 246,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 242,
"end": 245,
"ctxt": 0
},
"value": "a",
"raw": "\"a\""
}
}
}
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 250,
"end": 252,
"ctxt": 0
},
"properties": []
},
"body": {
"type": "EmptyStatement",
"span": {
"start": 253,
"end": 254,
"ctxt": 0
}
}
},
{
"type": "ForInStatement",
"span": {
"start": 255,
"end": 279,
"ctxt": 0
},
"left": {
"type": "MemberExpression",
"span": {
"start": 260,
"end": 271,
"ctxt": 0
},
"object": {
"type": "OptionalChainingExpression",
"span": {
"start": 260,
"end": 266,
"ctxt": 0
},
"questionDotToken": {
"start": 263,
"end": 264,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 260,
"end": 266,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 260,
"end": 263,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 265,
"end": 266,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
},
"property": {
"type": "Computed",
"span": {
"start": 266,
"end": 271,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 267,
"end": 270,
"ctxt": 0
},
"value": "b",
"raw": "\"b\""
}
}
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 275,
"end": 277,
"ctxt": 0
},
"properties": []
},
"body": {
"type": "EmptyStatement",
"span": {
"start": 278,
"end": 279,
"ctxt": 0
}
}
},
{
"type": "ForOfStatement",
"span": {
"start": 280,
"end": 303,
"ctxt": 0
},
"await": null,
"left": {
"type": "OptionalChainingExpression",
"span": {
"start": 285,
"end": 295,
"ctxt": 0
},
"questionDotToken": {
"start": 288,
"end": 289,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 285,
"end": 295,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 285,
"end": 288,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 290,
"end": 295,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 291,
"end": 294,
"ctxt": 0
},
"value": "a",
"raw": "\"a\""
}
}
}
},
"right": {
"type": "ArrayExpression",
"span": {
"start": 299,
"end": 301,
"ctxt": 0
},
"elements": []
},
"body": {
"type": "EmptyStatement",
"span": {
"start": 302,
"end": 303,
"ctxt": 0
}
}
},
{
"type": "ForOfStatement",
"span": {
"start": 304,
"end": 328,
"ctxt": 0
},
"await": null,
"left": {
"type": "MemberExpression",
"span": {
"start": 309,
"end": 320,
"ctxt": 0
},
"object": {
"type": "OptionalChainingExpression",
"span": {
"start": 309,
"end": 315,
"ctxt": 0
},
"questionDotToken": {
"start": 312,
"end": 313,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 309,
"end": 315,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 309,
"end": 312,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 314,
"end": 315,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
},
"property": {
"type": "Computed",
"span": {
"start": 315,
"end": 320,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 316,
"end": 319,
"ctxt": 0
},
"value": "b",
"raw": "\"b\""
}
}
},
"right": {
"type": "ArrayExpression",
"span": {
"start": 324,
"end": 326,
"ctxt": 0
},
"elements": []
},
"body": {
"type": "EmptyStatement",
"span": {
"start": 327,
"end": 328,
"ctxt": 0
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 330,
"end": 361,
"ctxt": 0
},
"expression": {
"type": "ParenthesisExpression",
"span": {
"start": 330,
"end": 360,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 331,
"end": 359,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ObjectPattern",
"span": {
"start": 331,
"end": 348,
"ctxt": 0
},
"properties": [
{
"type": "KeyValuePatternProperty",
"key": {
"type": "Identifier",
"span": {
"start": 333,
"end": 334,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "Invalid",
"span": {
"start": 336,
"end": 346,
"ctxt": 0
}
}
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 351,
"end": 359,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 353,
"end": 354,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 356,
"end": 357,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
]
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 362,
"end": 394,
"ctxt": 0
},
"expression": {
"type": "ParenthesisExpression",
"span": {
"start": 362,
"end": 393,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 363,
"end": 392,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ObjectPattern",
"span": {
"start": 363,
"end": 381,
"ctxt": 0
},
"properties": [
{
"type": "KeyValuePatternProperty",
"key": {
"type": "Identifier",
"span": {
"start": 365,
"end": 366,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "MemberExpression",
"span": {
"start": 368,
"end": 379,
"ctxt": 0
},
"object": {
"type": "OptionalChainingExpression",
"span": {
"start": 368,
"end": 374,
"ctxt": 0
},
"questionDotToken": {
"start": 371,
"end": 372,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 368,
"end": 374,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 368,
"end": 371,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 373,
"end": 374,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
},
"property": {
"type": "Computed",
"span": {
"start": 374,
"end": 379,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 375,
"end": 378,
"ctxt": 0
},
"value": "b",
"raw": "\"b\""
}
}
}
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 384,
"end": 392,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 386,
"end": 387,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 389,
"end": 390,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
]
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 395,
"end": 426,
"ctxt": 0
},
"expression": {
"type": "ParenthesisExpression",
"span": {
"start": 395,
"end": 425,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 396,
"end": 424,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ObjectPattern",
"span": {
"start": 396,
"end": 413,
"ctxt": 0
},
"properties": [
{
"type": "RestElement",
"span": {
"start": 398,
"end": 411,
"ctxt": 0
},
"rest": {
"start": 398,
"end": 401,
"ctxt": 0
},
"argument": {
"type": "Invalid",
"span": {
"start": 401,
"end": 411,
"ctxt": 0
}
},
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 416,
"end": 424,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 418,
"end": 419,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 421,
"end": 422,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
]
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 427,
"end": 459,
"ctxt": 0
},
"expression": {
"type": "ParenthesisExpression",
"span": {
"start": 427,
"end": 458,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 428,
"end": 457,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ObjectPattern",
"span": {
"start": 428,
"end": 446,
"ctxt": 0
},
"properties": [
{
"type": "RestElement",
"span": {
"start": 430,
"end": 444,
"ctxt": 0
},
"rest": {
"start": 430,
"end": 433,
"ctxt": 0
},
"argument": {
"type": "MemberExpression",
"span": {
"start": 433,
"end": 444,
"ctxt": 0
},
"object": {
"type": "OptionalChainingExpression",
"span": {
"start": 433,
"end": 439,
"ctxt": 0
},
"questionDotToken": {
"start": 436,
"end": 437,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 433,
"end": 439,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 433,
"end": 436,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 438,
"end": 439,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
},
"property": {
"type": "Computed",
"span": {
"start": 439,
"end": 444,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 440,
"end": 443,
"ctxt": 0
},
"value": "b",
"raw": "\"b\""
}
}
},
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 449,
"end": 457,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 451,
"end": 452,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 454,
"end": 455,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
]
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 460,
"end": 481,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 460,
"end": 480,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ArrayPattern",
"span": {
"start": 460,
"end": 475,
"ctxt": 0
},
"elements": [
{
"type": "RestElement",
"span": {
"start": 464,
"end": 474,
"ctxt": 0
},
"rest": {
"start": 461,
"end": 464,
"ctxt": 0
},
"argument": {
"type": "Invalid",
"span": {
"start": 464,
"end": 474,
"ctxt": 0
}
},
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrayExpression",
"span": {
"start": 478,
"end": 480,
"ctxt": 0
},
"elements": []
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 482,
"end": 504,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 482,
"end": 503,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ArrayPattern",
"span": {
"start": 482,
"end": 498,
"ctxt": 0
},
"elements": [
{
"type": "RestElement",
"span": {
"start": 486,
"end": 497,
"ctxt": 0
},
"rest": {
"start": 483,
"end": 486,
"ctxt": 0
},
"argument": {
"type": "MemberExpression",
"span": {
"start": 486,
"end": 497,
"ctxt": 0
},
"object": {
"type": "OptionalChainingExpression",
"span": {
"start": 486,
"end": 492,
"ctxt": 0
},
"questionDotToken": {
"start": 489,
"end": 490,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 486,
"end": 492,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 486,
"end": 489,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 491,
"end": 492,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
},
"property": {
"type": "Computed",
"span": {
"start": 492,
"end": 497,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 493,
"end": 496,
"ctxt": 0
},
"value": "b",
"raw": "\"b\""
}
}
},
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrayExpression",
"span": {
"start": 501,
"end": 503,
"ctxt": 0
},
"elements": []
}
}
}
],
"interpreter": null
}