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

2656 lines
77 KiB
JSON

{
"type": "Script",
"span": {
"start": 19,
"end": 647,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 19,
"end": 63,
"ctxt": 0
},
"kind": "const",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 33,
"end": 62,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 33,
"end": 35,
"ctxt": 0
},
"value": "o1",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 35,
"end": 62,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 37,
"end": 62,
"ctxt": 0
},
"types": [
{
"type": "TsKeywordType",
"span": {
"start": 37,
"end": 46,
"ctxt": 0
},
"kind": "undefined"
},
{
"type": "TsTypeLiteral",
"span": {
"start": 49,
"end": 62,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 51,
"end": 60,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 51,
"end": 52,
"ctxt": 0
},
"value": "b",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 52,
"end": 60,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 54,
"end": 60,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
}
]
}
]
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 64,
"end": 74,
"ctxt": 0
},
"expression": {
"type": "OptionalChainingExpression",
"span": {
"start": 64,
"end": 73,
"ctxt": 0
},
"questionDotToken": {
"start": 66,
"end": 67,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 64,
"end": 73,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 64,
"end": 66,
"ctxt": 0
},
"value": "o1",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 68,
"end": 73,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 69,
"end": 72,
"ctxt": 0
},
"value": "b",
"raw": "\"b\""
}
}
}
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 76,
"end": 127,
"ctxt": 0
},
"kind": "const",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 90,
"end": 126,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 90,
"end": 92,
"ctxt": 0
},
"value": "o2",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 92,
"end": 126,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 94,
"end": 126,
"ctxt": 0
},
"types": [
{
"type": "TsKeywordType",
"span": {
"start": 94,
"end": 103,
"ctxt": 0
},
"kind": "undefined"
},
{
"type": "TsTypeLiteral",
"span": {
"start": 106,
"end": 126,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 108,
"end": 124,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 108,
"end": 109,
"ctxt": 0
},
"value": "b",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 109,
"end": 124,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 111,
"end": 124,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 113,
"end": 122,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 113,
"end": 114,
"ctxt": 0
},
"value": "c",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 114,
"end": 122,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 116,
"end": 122,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
}
]
}
},
"typeParams": null
}
]
}
]
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 128,
"end": 140,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 128,
"end": 139,
"ctxt": 0
},
"object": {
"type": "OptionalChainingExpression",
"span": {
"start": 128,
"end": 137,
"ctxt": 0
},
"questionDotToken": {
"start": 130,
"end": 131,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 128,
"end": 137,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 128,
"end": 130,
"ctxt": 0
},
"value": "o2",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 132,
"end": 137,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 133,
"end": 136,
"ctxt": 0
},
"value": "b",
"raw": "\"b\""
}
}
}
},
"property": {
"type": "Identifier",
"span": {
"start": 138,
"end": 139,
"ctxt": 0
},
"value": "c",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 141,
"end": 152,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 141,
"end": 151,
"ctxt": 0
},
"object": {
"type": "OptionalChainingExpression",
"span": {
"start": 141,
"end": 146,
"ctxt": 0
},
"questionDotToken": {
"start": 143,
"end": 144,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 141,
"end": 146,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 141,
"end": 143,
"ctxt": 0
},
"value": "o2",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 145,
"end": 146,
"ctxt": 0
},
"value": "b",
"optional": false
}
}
},
"property": {
"type": "Computed",
"span": {
"start": 146,
"end": 151,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 147,
"end": 150,
"ctxt": 0
},
"value": "c",
"raw": "\"c\""
}
}
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 154,
"end": 205,
"ctxt": 0
},
"kind": "const",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 168,
"end": 204,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 168,
"end": 170,
"ctxt": 0
},
"value": "o3",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 170,
"end": 204,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 172,
"end": 204,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 174,
"end": 202,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 174,
"end": 175,
"ctxt": 0
},
"value": "b",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 175,
"end": 202,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 177,
"end": 202,
"ctxt": 0
},
"types": [
{
"type": "TsKeywordType",
"span": {
"start": 177,
"end": 186,
"ctxt": 0
},
"kind": "undefined"
},
{
"type": "TsTypeLiteral",
"span": {
"start": 189,
"end": 202,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 191,
"end": 200,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 191,
"end": 192,
"ctxt": 0
},
"value": "c",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 192,
"end": 200,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 194,
"end": 200,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
}
]
}
]
}
},
"typeParams": null
}
]
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 206,
"end": 217,
"ctxt": 0
},
"expression": {
"type": "OptionalChainingExpression",
"span": {
"start": 206,
"end": 216,
"ctxt": 0
},
"questionDotToken": {
"start": 213,
"end": 214,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 206,
"end": 216,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 206,
"end": 213,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 206,
"end": 208,
"ctxt": 0
},
"value": "o3",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 208,
"end": 213,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 209,
"end": 212,
"ctxt": 0
},
"value": "b",
"raw": "\"b\""
}
}
},
"property": {
"type": "Identifier",
"span": {
"start": 215,
"end": 216,
"ctxt": 0
},
"value": "c",
"optional": false
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 218,
"end": 230,
"ctxt": 0
},
"expression": {
"type": "OptionalChainingExpression",
"span": {
"start": 218,
"end": 229,
"ctxt": 0
},
"questionDotToken": {
"start": 222,
"end": 223,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 218,
"end": 229,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 218,
"end": 222,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 218,
"end": 220,
"ctxt": 0
},
"value": "o3",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 221,
"end": 222,
"ctxt": 0
},
"value": "b",
"optional": false
}
},
"property": {
"type": "Computed",
"span": {
"start": 224,
"end": 229,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 225,
"end": 228,
"ctxt": 0
},
"value": "c",
"raw": "\"c\""
}
}
}
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 232,
"end": 287,
"ctxt": 0
},
"kind": "const",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 246,
"end": 286,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 246,
"end": 248,
"ctxt": 0
},
"value": "o4",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 248,
"end": 286,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 250,
"end": 286,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 252,
"end": 284,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 252,
"end": 253,
"ctxt": 0
},
"value": "b",
"optional": false
},
"computed": false,
"optional": true,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 254,
"end": 284,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 256,
"end": 284,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 258,
"end": 282,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 258,
"end": 259,
"ctxt": 0
},
"value": "c",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 259,
"end": 282,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 261,
"end": 282,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 263,
"end": 280,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 263,
"end": 264,
"ctxt": 0
},
"value": "d",
"optional": false
},
"computed": false,
"optional": true,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 265,
"end": 280,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 267,
"end": 280,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 269,
"end": 278,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 269,
"end": 270,
"ctxt": 0
},
"value": "e",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 270,
"end": 278,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 272,
"end": 278,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
}
]
}
},
"typeParams": null
}
]
}
},
"typeParams": null
}
]
}
},
"typeParams": null
}
]
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 288,
"end": 305,
"ctxt": 0
},
"expression": {
"type": "OptionalChainingExpression",
"span": {
"start": 288,
"end": 304,
"ctxt": 0
},
"questionDotToken": {
"start": 301,
"end": 302,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 288,
"end": 304,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 288,
"end": 301,
"ctxt": 0
},
"object": {
"type": "OptionalChainingExpression",
"span": {
"start": 288,
"end": 299,
"ctxt": 0
},
"questionDotToken": {
"start": 292,
"end": 293,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 288,
"end": 299,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 288,
"end": 292,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 288,
"end": 290,
"ctxt": 0
},
"value": "o4",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 291,
"end": 292,
"ctxt": 0
},
"value": "b",
"optional": false
}
},
"property": {
"type": "Computed",
"span": {
"start": 294,
"end": 299,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 295,
"end": 298,
"ctxt": 0
},
"value": "c",
"raw": "\"c\""
}
}
}
},
"property": {
"type": "Identifier",
"span": {
"start": 300,
"end": 301,
"ctxt": 0
},
"value": "d",
"optional": false
}
},
"property": {
"type": "Identifier",
"span": {
"start": 303,
"end": 304,
"ctxt": 0
},
"value": "e",
"optional": false
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 306,
"end": 327,
"ctxt": 0
},
"expression": {
"type": "OptionalChainingExpression",
"span": {
"start": 306,
"end": 326,
"ctxt": 0
},
"questionDotToken": {
"start": 319,
"end": 320,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 306,
"end": 326,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 306,
"end": 319,
"ctxt": 0
},
"object": {
"type": "OptionalChainingExpression",
"span": {
"start": 306,
"end": 317,
"ctxt": 0
},
"questionDotToken": {
"start": 310,
"end": 311,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 306,
"end": 317,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 306,
"end": 310,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 306,
"end": 308,
"ctxt": 0
},
"value": "o4",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 309,
"end": 310,
"ctxt": 0
},
"value": "b",
"optional": false
}
},
"property": {
"type": "Computed",
"span": {
"start": 312,
"end": 317,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 313,
"end": 316,
"ctxt": 0
},
"value": "c",
"raw": "\"c\""
}
}
}
},
"property": {
"type": "Identifier",
"span": {
"start": 318,
"end": 319,
"ctxt": 0
},
"value": "d",
"optional": false
}
},
"property": {
"type": "Computed",
"span": {
"start": 321,
"end": 326,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 322,
"end": 325,
"ctxt": 0
},
"value": "e",
"raw": "\"e\""
}
}
}
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 329,
"end": 386,
"ctxt": 0
},
"kind": "const",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 343,
"end": 385,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 343,
"end": 345,
"ctxt": 0
},
"value": "o5",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 345,
"end": 385,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 347,
"end": 385,
"ctxt": 0
},
"members": [
{
"type": "TsMethodSignature",
"span": {
"start": 349,
"end": 383,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 349,
"end": 350,
"ctxt": 0
},
"value": "b",
"optional": false
},
"computed": false,
"optional": true,
"params": [],
"typeAnn": {
"type": "TsTypeAnnotation",
"span": {
"start": 353,
"end": 383,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 355,
"end": 383,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 357,
"end": 381,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 357,
"end": 358,
"ctxt": 0
},
"value": "c",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 358,
"end": 381,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 360,
"end": 381,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 362,
"end": 379,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 362,
"end": 363,
"ctxt": 0
},
"value": "d",
"optional": false
},
"computed": false,
"optional": true,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 364,
"end": 379,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 366,
"end": 379,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 368,
"end": 377,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 368,
"end": 369,
"ctxt": 0
},
"value": "e",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 369,
"end": 377,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 371,
"end": 377,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
}
]
}
},
"typeParams": null
}
]
}
},
"typeParams": null
}
]
}
},
"typeParams": null
}
]
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 387,
"end": 406,
"ctxt": 0
},
"expression": {
"type": "OptionalChainingExpression",
"span": {
"start": 387,
"end": 405,
"ctxt": 0
},
"questionDotToken": {
"start": 402,
"end": 403,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 387,
"end": 405,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 387,
"end": 402,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 387,
"end": 400,
"ctxt": 0
},
"object": {
"type": "OptionalChainingExpression",
"span": {
"start": 387,
"end": 395,
"ctxt": 0
},
"questionDotToken": {
"start": 391,
"end": 392,
"ctxt": 0
},
"base": {
"type": "CallExpression",
"span": {
"start": 387,
"end": 395,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 387,
"end": 391,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 387,
"end": 389,
"ctxt": 0
},
"value": "o5",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 390,
"end": 391,
"ctxt": 0
},
"value": "b",
"optional": false
}
},
"arguments": [],
"typeArguments": null
}
},
"property": {
"type": "Computed",
"span": {
"start": 395,
"end": 400,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 396,
"end": 399,
"ctxt": 0
},
"value": "c",
"raw": "\"c\""
}
}
},
"property": {
"type": "Identifier",
"span": {
"start": 401,
"end": 402,
"ctxt": 0
},
"value": "d",
"optional": false
}
},
"property": {
"type": "Identifier",
"span": {
"start": 404,
"end": 405,
"ctxt": 0
},
"value": "e",
"optional": false
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 407,
"end": 430,
"ctxt": 0
},
"expression": {
"type": "OptionalChainingExpression",
"span": {
"start": 407,
"end": 429,
"ctxt": 0
},
"questionDotToken": {
"start": 422,
"end": 423,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 407,
"end": 429,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 407,
"end": 422,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 407,
"end": 420,
"ctxt": 0
},
"object": {
"type": "OptionalChainingExpression",
"span": {
"start": 407,
"end": 415,
"ctxt": 0
},
"questionDotToken": {
"start": 411,
"end": 412,
"ctxt": 0
},
"base": {
"type": "CallExpression",
"span": {
"start": 407,
"end": 415,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 407,
"end": 411,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 407,
"end": 409,
"ctxt": 0
},
"value": "o5",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 410,
"end": 411,
"ctxt": 0
},
"value": "b",
"optional": false
}
},
"arguments": [],
"typeArguments": null
}
},
"property": {
"type": "Computed",
"span": {
"start": 415,
"end": 420,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 416,
"end": 419,
"ctxt": 0
},
"value": "c",
"raw": "\"c\""
}
}
},
"property": {
"type": "Identifier",
"span": {
"start": 421,
"end": 422,
"ctxt": 0
},
"value": "d",
"optional": false
}
},
"property": {
"type": "Computed",
"span": {
"start": 424,
"end": 429,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 425,
"end": 428,
"ctxt": 0
},
"value": "e",
"raw": "\"e\""
}
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 431,
"end": 453,
"ctxt": 0
},
"expression": {
"type": "OptionalChainingExpression",
"span": {
"start": 431,
"end": 452,
"ctxt": 0
},
"questionDotToken": {
"start": 449,
"end": 450,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 431,
"end": 452,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 431,
"end": 449,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 431,
"end": 447,
"ctxt": 0
},
"object": {
"type": "OptionalChainingExpression",
"span": {
"start": 431,
"end": 442,
"ctxt": 0
},
"questionDotToken": {
"start": 438,
"end": 439,
"ctxt": 0
},
"base": {
"type": "CallExpression",
"span": {
"start": 431,
"end": 442,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 431,
"end": 438,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 431,
"end": 433,
"ctxt": 0
},
"value": "o5",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 433,
"end": 438,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 434,
"end": 437,
"ctxt": 0
},
"value": "b",
"raw": "\"b\""
}
}
},
"arguments": [],
"typeArguments": null
}
},
"property": {
"type": "Computed",
"span": {
"start": 442,
"end": 447,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 443,
"end": 446,
"ctxt": 0
},
"value": "c",
"raw": "\"c\""
}
}
},
"property": {
"type": "Identifier",
"span": {
"start": 448,
"end": 449,
"ctxt": 0
},
"value": "d",
"optional": false
}
},
"property": {
"type": "Identifier",
"span": {
"start": 451,
"end": 452,
"ctxt": 0
},
"value": "e",
"optional": false
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 454,
"end": 480,
"ctxt": 0
},
"expression": {
"type": "OptionalChainingExpression",
"span": {
"start": 454,
"end": 479,
"ctxt": 0
},
"questionDotToken": {
"start": 472,
"end": 473,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 454,
"end": 479,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 454,
"end": 472,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 454,
"end": 470,
"ctxt": 0
},
"object": {
"type": "OptionalChainingExpression",
"span": {
"start": 454,
"end": 465,
"ctxt": 0
},
"questionDotToken": {
"start": 461,
"end": 462,
"ctxt": 0
},
"base": {
"type": "CallExpression",
"span": {
"start": 454,
"end": 465,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 454,
"end": 461,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 454,
"end": 456,
"ctxt": 0
},
"value": "o5",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 456,
"end": 461,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 457,
"end": 460,
"ctxt": 0
},
"value": "b",
"raw": "\"b\""
}
}
},
"arguments": [],
"typeArguments": null
}
},
"property": {
"type": "Computed",
"span": {
"start": 465,
"end": 470,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 466,
"end": 469,
"ctxt": 0
},
"value": "c",
"raw": "\"c\""
}
}
},
"property": {
"type": "Identifier",
"span": {
"start": 471,
"end": 472,
"ctxt": 0
},
"value": "d",
"optional": false
}
},
"property": {
"type": "Computed",
"span": {
"start": 474,
"end": 479,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 475,
"end": 478,
"ctxt": 0
},
"value": "e",
"raw": "\"e\""
}
}
}
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 494,
"end": 549,
"ctxt": 0
},
"kind": "const",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 508,
"end": 548,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 508,
"end": 510,
"ctxt": 0
},
"value": "o6",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 510,
"end": 548,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsFunctionType",
"span": {
"start": 512,
"end": 548,
"ctxt": 0
},
"params": [],
"typeParams": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 512,
"end": 515,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 513,
"end": 514,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 513,
"end": 514,
"ctxt": 0
},
"value": "T",
"optional": false
},
"in": false,
"out": false,
"constraint": null,
"default": null
}
]
},
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 518,
"end": 548,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 521,
"end": 548,
"ctxt": 0
},
"types": [
{
"type": "TsKeywordType",
"span": {
"start": 521,
"end": 530,
"ctxt": 0
},
"kind": "undefined"
},
{
"type": "TsParenthesizedType",
"span": {
"start": 533,
"end": 548,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 534,
"end": 547,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 536,
"end": 545,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 536,
"end": 537,
"ctxt": 0
},
"value": "x",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 537,
"end": 545,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 539,
"end": 545,
"ctxt": 0
},
"kind": "number"
}
},
"typeParams": null
}
]
}
}
]
}
}
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 550,
"end": 570,
"ctxt": 0
},
"expression": {
"type": "OptionalChainingExpression",
"span": {
"start": 550,
"end": 569,
"ctxt": 0
},
"questionDotToken": {
"start": 562,
"end": 563,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 550,
"end": 569,
"ctxt": 0
},
"object": {
"type": "CallExpression",
"span": {
"start": 550,
"end": 562,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 550,
"end": 552,
"ctxt": 0
},
"value": "o6",
"optional": false
},
"arguments": [],
"typeArguments": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 552,
"end": 560,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 553,
"end": 559,
"ctxt": 0
},
"kind": "number"
}
]
}
},
"property": {
"type": "Computed",
"span": {
"start": 564,
"end": 569,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 565,
"end": 568,
"ctxt": 0
},
"value": "x",
"raw": "\"x\""
}
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 584,
"end": 597,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 584,
"end": 596,
"ctxt": 0
},
"object": {
"type": "TsNonNullExpression",
"span": {
"start": 584,
"end": 594,
"ctxt": 0
},
"expression": {
"type": "OptionalChainingExpression",
"span": {
"start": 584,
"end": 593,
"ctxt": 0
},
"questionDotToken": {
"start": 586,
"end": 587,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 584,
"end": 593,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 584,
"end": 586,
"ctxt": 0
},
"value": "o2",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 588,
"end": 593,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 589,
"end": 592,
"ctxt": 0
},
"value": "b",
"raw": "\"b\""
}
}
}
}
},
"property": {
"type": "Identifier",
"span": {
"start": 595,
"end": 596,
"ctxt": 0
},
"value": "c",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 598,
"end": 614,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 598,
"end": 613,
"ctxt": 0
},
"object": {
"type": "TsNonNullExpression",
"span": {
"start": 598,
"end": 608,
"ctxt": 0
},
"expression": {
"type": "OptionalChainingExpression",
"span": {
"start": 598,
"end": 607,
"ctxt": 0
},
"questionDotToken": {
"start": 600,
"end": 601,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 598,
"end": 607,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 598,
"end": 600,
"ctxt": 0
},
"value": "o2",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 602,
"end": 607,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 603,
"end": 606,
"ctxt": 0
},
"value": "b",
"raw": "\"b\""
}
}
}
}
},
"property": {
"type": "Computed",
"span": {
"start": 608,
"end": 613,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 609,
"end": 612,
"ctxt": 0
},
"value": "c",
"raw": "\"c\""
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 615,
"end": 629,
"ctxt": 0
},
"expression": {
"type": "TsNonNullExpression",
"span": {
"start": 615,
"end": 628,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 615,
"end": 627,
"ctxt": 0
},
"object": {
"type": "TsNonNullExpression",
"span": {
"start": 615,
"end": 625,
"ctxt": 0
},
"expression": {
"type": "OptionalChainingExpression",
"span": {
"start": 615,
"end": 624,
"ctxt": 0
},
"questionDotToken": {
"start": 617,
"end": 618,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 615,
"end": 624,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 615,
"end": 617,
"ctxt": 0
},
"value": "o2",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 619,
"end": 624,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 620,
"end": 623,
"ctxt": 0
},
"value": "b",
"raw": "\"b\""
}
}
}
}
},
"property": {
"type": "Identifier",
"span": {
"start": 626,
"end": 627,
"ctxt": 0
},
"value": "c",
"optional": false
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 630,
"end": 647,
"ctxt": 0
},
"expression": {
"type": "TsNonNullExpression",
"span": {
"start": 630,
"end": 646,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 630,
"end": 645,
"ctxt": 0
},
"object": {
"type": "TsNonNullExpression",
"span": {
"start": 630,
"end": 640,
"ctxt": 0
},
"expression": {
"type": "OptionalChainingExpression",
"span": {
"start": 630,
"end": 639,
"ctxt": 0
},
"questionDotToken": {
"start": 632,
"end": 633,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 630,
"end": 639,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 630,
"end": 632,
"ctxt": 0
},
"value": "o2",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 634,
"end": 639,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 635,
"end": 638,
"ctxt": 0
},
"value": "b",
"raw": "\"b\""
}
}
}
}
},
"property": {
"type": "Computed",
"span": {
"start": 640,
"end": 645,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 641,
"end": 644,
"ctxt": 0
},
"value": "c",
"raw": "\"c\""
}
}
}
}
}
],
"interpreter": null
}