swc/crates/swc_ecma_parser/tests/tsc/deleteChain.json
Donny/강동윤 aa83584634
refactor(es/ast): Reimplement optional chaining (#7441)
**Related issue:**

 - Closes #7003.
 - Closes #7156.
2023-06-12 06:47:40 +00:00

2498 lines
79 KiB
JSON

{
"type": "Script",
"span": {
"start": 19,
"end": 617,
"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": 77,
"ctxt": 0
},
"expression": {
"type": "UnaryExpression",
"span": {
"start": 64,
"end": 76,
"ctxt": 0
},
"operator": "delete",
"argument": {
"type": "OptionalChainingExpression",
"span": {
"start": 71,
"end": 76,
"ctxt": 0
},
"optional": true,
"base": {
"type": "MemberExpression",
"span": {
"start": 71,
"end": 76,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 71,
"end": 73,
"ctxt": 0
},
"value": "o1",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 75,
"end": 76,
"ctxt": 0
},
"value": "b",
"optional": false
}
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 78,
"end": 93,
"ctxt": 0
},
"expression": {
"type": "UnaryExpression",
"span": {
"start": 78,
"end": 92,
"ctxt": 0
},
"operator": "delete",
"argument": {
"type": "ParenthesisExpression",
"span": {
"start": 85,
"end": 92,
"ctxt": 0
},
"expression": {
"type": "OptionalChainingExpression",
"span": {
"start": 86,
"end": 91,
"ctxt": 0
},
"optional": true,
"base": {
"type": "MemberExpression",
"span": {
"start": 86,
"end": 91,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 86,
"end": 88,
"ctxt": 0
},
"value": "o1",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 90,
"end": 91,
"ctxt": 0
},
"value": "b",
"optional": false
}
}
}
}
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 95,
"end": 146,
"ctxt": 0
},
"kind": "const",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 109,
"end": 145,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 109,
"end": 111,
"ctxt": 0
},
"value": "o2",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 111,
"end": 145,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 113,
"end": 145,
"ctxt": 0
},
"types": [
{
"type": "TsKeywordType",
"span": {
"start": 113,
"end": 122,
"ctxt": 0
},
"kind": "undefined"
},
{
"type": "TsTypeLiteral",
"span": {
"start": 125,
"end": 145,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 127,
"end": 143,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 127,
"end": 128,
"ctxt": 0
},
"value": "b",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 128,
"end": 143,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 130,
"end": 143,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 132,
"end": 141,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 132,
"end": 133,
"ctxt": 0
},
"value": "c",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 133,
"end": 141,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 135,
"end": 141,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
}
]
}
},
"typeParams": null
}
]
}
]
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 147,
"end": 162,
"ctxt": 0
},
"expression": {
"type": "UnaryExpression",
"span": {
"start": 147,
"end": 161,
"ctxt": 0
},
"operator": "delete",
"argument": {
"type": "OptionalChainingExpression",
"span": {
"start": 154,
"end": 161,
"ctxt": 0
},
"optional": false,
"base": {
"type": "MemberExpression",
"span": {
"start": 154,
"end": 161,
"ctxt": 0
},
"object": {
"type": "OptionalChainingExpression",
"span": {
"start": 154,
"end": 159,
"ctxt": 0
},
"optional": true,
"base": {
"type": "MemberExpression",
"span": {
"start": 154,
"end": 159,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 154,
"end": 156,
"ctxt": 0
},
"value": "o2",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 158,
"end": 159,
"ctxt": 0
},
"value": "b",
"optional": false
}
}
},
"property": {
"type": "Identifier",
"span": {
"start": 160,
"end": 161,
"ctxt": 0
},
"value": "c",
"optional": false
}
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 163,
"end": 180,
"ctxt": 0
},
"expression": {
"type": "UnaryExpression",
"span": {
"start": 163,
"end": 179,
"ctxt": 0
},
"operator": "delete",
"argument": {
"type": "ParenthesisExpression",
"span": {
"start": 170,
"end": 179,
"ctxt": 0
},
"expression": {
"type": "OptionalChainingExpression",
"span": {
"start": 171,
"end": 178,
"ctxt": 0
},
"optional": false,
"base": {
"type": "MemberExpression",
"span": {
"start": 171,
"end": 178,
"ctxt": 0
},
"object": {
"type": "OptionalChainingExpression",
"span": {
"start": 171,
"end": 176,
"ctxt": 0
},
"optional": true,
"base": {
"type": "MemberExpression",
"span": {
"start": 171,
"end": 176,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 171,
"end": 173,
"ctxt": 0
},
"value": "o2",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 175,
"end": 176,
"ctxt": 0
},
"value": "b",
"optional": false
}
}
},
"property": {
"type": "Identifier",
"span": {
"start": 177,
"end": 178,
"ctxt": 0
},
"value": "c",
"optional": false
}
}
}
}
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 182,
"end": 233,
"ctxt": 0
},
"kind": "const",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 196,
"end": 232,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 196,
"end": 198,
"ctxt": 0
},
"value": "o3",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 198,
"end": 232,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 200,
"end": 232,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 202,
"end": 230,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 202,
"end": 203,
"ctxt": 0
},
"value": "b",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 203,
"end": 230,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 205,
"end": 230,
"ctxt": 0
},
"types": [
{
"type": "TsKeywordType",
"span": {
"start": 205,
"end": 214,
"ctxt": 0
},
"kind": "undefined"
},
{
"type": "TsTypeLiteral",
"span": {
"start": 217,
"end": 230,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 219,
"end": 228,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 219,
"end": 220,
"ctxt": 0
},
"value": "c",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 220,
"end": 228,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 222,
"end": 228,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
}
]
}
]
}
},
"typeParams": null
}
]
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 234,
"end": 249,
"ctxt": 0
},
"expression": {
"type": "UnaryExpression",
"span": {
"start": 234,
"end": 248,
"ctxt": 0
},
"operator": "delete",
"argument": {
"type": "OptionalChainingExpression",
"span": {
"start": 241,
"end": 248,
"ctxt": 0
},
"optional": true,
"base": {
"type": "MemberExpression",
"span": {
"start": 241,
"end": 248,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 241,
"end": 245,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 241,
"end": 243,
"ctxt": 0
},
"value": "o3",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 244,
"end": 245,
"ctxt": 0
},
"value": "b",
"optional": false
}
},
"property": {
"type": "Identifier",
"span": {
"start": 247,
"end": 248,
"ctxt": 0
},
"value": "c",
"optional": false
}
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 250,
"end": 267,
"ctxt": 0
},
"expression": {
"type": "UnaryExpression",
"span": {
"start": 250,
"end": 266,
"ctxt": 0
},
"operator": "delete",
"argument": {
"type": "ParenthesisExpression",
"span": {
"start": 257,
"end": 266,
"ctxt": 0
},
"expression": {
"type": "OptionalChainingExpression",
"span": {
"start": 258,
"end": 265,
"ctxt": 0
},
"optional": true,
"base": {
"type": "MemberExpression",
"span": {
"start": 258,
"end": 265,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 258,
"end": 262,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 258,
"end": 260,
"ctxt": 0
},
"value": "o3",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 261,
"end": 262,
"ctxt": 0
},
"value": "b",
"optional": false
}
},
"property": {
"type": "Identifier",
"span": {
"start": 264,
"end": 265,
"ctxt": 0
},
"value": "c",
"optional": false
}
}
}
}
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 269,
"end": 324,
"ctxt": 0
},
"kind": "const",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 283,
"end": 323,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 283,
"end": 285,
"ctxt": 0
},
"value": "o4",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 285,
"end": 323,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 287,
"end": 323,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 289,
"end": 321,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 289,
"end": 290,
"ctxt": 0
},
"value": "b",
"optional": false
},
"computed": false,
"optional": true,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 291,
"end": 321,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 293,
"end": 321,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 295,
"end": 319,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 295,
"end": 296,
"ctxt": 0
},
"value": "c",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 296,
"end": 319,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 298,
"end": 319,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 300,
"end": 317,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 300,
"end": 301,
"ctxt": 0
},
"value": "d",
"optional": false
},
"computed": false,
"optional": true,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 302,
"end": 317,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 304,
"end": 317,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 306,
"end": 315,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 306,
"end": 307,
"ctxt": 0
},
"value": "e",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 307,
"end": 315,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 309,
"end": 315,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
}
]
}
},
"typeParams": null
}
]
}
},
"typeParams": null
}
]
}
},
"typeParams": null
}
]
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 325,
"end": 345,
"ctxt": 0
},
"expression": {
"type": "UnaryExpression",
"span": {
"start": 325,
"end": 344,
"ctxt": 0
},
"operator": "delete",
"argument": {
"type": "OptionalChainingExpression",
"span": {
"start": 332,
"end": 344,
"ctxt": 0
},
"optional": true,
"base": {
"type": "MemberExpression",
"span": {
"start": 332,
"end": 344,
"ctxt": 0
},
"object": {
"type": "OptionalChainingExpression",
"span": {
"start": 332,
"end": 341,
"ctxt": 0
},
"optional": false,
"base": {
"type": "MemberExpression",
"span": {
"start": 332,
"end": 341,
"ctxt": 0
},
"object": {
"type": "OptionalChainingExpression",
"span": {
"start": 332,
"end": 339,
"ctxt": 0
},
"optional": true,
"base": {
"type": "MemberExpression",
"span": {
"start": 332,
"end": 339,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 332,
"end": 336,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 332,
"end": 334,
"ctxt": 0
},
"value": "o4",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 335,
"end": 336,
"ctxt": 0
},
"value": "b",
"optional": false
}
},
"property": {
"type": "Identifier",
"span": {
"start": 338,
"end": 339,
"ctxt": 0
},
"value": "c",
"optional": false
}
}
},
"property": {
"type": "Identifier",
"span": {
"start": 340,
"end": 341,
"ctxt": 0
},
"value": "d",
"optional": false
}
}
},
"property": {
"type": "Identifier",
"span": {
"start": 343,
"end": 344,
"ctxt": 0
},
"value": "e",
"optional": false
}
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 346,
"end": 368,
"ctxt": 0
},
"expression": {
"type": "UnaryExpression",
"span": {
"start": 346,
"end": 367,
"ctxt": 0
},
"operator": "delete",
"argument": {
"type": "OptionalChainingExpression",
"span": {
"start": 353,
"end": 367,
"ctxt": 0
},
"optional": true,
"base": {
"type": "MemberExpression",
"span": {
"start": 353,
"end": 367,
"ctxt": 0
},
"object": {
"type": "ParenthesisExpression",
"span": {
"start": 353,
"end": 364,
"ctxt": 0
},
"expression": {
"type": "OptionalChainingExpression",
"span": {
"start": 354,
"end": 363,
"ctxt": 0
},
"optional": false,
"base": {
"type": "MemberExpression",
"span": {
"start": 354,
"end": 363,
"ctxt": 0
},
"object": {
"type": "OptionalChainingExpression",
"span": {
"start": 354,
"end": 361,
"ctxt": 0
},
"optional": true,
"base": {
"type": "MemberExpression",
"span": {
"start": 354,
"end": 361,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 354,
"end": 358,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 354,
"end": 356,
"ctxt": 0
},
"value": "o4",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 357,
"end": 358,
"ctxt": 0
},
"value": "b",
"optional": false
}
},
"property": {
"type": "Identifier",
"span": {
"start": 360,
"end": 361,
"ctxt": 0
},
"value": "c",
"optional": false
}
}
},
"property": {
"type": "Identifier",
"span": {
"start": 362,
"end": 363,
"ctxt": 0
},
"value": "d",
"optional": false
}
}
}
},
"property": {
"type": "Identifier",
"span": {
"start": 366,
"end": 367,
"ctxt": 0
},
"value": "e",
"optional": false
}
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 369,
"end": 391,
"ctxt": 0
},
"expression": {
"type": "UnaryExpression",
"span": {
"start": 369,
"end": 390,
"ctxt": 0
},
"operator": "delete",
"argument": {
"type": "ParenthesisExpression",
"span": {
"start": 376,
"end": 390,
"ctxt": 0
},
"expression": {
"type": "OptionalChainingExpression",
"span": {
"start": 377,
"end": 389,
"ctxt": 0
},
"optional": true,
"base": {
"type": "MemberExpression",
"span": {
"start": 377,
"end": 389,
"ctxt": 0
},
"object": {
"type": "OptionalChainingExpression",
"span": {
"start": 377,
"end": 386,
"ctxt": 0
},
"optional": false,
"base": {
"type": "MemberExpression",
"span": {
"start": 377,
"end": 386,
"ctxt": 0
},
"object": {
"type": "OptionalChainingExpression",
"span": {
"start": 377,
"end": 384,
"ctxt": 0
},
"optional": true,
"base": {
"type": "MemberExpression",
"span": {
"start": 377,
"end": 384,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 377,
"end": 381,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 377,
"end": 379,
"ctxt": 0
},
"value": "o4",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 380,
"end": 381,
"ctxt": 0
},
"value": "b",
"optional": false
}
},
"property": {
"type": "Identifier",
"span": {
"start": 383,
"end": 384,
"ctxt": 0
},
"value": "c",
"optional": false
}
}
},
"property": {
"type": "Identifier",
"span": {
"start": 385,
"end": 386,
"ctxt": 0
},
"value": "d",
"optional": false
}
}
},
"property": {
"type": "Identifier",
"span": {
"start": 388,
"end": 389,
"ctxt": 0
},
"value": "e",
"optional": false
}
}
}
}
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 393,
"end": 450,
"ctxt": 0
},
"kind": "const",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 407,
"end": 449,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 407,
"end": 409,
"ctxt": 0
},
"value": "o5",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 409,
"end": 449,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 411,
"end": 449,
"ctxt": 0
},
"members": [
{
"type": "TsMethodSignature",
"span": {
"start": 413,
"end": 447,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 413,
"end": 414,
"ctxt": 0
},
"value": "b",
"optional": false
},
"computed": false,
"optional": true,
"params": [],
"typeAnn": {
"type": "TsTypeAnnotation",
"span": {
"start": 417,
"end": 447,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 419,
"end": 447,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 421,
"end": 445,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 421,
"end": 422,
"ctxt": 0
},
"value": "c",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 422,
"end": 445,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 424,
"end": 445,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 426,
"end": 443,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 426,
"end": 427,
"ctxt": 0
},
"value": "d",
"optional": false
},
"computed": false,
"optional": true,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 428,
"end": 443,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 430,
"end": 443,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 432,
"end": 441,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 432,
"end": 433,
"ctxt": 0
},
"value": "e",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 433,
"end": 441,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 435,
"end": 441,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
}
]
}
},
"typeParams": null
}
]
}
},
"typeParams": null
}
]
}
},
"typeParams": null
}
]
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 451,
"end": 474,
"ctxt": 0
},
"expression": {
"type": "UnaryExpression",
"span": {
"start": 451,
"end": 473,
"ctxt": 0
},
"operator": "delete",
"argument": {
"type": "OptionalChainingExpression",
"span": {
"start": 458,
"end": 473,
"ctxt": 0
},
"optional": true,
"base": {
"type": "MemberExpression",
"span": {
"start": 458,
"end": 473,
"ctxt": 0
},
"object": {
"type": "OptionalChainingExpression",
"span": {
"start": 458,
"end": 470,
"ctxt": 0
},
"optional": false,
"base": {
"type": "MemberExpression",
"span": {
"start": 458,
"end": 470,
"ctxt": 0
},
"object": {
"type": "OptionalChainingExpression",
"span": {
"start": 458,
"end": 468,
"ctxt": 0
},
"optional": false,
"base": {
"type": "MemberExpression",
"span": {
"start": 458,
"end": 468,
"ctxt": 0
},
"object": {
"type": "OptionalChainingExpression",
"span": {
"start": 458,
"end": 466,
"ctxt": 0
},
"optional": true,
"base": {
"type": "CallExpression",
"span": {
"start": 458,
"end": 466,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 458,
"end": 462,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 458,
"end": 460,
"ctxt": 0
},
"value": "o5",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 461,
"end": 462,
"ctxt": 0
},
"value": "b",
"optional": false
}
},
"arguments": [],
"typeArguments": null
}
},
"property": {
"type": "Identifier",
"span": {
"start": 467,
"end": 468,
"ctxt": 0
},
"value": "c",
"optional": false
}
}
},
"property": {
"type": "Identifier",
"span": {
"start": 469,
"end": 470,
"ctxt": 0
},
"value": "d",
"optional": false
}
}
},
"property": {
"type": "Identifier",
"span": {
"start": 472,
"end": 473,
"ctxt": 0
},
"value": "e",
"optional": false
}
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 475,
"end": 500,
"ctxt": 0
},
"expression": {
"type": "UnaryExpression",
"span": {
"start": 475,
"end": 499,
"ctxt": 0
},
"operator": "delete",
"argument": {
"type": "ParenthesisExpression",
"span": {
"start": 482,
"end": 499,
"ctxt": 0
},
"expression": {
"type": "OptionalChainingExpression",
"span": {
"start": 483,
"end": 498,
"ctxt": 0
},
"optional": true,
"base": {
"type": "MemberExpression",
"span": {
"start": 483,
"end": 498,
"ctxt": 0
},
"object": {
"type": "OptionalChainingExpression",
"span": {
"start": 483,
"end": 495,
"ctxt": 0
},
"optional": false,
"base": {
"type": "MemberExpression",
"span": {
"start": 483,
"end": 495,
"ctxt": 0
},
"object": {
"type": "OptionalChainingExpression",
"span": {
"start": 483,
"end": 493,
"ctxt": 0
},
"optional": false,
"base": {
"type": "MemberExpression",
"span": {
"start": 483,
"end": 493,
"ctxt": 0
},
"object": {
"type": "OptionalChainingExpression",
"span": {
"start": 483,
"end": 491,
"ctxt": 0
},
"optional": true,
"base": {
"type": "CallExpression",
"span": {
"start": 483,
"end": 491,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 483,
"end": 487,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 483,
"end": 485,
"ctxt": 0
},
"value": "o5",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 486,
"end": 487,
"ctxt": 0
},
"value": "b",
"optional": false
}
},
"arguments": [],
"typeArguments": null
}
},
"property": {
"type": "Identifier",
"span": {
"start": 492,
"end": 493,
"ctxt": 0
},
"value": "c",
"optional": false
}
}
},
"property": {
"type": "Identifier",
"span": {
"start": 494,
"end": 495,
"ctxt": 0
},
"value": "d",
"optional": false
}
}
},
"property": {
"type": "Identifier",
"span": {
"start": 497,
"end": 498,
"ctxt": 0
},
"value": "e",
"optional": false
}
}
}
}
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 502,
"end": 557,
"ctxt": 0
},
"kind": "const",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 516,
"end": 556,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 516,
"end": 518,
"ctxt": 0
},
"value": "o6",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 518,
"end": 556,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 520,
"end": 556,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 522,
"end": 554,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 522,
"end": 523,
"ctxt": 0
},
"value": "b",
"optional": false
},
"computed": false,
"optional": true,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 524,
"end": 554,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 526,
"end": 554,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 528,
"end": 552,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 528,
"end": 529,
"ctxt": 0
},
"value": "c",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 529,
"end": 552,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 531,
"end": 552,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 533,
"end": 550,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 533,
"end": 534,
"ctxt": 0
},
"value": "d",
"optional": false
},
"computed": false,
"optional": true,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 535,
"end": 550,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 537,
"end": 550,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 539,
"end": 548,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 539,
"end": 540,
"ctxt": 0
},
"value": "e",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 540,
"end": 548,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 542,
"end": 548,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
}
]
}
},
"typeParams": null
}
]
}
},
"typeParams": null
}
]
}
},
"typeParams": null
}
]
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 558,
"end": 586,
"ctxt": 0
},
"expression": {
"type": "UnaryExpression",
"span": {
"start": 558,
"end": 585,
"ctxt": 0
},
"operator": "delete",
"argument": {
"type": "OptionalChainingExpression",
"span": {
"start": 565,
"end": 585,
"ctxt": 0
},
"optional": true,
"base": {
"type": "MemberExpression",
"span": {
"start": 565,
"end": 585,
"ctxt": 0
},
"object": {
"type": "OptionalChainingExpression",
"span": {
"start": 565,
"end": 578,
"ctxt": 0
},
"optional": false,
"base": {
"type": "MemberExpression",
"span": {
"start": 565,
"end": 578,
"ctxt": 0
},
"object": {
"type": "OptionalChainingExpression",
"span": {
"start": 565,
"end": 576,
"ctxt": 0
},
"optional": true,
"base": {
"type": "MemberExpression",
"span": {
"start": 565,
"end": 576,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 565,
"end": 569,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 565,
"end": 567,
"ctxt": 0
},
"value": "o6",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 568,
"end": 569,
"ctxt": 0
},
"value": "b",
"optional": false
}
},
"property": {
"type": "Computed",
"span": {
"start": 571,
"end": 576,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 572,
"end": 575,
"ctxt": 0
},
"value": "c",
"raw": "'c'"
}
}
}
},
"property": {
"type": "Identifier",
"span": {
"start": 577,
"end": 578,
"ctxt": 0
},
"value": "d",
"optional": false
}
}
},
"property": {
"type": "Computed",
"span": {
"start": 580,
"end": 585,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 581,
"end": 584,
"ctxt": 0
},
"value": "e",
"raw": "'e'"
}
}
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 587,
"end": 617,
"ctxt": 0
},
"expression": {
"type": "UnaryExpression",
"span": {
"start": 587,
"end": 616,
"ctxt": 0
},
"operator": "delete",
"argument": {
"type": "ParenthesisExpression",
"span": {
"start": 594,
"end": 616,
"ctxt": 0
},
"expression": {
"type": "OptionalChainingExpression",
"span": {
"start": 595,
"end": 615,
"ctxt": 0
},
"optional": true,
"base": {
"type": "MemberExpression",
"span": {
"start": 595,
"end": 615,
"ctxt": 0
},
"object": {
"type": "OptionalChainingExpression",
"span": {
"start": 595,
"end": 608,
"ctxt": 0
},
"optional": false,
"base": {
"type": "MemberExpression",
"span": {
"start": 595,
"end": 608,
"ctxt": 0
},
"object": {
"type": "OptionalChainingExpression",
"span": {
"start": 595,
"end": 606,
"ctxt": 0
},
"optional": true,
"base": {
"type": "MemberExpression",
"span": {
"start": 595,
"end": 606,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 595,
"end": 599,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 595,
"end": 597,
"ctxt": 0
},
"value": "o6",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 598,
"end": 599,
"ctxt": 0
},
"value": "b",
"optional": false
}
},
"property": {
"type": "Computed",
"span": {
"start": 601,
"end": 606,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 602,
"end": 605,
"ctxt": 0
},
"value": "c",
"raw": "'c'"
}
}
}
},
"property": {
"type": "Identifier",
"span": {
"start": 607,
"end": 608,
"ctxt": 0
},
"value": "d",
"optional": false
}
}
},
"property": {
"type": "Computed",
"span": {
"start": 610,
"end": 615,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 611,
"end": 614,
"ctxt": 0
},
"value": "e",
"raw": "'e'"
}
}
}
}
}
}
}
],
"interpreter": null
}