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

2074 lines
50 KiB
JSON

{
"type": "Script",
"span": {
"start": 18,
"end": 503,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 18,
"end": 41,
"ctxt": 0
},
"kind": "const",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 32,
"end": 40,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 32,
"end": 35,
"ctxt": 0
},
"value": "obj",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 35,
"end": 40,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 37,
"end": 40,
"ctxt": 0
},
"kind": "any"
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 43,
"end": 56,
"ctxt": 0
},
"expression": {
"type": "UpdateExpression",
"span": {
"start": 43,
"end": 55,
"ctxt": 0
},
"operator": "++",
"prefix": false,
"argument": {
"type": "OptionalChainingExpression",
"span": {
"start": 43,
"end": 53,
"ctxt": 0
},
"questionDotToken": {
"start": 46,
"end": 47,
"ctxt": 0
},
"expr": {
"type": "MemberExpression",
"span": {
"start": 43,
"end": 53,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 43,
"end": 46,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 48,
"end": 53,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 49,
"end": 52,
"ctxt": 0
},
"value": "a",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 57,
"end": 71,
"ctxt": 0
},
"expression": {
"type": "UpdateExpression",
"span": {
"start": 57,
"end": 70,
"ctxt": 0
},
"operator": "++",
"prefix": false,
"argument": {
"type": "MemberExpression",
"span": {
"start": 57,
"end": 68,
"ctxt": 0
},
"object": {
"type": "OptionalChainingExpression",
"span": {
"start": 57,
"end": 63,
"ctxt": 0
},
"questionDotToken": {
"start": 60,
"end": 61,
"ctxt": 0
},
"expr": {
"type": "MemberExpression",
"span": {
"start": 57,
"end": 63,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 57,
"end": 60,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 62,
"end": 63,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
},
"property": {
"type": "Computed",
"span": {
"start": 63,
"end": 68,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 64,
"end": 67,
"ctxt": 0
},
"value": "b",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 72,
"end": 85,
"ctxt": 0
},
"expression": {
"type": "UpdateExpression",
"span": {
"start": 72,
"end": 84,
"ctxt": 0
},
"operator": "--",
"prefix": false,
"argument": {
"type": "OptionalChainingExpression",
"span": {
"start": 72,
"end": 82,
"ctxt": 0
},
"questionDotToken": {
"start": 75,
"end": 76,
"ctxt": 0
},
"expr": {
"type": "MemberExpression",
"span": {
"start": 72,
"end": 82,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 72,
"end": 75,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 77,
"end": 82,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 78,
"end": 81,
"ctxt": 0
},
"value": "a",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 86,
"end": 100,
"ctxt": 0
},
"expression": {
"type": "UpdateExpression",
"span": {
"start": 86,
"end": 99,
"ctxt": 0
},
"operator": "--",
"prefix": false,
"argument": {
"type": "MemberExpression",
"span": {
"start": 86,
"end": 97,
"ctxt": 0
},
"object": {
"type": "OptionalChainingExpression",
"span": {
"start": 86,
"end": 92,
"ctxt": 0
},
"questionDotToken": {
"start": 89,
"end": 90,
"ctxt": 0
},
"expr": {
"type": "MemberExpression",
"span": {
"start": 86,
"end": 92,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 86,
"end": 89,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 91,
"end": 92,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
},
"property": {
"type": "Computed",
"span": {
"start": 92,
"end": 97,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 93,
"end": 96,
"ctxt": 0
},
"value": "b",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 102,
"end": 115,
"ctxt": 0
},
"expression": {
"type": "UpdateExpression",
"span": {
"start": 102,
"end": 114,
"ctxt": 0
},
"operator": "++",
"prefix": true,
"argument": {
"type": "OptionalChainingExpression",
"span": {
"start": 104,
"end": 114,
"ctxt": 0
},
"questionDotToken": {
"start": 107,
"end": 108,
"ctxt": 0
},
"expr": {
"type": "MemberExpression",
"span": {
"start": 104,
"end": 114,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 104,
"end": 107,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 109,
"end": 114,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 110,
"end": 113,
"ctxt": 0
},
"value": "a",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 116,
"end": 130,
"ctxt": 0
},
"expression": {
"type": "UpdateExpression",
"span": {
"start": 116,
"end": 129,
"ctxt": 0
},
"operator": "++",
"prefix": true,
"argument": {
"type": "MemberExpression",
"span": {
"start": 118,
"end": 129,
"ctxt": 0
},
"object": {
"type": "OptionalChainingExpression",
"span": {
"start": 118,
"end": 124,
"ctxt": 0
},
"questionDotToken": {
"start": 121,
"end": 122,
"ctxt": 0
},
"expr": {
"type": "MemberExpression",
"span": {
"start": 118,
"end": 124,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 118,
"end": 121,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 123,
"end": 124,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
},
"property": {
"type": "Computed",
"span": {
"start": 124,
"end": 129,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 125,
"end": 128,
"ctxt": 0
},
"value": "b",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 131,
"end": 144,
"ctxt": 0
},
"expression": {
"type": "UpdateExpression",
"span": {
"start": 131,
"end": 143,
"ctxt": 0
},
"operator": "--",
"prefix": true,
"argument": {
"type": "OptionalChainingExpression",
"span": {
"start": 133,
"end": 143,
"ctxt": 0
},
"questionDotToken": {
"start": 136,
"end": 137,
"ctxt": 0
},
"expr": {
"type": "MemberExpression",
"span": {
"start": 133,
"end": 143,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 133,
"end": 136,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 138,
"end": 143,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 139,
"end": 142,
"ctxt": 0
},
"value": "a",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 145,
"end": 159,
"ctxt": 0
},
"expression": {
"type": "UpdateExpression",
"span": {
"start": 145,
"end": 158,
"ctxt": 0
},
"operator": "--",
"prefix": true,
"argument": {
"type": "MemberExpression",
"span": {
"start": 147,
"end": 158,
"ctxt": 0
},
"object": {
"type": "OptionalChainingExpression",
"span": {
"start": 147,
"end": 153,
"ctxt": 0
},
"questionDotToken": {
"start": 150,
"end": 151,
"ctxt": 0
},
"expr": {
"type": "MemberExpression",
"span": {
"start": 147,
"end": 153,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 147,
"end": 150,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 152,
"end": 153,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
},
"property": {
"type": "Computed",
"span": {
"start": 153,
"end": 158,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 154,
"end": 157,
"ctxt": 0
},
"value": "b",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 161,
"end": 176,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 161,
"end": 175,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "OptionalChainingExpression",
"span": {
"start": 161,
"end": 171,
"ctxt": 0
},
"questionDotToken": {
"start": 164,
"end": 165,
"ctxt": 0
},
"expr": {
"type": "MemberExpression",
"span": {
"start": 161,
"end": 171,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 161,
"end": 164,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 166,
"end": 171,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 167,
"end": 170,
"ctxt": 0
},
"value": "a",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 174,
"end": 175,
"ctxt": 0
},
"value": 1.0
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 177,
"end": 193,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 177,
"end": 192,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 177,
"end": 188,
"ctxt": 0
},
"object": {
"type": "OptionalChainingExpression",
"span": {
"start": 177,
"end": 183,
"ctxt": 0
},
"questionDotToken": {
"start": 180,
"end": 181,
"ctxt": 0
},
"expr": {
"type": "MemberExpression",
"span": {
"start": 177,
"end": 183,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 177,
"end": 180,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 182,
"end": 183,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
},
"property": {
"type": "Computed",
"span": {
"start": 183,
"end": 188,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 184,
"end": 187,
"ctxt": 0
},
"value": "b",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 191,
"end": 192,
"ctxt": 0
},
"value": 1.0
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 194,
"end": 210,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 194,
"end": 209,
"ctxt": 0
},
"operator": "+=",
"left": {
"type": "OptionalChainingExpression",
"span": {
"start": 194,
"end": 204,
"ctxt": 0
},
"questionDotToken": {
"start": 197,
"end": 198,
"ctxt": 0
},
"expr": {
"type": "MemberExpression",
"span": {
"start": 194,
"end": 204,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 194,
"end": 197,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 199,
"end": 204,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 200,
"end": 203,
"ctxt": 0
},
"value": "a",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 208,
"end": 209,
"ctxt": 0
},
"value": 1.0
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 211,
"end": 228,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 211,
"end": 227,
"ctxt": 0
},
"operator": "+=",
"left": {
"type": "MemberExpression",
"span": {
"start": 211,
"end": 222,
"ctxt": 0
},
"object": {
"type": "OptionalChainingExpression",
"span": {
"start": 211,
"end": 217,
"ctxt": 0
},
"questionDotToken": {
"start": 214,
"end": 215,
"ctxt": 0
},
"expr": {
"type": "MemberExpression",
"span": {
"start": 211,
"end": 217,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 211,
"end": 214,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 216,
"end": 217,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
},
"property": {
"type": "Computed",
"span": {
"start": 217,
"end": 222,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 218,
"end": 221,
"ctxt": 0
},
"value": "b",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 226,
"end": 227,
"ctxt": 0
},
"value": 1.0
}
}
},
{
"type": "ForInStatement",
"span": {
"start": 230,
"end": 253,
"ctxt": 0
},
"left": {
"type": "OptionalChainingExpression",
"span": {
"start": 235,
"end": 245,
"ctxt": 0
},
"questionDotToken": {
"start": 238,
"end": 239,
"ctxt": 0
},
"expr": {
"type": "MemberExpression",
"span": {
"start": 235,
"end": 245,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 235,
"end": 238,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 240,
"end": 245,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 241,
"end": 244,
"ctxt": 0
},
"value": "a",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
}
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 249,
"end": 251,
"ctxt": 0
},
"properties": []
},
"body": {
"type": "EmptyStatement",
"span": {
"start": 252,
"end": 253,
"ctxt": 0
}
}
},
{
"type": "ForInStatement",
"span": {
"start": 254,
"end": 278,
"ctxt": 0
},
"left": {
"type": "MemberExpression",
"span": {
"start": 259,
"end": 270,
"ctxt": 0
},
"object": {
"type": "OptionalChainingExpression",
"span": {
"start": 259,
"end": 265,
"ctxt": 0
},
"questionDotToken": {
"start": 262,
"end": 263,
"ctxt": 0
},
"expr": {
"type": "MemberExpression",
"span": {
"start": 259,
"end": 265,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 259,
"end": 262,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 264,
"end": 265,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
},
"property": {
"type": "Computed",
"span": {
"start": 265,
"end": 270,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 266,
"end": 269,
"ctxt": 0
},
"value": "b",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 274,
"end": 276,
"ctxt": 0
},
"properties": []
},
"body": {
"type": "EmptyStatement",
"span": {
"start": 277,
"end": 278,
"ctxt": 0
}
}
},
{
"type": "ForOfStatement",
"span": {
"start": 279,
"end": 302,
"ctxt": 0
},
"await": null,
"left": {
"type": "OptionalChainingExpression",
"span": {
"start": 284,
"end": 294,
"ctxt": 0
},
"questionDotToken": {
"start": 287,
"end": 288,
"ctxt": 0
},
"expr": {
"type": "MemberExpression",
"span": {
"start": 284,
"end": 294,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 284,
"end": 287,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 289,
"end": 294,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 290,
"end": 293,
"ctxt": 0
},
"value": "a",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
}
},
"right": {
"type": "ArrayExpression",
"span": {
"start": 298,
"end": 300,
"ctxt": 0
},
"elements": []
},
"body": {
"type": "EmptyStatement",
"span": {
"start": 301,
"end": 302,
"ctxt": 0
}
}
},
{
"type": "ForOfStatement",
"span": {
"start": 303,
"end": 327,
"ctxt": 0
},
"await": null,
"left": {
"type": "MemberExpression",
"span": {
"start": 308,
"end": 319,
"ctxt": 0
},
"object": {
"type": "OptionalChainingExpression",
"span": {
"start": 308,
"end": 314,
"ctxt": 0
},
"questionDotToken": {
"start": 311,
"end": 312,
"ctxt": 0
},
"expr": {
"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": "Computed",
"span": {
"start": 314,
"end": 319,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 315,
"end": 318,
"ctxt": 0
},
"value": "b",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
},
"right": {
"type": "ArrayExpression",
"span": {
"start": 323,
"end": 325,
"ctxt": 0
},
"elements": []
},
"body": {
"type": "EmptyStatement",
"span": {
"start": 326,
"end": 327,
"ctxt": 0
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 329,
"end": 360,
"ctxt": 0
},
"expression": {
"type": "ParenthesisExpression",
"span": {
"start": 329,
"end": 359,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 330,
"end": 358,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ObjectPattern",
"span": {
"start": 330,
"end": 347,
"ctxt": 0
},
"properties": [
{
"type": "KeyValuePatternProperty",
"key": {
"type": "Identifier",
"span": {
"start": 332,
"end": 333,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "Invalid",
"span": {
"start": 335,
"end": 345,
"ctxt": 0
}
}
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 350,
"end": 358,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 352,
"end": 353,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 355,
"end": 356,
"ctxt": 0
},
"value": 1.0
}
}
]
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 361,
"end": 393,
"ctxt": 0
},
"expression": {
"type": "ParenthesisExpression",
"span": {
"start": 361,
"end": 392,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 362,
"end": 391,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ObjectPattern",
"span": {
"start": 362,
"end": 380,
"ctxt": 0
},
"properties": [
{
"type": "KeyValuePatternProperty",
"key": {
"type": "Identifier",
"span": {
"start": 364,
"end": 365,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "MemberExpression",
"span": {
"start": 367,
"end": 378,
"ctxt": 0
},
"object": {
"type": "OptionalChainingExpression",
"span": {
"start": 367,
"end": 373,
"ctxt": 0
},
"questionDotToken": {
"start": 370,
"end": 371,
"ctxt": 0
},
"expr": {
"type": "MemberExpression",
"span": {
"start": 367,
"end": 373,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 367,
"end": 370,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 372,
"end": 373,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
},
"property": {
"type": "Computed",
"span": {
"start": 373,
"end": 378,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 374,
"end": 377,
"ctxt": 0
},
"value": "b",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
}
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 383,
"end": 391,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 385,
"end": 386,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 388,
"end": 389,
"ctxt": 0
},
"value": 1.0
}
}
]
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 394,
"end": 425,
"ctxt": 0
},
"expression": {
"type": "ParenthesisExpression",
"span": {
"start": 394,
"end": 424,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 395,
"end": 423,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ObjectPattern",
"span": {
"start": 395,
"end": 412,
"ctxt": 0
},
"properties": [
{
"type": "RestElement",
"span": {
"start": 397,
"end": 410,
"ctxt": 0
},
"rest": {
"start": 397,
"end": 400,
"ctxt": 0
},
"argument": {
"type": "Invalid",
"span": {
"start": 400,
"end": 410,
"ctxt": 0
}
},
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 415,
"end": 423,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 417,
"end": 418,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 420,
"end": 421,
"ctxt": 0
},
"value": 1.0
}
}
]
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 426,
"end": 458,
"ctxt": 0
},
"expression": {
"type": "ParenthesisExpression",
"span": {
"start": 426,
"end": 457,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 427,
"end": 456,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ObjectPattern",
"span": {
"start": 427,
"end": 445,
"ctxt": 0
},
"properties": [
{
"type": "RestElement",
"span": {
"start": 429,
"end": 443,
"ctxt": 0
},
"rest": {
"start": 429,
"end": 432,
"ctxt": 0
},
"argument": {
"type": "MemberExpression",
"span": {
"start": 432,
"end": 443,
"ctxt": 0
},
"object": {
"type": "OptionalChainingExpression",
"span": {
"start": 432,
"end": 438,
"ctxt": 0
},
"questionDotToken": {
"start": 435,
"end": 436,
"ctxt": 0
},
"expr": {
"type": "MemberExpression",
"span": {
"start": 432,
"end": 438,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 432,
"end": 435,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 437,
"end": 438,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
},
"property": {
"type": "Computed",
"span": {
"start": 438,
"end": 443,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 439,
"end": 442,
"ctxt": 0
},
"value": "b",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
},
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 448,
"end": 456,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 450,
"end": 451,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 453,
"end": 454,
"ctxt": 0
},
"value": 1.0
}
}
]
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 459,
"end": 480,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 459,
"end": 479,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ArrayPattern",
"span": {
"start": 459,
"end": 474,
"ctxt": 0
},
"elements": [
{
"type": "RestElement",
"span": {
"start": 463,
"end": 473,
"ctxt": 0
},
"rest": {
"start": 460,
"end": 463,
"ctxt": 0
},
"argument": {
"type": "Invalid",
"span": {
"start": 463,
"end": 473,
"ctxt": 0
}
},
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrayExpression",
"span": {
"start": 477,
"end": 479,
"ctxt": 0
},
"elements": []
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 481,
"end": 503,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 481,
"end": 502,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ArrayPattern",
"span": {
"start": 481,
"end": 497,
"ctxt": 0
},
"elements": [
{
"type": "RestElement",
"span": {
"start": 485,
"end": 496,
"ctxt": 0
},
"rest": {
"start": 482,
"end": 485,
"ctxt": 0
},
"argument": {
"type": "MemberExpression",
"span": {
"start": 485,
"end": 496,
"ctxt": 0
},
"object": {
"type": "OptionalChainingExpression",
"span": {
"start": 485,
"end": 491,
"ctxt": 0
},
"questionDotToken": {
"start": 488,
"end": 489,
"ctxt": 0
},
"expr": {
"type": "MemberExpression",
"span": {
"start": 485,
"end": 491,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 485,
"end": 488,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 490,
"end": 491,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
},
"property": {
"type": "Computed",
"span": {
"start": 491,
"end": 496,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 492,
"end": 495,
"ctxt": 0
},
"value": "b",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
},
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrayExpression",
"span": {
"start": 500,
"end": 502,
"ctxt": 0
},
"elements": []
}
}
}
],
"interpreter": null
}