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

1854 lines
44 KiB
JSON

{
"type": "Script",
"span": {
"start": 19,
"end": 427,
"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": 53,
"ctxt": 0
},
"expression": {
"type": "UpdateExpression",
"span": {
"start": 44,
"end": 52,
"ctxt": 0
},
"operator": "++",
"prefix": false,
"argument": {
"type": "OptionalChainingExpression",
"span": {
"start": 44,
"end": 50,
"ctxt": 0
},
"questionDotToken": {
"start": 47,
"end": 48,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 44,
"end": 50,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 44,
"end": 47,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 49,
"end": 50,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 54,
"end": 65,
"ctxt": 0
},
"expression": {
"type": "UpdateExpression",
"span": {
"start": 54,
"end": 64,
"ctxt": 0
},
"operator": "++",
"prefix": false,
"argument": {
"type": "MemberExpression",
"span": {
"start": 54,
"end": 62,
"ctxt": 0
},
"object": {
"type": "OptionalChainingExpression",
"span": {
"start": 54,
"end": 60,
"ctxt": 0
},
"questionDotToken": {
"start": 57,
"end": 58,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 54,
"end": 60,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 54,
"end": 57,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 59,
"end": 60,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
},
"property": {
"type": "Identifier",
"span": {
"start": 61,
"end": 62,
"ctxt": 0
},
"value": "b",
"optional": false
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 66,
"end": 75,
"ctxt": 0
},
"expression": {
"type": "UpdateExpression",
"span": {
"start": 66,
"end": 74,
"ctxt": 0
},
"operator": "--",
"prefix": false,
"argument": {
"type": "OptionalChainingExpression",
"span": {
"start": 66,
"end": 72,
"ctxt": 0
},
"questionDotToken": {
"start": 69,
"end": 70,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 66,
"end": 72,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 66,
"end": 69,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 71,
"end": 72,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 76,
"end": 87,
"ctxt": 0
},
"expression": {
"type": "UpdateExpression",
"span": {
"start": 76,
"end": 86,
"ctxt": 0
},
"operator": "--",
"prefix": false,
"argument": {
"type": "MemberExpression",
"span": {
"start": 76,
"end": 84,
"ctxt": 0
},
"object": {
"type": "OptionalChainingExpression",
"span": {
"start": 76,
"end": 82,
"ctxt": 0
},
"questionDotToken": {
"start": 79,
"end": 80,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 76,
"end": 82,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 76,
"end": 79,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 81,
"end": 82,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
},
"property": {
"type": "Identifier",
"span": {
"start": 83,
"end": 84,
"ctxt": 0
},
"value": "b",
"optional": false
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 89,
"end": 98,
"ctxt": 0
},
"expression": {
"type": "UpdateExpression",
"span": {
"start": 89,
"end": 97,
"ctxt": 0
},
"operator": "++",
"prefix": true,
"argument": {
"type": "OptionalChainingExpression",
"span": {
"start": 91,
"end": 97,
"ctxt": 0
},
"questionDotToken": {
"start": 94,
"end": 95,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 91,
"end": 97,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 91,
"end": 94,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 96,
"end": 97,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 99,
"end": 110,
"ctxt": 0
},
"expression": {
"type": "UpdateExpression",
"span": {
"start": 99,
"end": 109,
"ctxt": 0
},
"operator": "++",
"prefix": true,
"argument": {
"type": "MemberExpression",
"span": {
"start": 101,
"end": 109,
"ctxt": 0
},
"object": {
"type": "OptionalChainingExpression",
"span": {
"start": 101,
"end": 107,
"ctxt": 0
},
"questionDotToken": {
"start": 104,
"end": 105,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 101,
"end": 107,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 101,
"end": 104,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 106,
"end": 107,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
},
"property": {
"type": "Identifier",
"span": {
"start": 108,
"end": 109,
"ctxt": 0
},
"value": "b",
"optional": false
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 111,
"end": 120,
"ctxt": 0
},
"expression": {
"type": "UpdateExpression",
"span": {
"start": 111,
"end": 119,
"ctxt": 0
},
"operator": "--",
"prefix": true,
"argument": {
"type": "OptionalChainingExpression",
"span": {
"start": 113,
"end": 119,
"ctxt": 0
},
"questionDotToken": {
"start": 116,
"end": 117,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 113,
"end": 119,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 113,
"end": 116,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 118,
"end": 119,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 121,
"end": 132,
"ctxt": 0
},
"expression": {
"type": "UpdateExpression",
"span": {
"start": 121,
"end": 131,
"ctxt": 0
},
"operator": "--",
"prefix": true,
"argument": {
"type": "MemberExpression",
"span": {
"start": 123,
"end": 131,
"ctxt": 0
},
"object": {
"type": "OptionalChainingExpression",
"span": {
"start": 123,
"end": 129,
"ctxt": 0
},
"questionDotToken": {
"start": 126,
"end": 127,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 123,
"end": 129,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 123,
"end": 126,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 128,
"end": 129,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
},
"property": {
"type": "Identifier",
"span": {
"start": 130,
"end": 131,
"ctxt": 0
},
"value": "b",
"optional": false
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 134,
"end": 145,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 134,
"end": 144,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "OptionalChainingExpression",
"span": {
"start": 134,
"end": 140,
"ctxt": 0
},
"questionDotToken": {
"start": 137,
"end": 138,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 134,
"end": 140,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 134,
"end": 137,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 139,
"end": 140,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 143,
"end": 144,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 146,
"end": 159,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 146,
"end": 158,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 146,
"end": 154,
"ctxt": 0
},
"object": {
"type": "OptionalChainingExpression",
"span": {
"start": 146,
"end": 152,
"ctxt": 0
},
"questionDotToken": {
"start": 149,
"end": 150,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 146,
"end": 152,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 146,
"end": 149,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 151,
"end": 152,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
},
"property": {
"type": "Identifier",
"span": {
"start": 153,
"end": 154,
"ctxt": 0
},
"value": "b",
"optional": false
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 157,
"end": 158,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 160,
"end": 172,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 160,
"end": 171,
"ctxt": 0
},
"operator": "+=",
"left": {
"type": "OptionalChainingExpression",
"span": {
"start": 160,
"end": 166,
"ctxt": 0
},
"questionDotToken": {
"start": 163,
"end": 164,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 160,
"end": 166,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 160,
"end": 163,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 165,
"end": 166,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 170,
"end": 171,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 173,
"end": 187,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 173,
"end": 186,
"ctxt": 0
},
"operator": "+=",
"left": {
"type": "MemberExpression",
"span": {
"start": 173,
"end": 181,
"ctxt": 0
},
"object": {
"type": "OptionalChainingExpression",
"span": {
"start": 173,
"end": 179,
"ctxt": 0
},
"questionDotToken": {
"start": 176,
"end": 177,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 173,
"end": 179,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 173,
"end": 176,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 178,
"end": 179,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
},
"property": {
"type": "Identifier",
"span": {
"start": 180,
"end": 181,
"ctxt": 0
},
"value": "b",
"optional": false
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 185,
"end": 186,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
},
{
"type": "ForInStatement",
"span": {
"start": 189,
"end": 208,
"ctxt": 0
},
"left": {
"type": "OptionalChainingExpression",
"span": {
"start": 194,
"end": 200,
"ctxt": 0
},
"questionDotToken": {
"start": 197,
"end": 198,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 194,
"end": 200,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 194,
"end": 197,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 199,
"end": 200,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 204,
"end": 206,
"ctxt": 0
},
"properties": []
},
"body": {
"type": "EmptyStatement",
"span": {
"start": 207,
"end": 208,
"ctxt": 0
}
}
},
{
"type": "ForInStatement",
"span": {
"start": 209,
"end": 230,
"ctxt": 0
},
"left": {
"type": "MemberExpression",
"span": {
"start": 214,
"end": 222,
"ctxt": 0
},
"object": {
"type": "OptionalChainingExpression",
"span": {
"start": 214,
"end": 220,
"ctxt": 0
},
"questionDotToken": {
"start": 217,
"end": 218,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 214,
"end": 220,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 214,
"end": 217,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 219,
"end": 220,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
},
"property": {
"type": "Identifier",
"span": {
"start": 221,
"end": 222,
"ctxt": 0
},
"value": "b",
"optional": false
}
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 226,
"end": 228,
"ctxt": 0
},
"properties": []
},
"body": {
"type": "EmptyStatement",
"span": {
"start": 229,
"end": 230,
"ctxt": 0
}
}
},
{
"type": "ForOfStatement",
"span": {
"start": 231,
"end": 250,
"ctxt": 0
},
"await": null,
"left": {
"type": "OptionalChainingExpression",
"span": {
"start": 236,
"end": 242,
"ctxt": 0
},
"questionDotToken": {
"start": 239,
"end": 240,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 236,
"end": 242,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 236,
"end": 239,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 241,
"end": 242,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
},
"right": {
"type": "ArrayExpression",
"span": {
"start": 246,
"end": 248,
"ctxt": 0
},
"elements": []
},
"body": {
"type": "EmptyStatement",
"span": {
"start": 249,
"end": 250,
"ctxt": 0
}
}
},
{
"type": "ForOfStatement",
"span": {
"start": 251,
"end": 272,
"ctxt": 0
},
"await": null,
"left": {
"type": "MemberExpression",
"span": {
"start": 256,
"end": 264,
"ctxt": 0
},
"object": {
"type": "OptionalChainingExpression",
"span": {
"start": 256,
"end": 262,
"ctxt": 0
},
"questionDotToken": {
"start": 259,
"end": 260,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 256,
"end": 262,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 256,
"end": 259,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 261,
"end": 262,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
},
"property": {
"type": "Identifier",
"span": {
"start": 263,
"end": 264,
"ctxt": 0
},
"value": "b",
"optional": false
}
},
"right": {
"type": "ArrayExpression",
"span": {
"start": 268,
"end": 270,
"ctxt": 0
},
"elements": []
},
"body": {
"type": "EmptyStatement",
"span": {
"start": 271,
"end": 272,
"ctxt": 0
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 274,
"end": 301,
"ctxt": 0
},
"expression": {
"type": "ParenthesisExpression",
"span": {
"start": 274,
"end": 300,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 275,
"end": 299,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ObjectPattern",
"span": {
"start": 275,
"end": 288,
"ctxt": 0
},
"properties": [
{
"type": "KeyValuePatternProperty",
"key": {
"type": "Identifier",
"span": {
"start": 277,
"end": 278,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "Invalid",
"span": {
"start": 280,
"end": 286,
"ctxt": 0
}
}
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 291,
"end": 299,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 293,
"end": 294,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 296,
"end": 297,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
]
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 302,
"end": 331,
"ctxt": 0
},
"expression": {
"type": "ParenthesisExpression",
"span": {
"start": 302,
"end": 330,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 303,
"end": 329,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ObjectPattern",
"span": {
"start": 303,
"end": 318,
"ctxt": 0
},
"properties": [
{
"type": "KeyValuePatternProperty",
"key": {
"type": "Identifier",
"span": {
"start": 305,
"end": 306,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "MemberExpression",
"span": {
"start": 308,
"end": 316,
"ctxt": 0
},
"object": {
"type": "OptionalChainingExpression",
"span": {
"start": 308,
"end": 314,
"ctxt": 0
},
"questionDotToken": {
"start": 311,
"end": 312,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 308,
"end": 314,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 308,
"end": 311,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 313,
"end": 314,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
},
"property": {
"type": "Identifier",
"span": {
"start": 315,
"end": 316,
"ctxt": 0
},
"value": "b",
"optional": false
}
}
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 321,
"end": 329,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 323,
"end": 324,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 326,
"end": 327,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
]
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 332,
"end": 359,
"ctxt": 0
},
"expression": {
"type": "ParenthesisExpression",
"span": {
"start": 332,
"end": 358,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 333,
"end": 357,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ObjectPattern",
"span": {
"start": 333,
"end": 346,
"ctxt": 0
},
"properties": [
{
"type": "RestElement",
"span": {
"start": 335,
"end": 344,
"ctxt": 0
},
"rest": {
"start": 335,
"end": 338,
"ctxt": 0
},
"argument": {
"type": "Invalid",
"span": {
"start": 338,
"end": 344,
"ctxt": 0
}
},
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 349,
"end": 357,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 351,
"end": 352,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 354,
"end": 355,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
]
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 360,
"end": 389,
"ctxt": 0
},
"expression": {
"type": "ParenthesisExpression",
"span": {
"start": 360,
"end": 388,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 361,
"end": 387,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ObjectPattern",
"span": {
"start": 361,
"end": 376,
"ctxt": 0
},
"properties": [
{
"type": "RestElement",
"span": {
"start": 363,
"end": 374,
"ctxt": 0
},
"rest": {
"start": 363,
"end": 366,
"ctxt": 0
},
"argument": {
"type": "MemberExpression",
"span": {
"start": 366,
"end": 374,
"ctxt": 0
},
"object": {
"type": "OptionalChainingExpression",
"span": {
"start": 366,
"end": 372,
"ctxt": 0
},
"questionDotToken": {
"start": 369,
"end": 370,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 366,
"end": 372,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 366,
"end": 369,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 371,
"end": 372,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
},
"property": {
"type": "Identifier",
"span": {
"start": 373,
"end": 374,
"ctxt": 0
},
"value": "b",
"optional": false
}
},
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 379,
"end": 387,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 381,
"end": 382,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 384,
"end": 385,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
]
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 390,
"end": 407,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 390,
"end": 406,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ArrayPattern",
"span": {
"start": 390,
"end": 401,
"ctxt": 0
},
"elements": [
{
"type": "RestElement",
"span": {
"start": 394,
"end": 400,
"ctxt": 0
},
"rest": {
"start": 391,
"end": 394,
"ctxt": 0
},
"argument": {
"type": "Invalid",
"span": {
"start": 394,
"end": 400,
"ctxt": 0
}
},
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrayExpression",
"span": {
"start": 404,
"end": 406,
"ctxt": 0
},
"elements": []
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 408,
"end": 427,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 408,
"end": 426,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ArrayPattern",
"span": {
"start": 408,
"end": 421,
"ctxt": 0
},
"elements": [
{
"type": "RestElement",
"span": {
"start": 412,
"end": 420,
"ctxt": 0
},
"rest": {
"start": 409,
"end": 412,
"ctxt": 0
},
"argument": {
"type": "MemberExpression",
"span": {
"start": 412,
"end": 420,
"ctxt": 0
},
"object": {
"type": "OptionalChainingExpression",
"span": {
"start": 412,
"end": 418,
"ctxt": 0
},
"questionDotToken": {
"start": 415,
"end": 416,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 412,
"end": 418,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 412,
"end": 415,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 417,
"end": 418,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
},
"property": {
"type": "Identifier",
"span": {
"start": 419,
"end": 420,
"ctxt": 0
},
"value": "b",
"optional": false
}
},
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrayExpression",
"span": {
"start": 424,
"end": 426,
"ctxt": 0
},
"elements": []
}
}
}
],
"interpreter": null
}