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

2909 lines
71 KiB
JSON

{
"type": "Script",
"span": {
"start": 0,
"end": 1160,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 0,
"end": 14,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 4,
"end": 13,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 4,
"end": 5,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 5,
"end": 13,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 7,
"end": 13,
"ctxt": 0
},
"kind": "number"
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 15,
"end": 21,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 15,
"end": 20,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 15,
"end": 16,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 19,
"end": 20,
"ctxt": 0
},
"value": 3.0
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 28,
"end": 36,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 28,
"end": 35,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ParenthesisExpression",
"span": {
"start": 28,
"end": 31,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 29,
"end": 30,
"ctxt": 0
},
"value": "x",
"optional": false
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 34,
"end": 35,
"ctxt": 0
},
"value": 3.0
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 43,
"end": 50,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 43,
"end": 49,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 43,
"end": 44,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "StringLiteral",
"span": {
"start": 47,
"end": 49,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 60,
"end": 69,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 60,
"end": 68,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ParenthesisExpression",
"span": {
"start": 60,
"end": 63,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 61,
"end": 62,
"ctxt": 0
},
"value": "x",
"optional": false
}
},
"right": {
"type": "StringLiteral",
"span": {
"start": 66,
"end": 68,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
},
{
"type": "TsModuleDeclaration",
"span": {
"start": 80,
"end": 118,
"ctxt": 0
},
"declare": false,
"global": false,
"id": {
"type": "Identifier",
"span": {
"start": 87,
"end": 88,
"ctxt": 0
},
"value": "M",
"optional": false
},
"body": {
"type": "TsModuleBlock",
"span": {
"start": 89,
"end": 118,
"ctxt": 0
},
"body": [
{
"type": "ExportDeclaration",
"span": {
"start": 95,
"end": 116,
"ctxt": 0
},
"declaration": {
"type": "VariableDeclaration",
"span": {
"start": 102,
"end": 116,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 106,
"end": 115,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 106,
"end": 107,
"ctxt": 0
},
"value": "y",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 107,
"end": 115,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 109,
"end": 115,
"ctxt": 0
},
"kind": "number"
}
}
},
"init": null,
"definite": false
}
]
}
}
]
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 119,
"end": 127,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 119,
"end": 126,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 119,
"end": 122,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 119,
"end": 120,
"ctxt": 0
},
"value": "M",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 121,
"end": 122,
"ctxt": 0
},
"value": "y",
"optional": false
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 125,
"end": 126,
"ctxt": 0
},
"value": 3.0
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 134,
"end": 144,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 134,
"end": 143,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 134,
"end": 139,
"ctxt": 0
},
"object": {
"type": "ParenthesisExpression",
"span": {
"start": 134,
"end": 137,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 135,
"end": 136,
"ctxt": 0
},
"value": "M",
"optional": false
}
},
"property": {
"type": "Identifier",
"span": {
"start": 138,
"end": 139,
"ctxt": 0
},
"value": "y",
"optional": false
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 142,
"end": 143,
"ctxt": 0
},
"value": 3.0
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 151,
"end": 161,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 151,
"end": 160,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ParenthesisExpression",
"span": {
"start": 151,
"end": 156,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 152,
"end": 155,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 152,
"end": 153,
"ctxt": 0
},
"value": "M",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 154,
"end": 155,
"ctxt": 0
},
"value": "y",
"optional": false
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 159,
"end": 160,
"ctxt": 0
},
"value": 3.0
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 168,
"end": 177,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 168,
"end": 176,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 168,
"end": 171,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 168,
"end": 169,
"ctxt": 0
},
"value": "M",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 170,
"end": 171,
"ctxt": 0
},
"value": "y",
"optional": false
}
},
"right": {
"type": "StringLiteral",
"span": {
"start": 174,
"end": 176,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 187,
"end": 198,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 187,
"end": 197,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 187,
"end": 192,
"ctxt": 0
},
"object": {
"type": "ParenthesisExpression",
"span": {
"start": 187,
"end": 190,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 188,
"end": 189,
"ctxt": 0
},
"value": "M",
"optional": false
}
},
"property": {
"type": "Identifier",
"span": {
"start": 191,
"end": 192,
"ctxt": 0
},
"value": "y",
"optional": false
}
},
"right": {
"type": "StringLiteral",
"span": {
"start": 195,
"end": 197,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 208,
"end": 219,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 208,
"end": 218,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ParenthesisExpression",
"span": {
"start": 208,
"end": 213,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 209,
"end": 212,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 209,
"end": 210,
"ctxt": 0
},
"value": "M",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 211,
"end": 212,
"ctxt": 0
},
"value": "y",
"optional": false
}
}
},
"right": {
"type": "StringLiteral",
"span": {
"start": 216,
"end": 218,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 230,
"end": 243,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 230,
"end": 242,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 230,
"end": 231,
"ctxt": 0
},
"value": "M",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 234,
"end": 242,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 236,
"end": 237,
"ctxt": 0
},
"value": "y",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 239,
"end": 240,
"ctxt": 0
},
"value": 3.0
}
}
]
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 253,
"end": 268,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 253,
"end": 267,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ParenthesisExpression",
"span": {
"start": 253,
"end": 256,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 254,
"end": 255,
"ctxt": 0
},
"value": "M",
"optional": false
}
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 259,
"end": 267,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 261,
"end": 262,
"ctxt": 0
},
"value": "y",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 264,
"end": 265,
"ctxt": 0
},
"value": 3.0
}
}
]
}
}
},
{
"type": "TsModuleDeclaration",
"span": {
"start": 279,
"end": 380,
"ctxt": 0
},
"declare": false,
"global": false,
"id": {
"type": "Identifier",
"span": {
"start": 286,
"end": 288,
"ctxt": 0
},
"value": "M2",
"optional": false
},
"body": {
"type": "TsModuleBlock",
"span": {
"start": 289,
"end": 380,
"ctxt": 0
},
"body": [
{
"type": "ExportDeclaration",
"span": {
"start": 295,
"end": 349,
"ctxt": 0
},
"declaration": {
"type": "TsModuleDeclaration",
"span": {
"start": 302,
"end": 349,
"ctxt": 0
},
"declare": false,
"global": false,
"id": {
"type": "Identifier",
"span": {
"start": 309,
"end": 311,
"ctxt": 0
},
"value": "M3",
"optional": false
},
"body": {
"type": "TsModuleBlock",
"span": {
"start": 312,
"end": 349,
"ctxt": 0
},
"body": [
{
"type": "ExportDeclaration",
"span": {
"start": 322,
"end": 343,
"ctxt": 0
},
"declaration": {
"type": "VariableDeclaration",
"span": {
"start": 329,
"end": 343,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 333,
"end": 342,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 333,
"end": 334,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 334,
"end": 342,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 336,
"end": 342,
"ctxt": 0
},
"kind": "number"
}
}
},
"init": null,
"definite": false
}
]
}
}
]
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 355,
"end": 369,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 355,
"end": 368,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 355,
"end": 357,
"ctxt": 0
},
"value": "M3",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 360,
"end": 368,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 362,
"end": 363,
"ctxt": 0
},
"value": "x",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 365,
"end": 366,
"ctxt": 0
},
"value": 3.0
}
}
]
}
}
}
]
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 381,
"end": 398,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 381,
"end": 397,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 381,
"end": 386,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 381,
"end": 383,
"ctxt": 0
},
"value": "M2",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 384,
"end": 386,
"ctxt": 0
},
"value": "M3",
"optional": false
}
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 389,
"end": 397,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 391,
"end": 392,
"ctxt": 0
},
"value": "x",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 394,
"end": 395,
"ctxt": 0
},
"value": 3.0
}
}
]
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 405,
"end": 424,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 405,
"end": 423,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 405,
"end": 412,
"ctxt": 0
},
"object": {
"type": "ParenthesisExpression",
"span": {
"start": 405,
"end": 409,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 406,
"end": 408,
"ctxt": 0
},
"value": "M2",
"optional": false
}
},
"property": {
"type": "Identifier",
"span": {
"start": 410,
"end": 412,
"ctxt": 0
},
"value": "M3",
"optional": false
}
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 415,
"end": 423,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 417,
"end": 418,
"ctxt": 0
},
"value": "x",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 420,
"end": 421,
"ctxt": 0
},
"value": 3.0
}
}
]
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 431,
"end": 450,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 431,
"end": 449,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ParenthesisExpression",
"span": {
"start": 431,
"end": 438,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 432,
"end": 437,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 432,
"end": 434,
"ctxt": 0
},
"value": "M2",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 435,
"end": 437,
"ctxt": 0
},
"value": "M3",
"optional": false
}
}
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 441,
"end": 449,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 443,
"end": 444,
"ctxt": 0
},
"value": "x",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 446,
"end": 447,
"ctxt": 0
},
"value": 3.0
}
}
]
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 458,
"end": 476,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 458,
"end": 475,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 458,
"end": 463,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 458,
"end": 460,
"ctxt": 0
},
"value": "M2",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 461,
"end": 463,
"ctxt": 0
},
"value": "M3",
"optional": false
}
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 466,
"end": 475,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 468,
"end": 469,
"ctxt": 0
},
"value": "x",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 471,
"end": 473,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
]
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 486,
"end": 506,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 486,
"end": 505,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 486,
"end": 493,
"ctxt": 0
},
"object": {
"type": "ParenthesisExpression",
"span": {
"start": 486,
"end": 490,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 487,
"end": 489,
"ctxt": 0
},
"value": "M2",
"optional": false
}
},
"property": {
"type": "Identifier",
"span": {
"start": 491,
"end": 493,
"ctxt": 0
},
"value": "M3",
"optional": false
}
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 496,
"end": 505,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 498,
"end": 499,
"ctxt": 0
},
"value": "x",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 501,
"end": 503,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
]
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 516,
"end": 536,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 516,
"end": 535,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ParenthesisExpression",
"span": {
"start": 516,
"end": 523,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 517,
"end": 522,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 517,
"end": 519,
"ctxt": 0
},
"value": "M2",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 520,
"end": 522,
"ctxt": 0
},
"value": "M3",
"optional": false
}
}
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 526,
"end": 535,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 528,
"end": 529,
"ctxt": 0
},
"value": "x",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 531,
"end": 533,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
]
}
}
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 557,
"end": 559,
"ctxt": 0
},
"value": "fn",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 548,
"end": 565,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 562,
"end": 565,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "ExpressionStatement",
"span": {
"start": 566,
"end": 579,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 566,
"end": 578,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 566,
"end": 568,
"ctxt": 0
},
"value": "fn",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrowFunctionExpression",
"span": {
"start": 571,
"end": 578,
"ctxt": 0
},
"params": [],
"body": {
"type": "NumericLiteral",
"span": {
"start": 577,
"end": 578,
"ctxt": 0
},
"value": 3.0
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 635,
"end": 650,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 635,
"end": 649,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ParenthesisExpression",
"span": {
"start": 635,
"end": 639,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 636,
"end": 638,
"ctxt": 0
},
"value": "fn",
"optional": false
}
},
"right": {
"type": "ArrowFunctionExpression",
"span": {
"start": 642,
"end": 649,
"ctxt": 0
},
"params": [],
"body": {
"type": "NumericLiteral",
"span": {
"start": 648,
"end": 649,
"ctxt": 0
},
"value": 3.0
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
}
}
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 680,
"end": 683,
"ctxt": 0
},
"value": "fn2",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 684,
"end": 693,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 684,
"end": 693,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 685,
"end": 693,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 687,
"end": 693,
"ctxt": 0
},
"kind": "number"
}
}
}
},
{
"type": "Parameter",
"span": {
"start": 695,
"end": 711,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 695,
"end": 711,
"ctxt": 0
},
"value": "y",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 696,
"end": 711,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 698,
"end": 711,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 700,
"end": 709,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 700,
"end": 701,
"ctxt": 0
},
"value": "t",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 701,
"end": 709,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 703,
"end": 709,
"ctxt": 0
},
"kind": "number"
}
},
"typeParams": null
}
]
}
}
}
}
],
"decorators": [],
"span": {
"start": 671,
"end": 1036,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 713,
"end": 1036,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 719,
"end": 725,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 719,
"end": 724,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 719,
"end": 720,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 723,
"end": 724,
"ctxt": 0
},
"value": 3.0
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 730,
"end": 738,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 730,
"end": 737,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ParenthesisExpression",
"span": {
"start": 730,
"end": 733,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 731,
"end": 732,
"ctxt": 0
},
"value": "x",
"optional": false
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 736,
"end": 737,
"ctxt": 0
},
"value": 3.0
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 749,
"end": 756,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 749,
"end": 755,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 749,
"end": 750,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "StringLiteral",
"span": {
"start": 753,
"end": 755,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 770,
"end": 779,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 770,
"end": 778,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ParenthesisExpression",
"span": {
"start": 770,
"end": 773,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 771,
"end": 772,
"ctxt": 0
},
"value": "x",
"optional": false
}
},
"right": {
"type": "StringLiteral",
"span": {
"start": 776,
"end": 778,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 794,
"end": 804,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 794,
"end": 803,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 794,
"end": 799,
"ctxt": 0
},
"object": {
"type": "ParenthesisExpression",
"span": {
"start": 794,
"end": 797,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 795,
"end": 796,
"ctxt": 0
},
"value": "y",
"optional": false
}
},
"property": {
"type": "Identifier",
"span": {
"start": 798,
"end": 799,
"ctxt": 0
},
"value": "t",
"optional": false
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 802,
"end": 803,
"ctxt": 0
},
"value": 3.0
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 815,
"end": 825,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 815,
"end": 824,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ParenthesisExpression",
"span": {
"start": 815,
"end": 820,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 816,
"end": 819,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 816,
"end": 817,
"ctxt": 0
},
"value": "y",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 818,
"end": 819,
"ctxt": 0
},
"value": "t",
"optional": false
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 823,
"end": 824,
"ctxt": 0
},
"value": 3.0
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 836,
"end": 847,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 836,
"end": 846,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 836,
"end": 841,
"ctxt": 0
},
"object": {
"type": "ParenthesisExpression",
"span": {
"start": 836,
"end": 839,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 837,
"end": 838,
"ctxt": 0
},
"value": "y",
"optional": false
}
},
"property": {
"type": "Identifier",
"span": {
"start": 840,
"end": 841,
"ctxt": 0
},
"value": "t",
"optional": false
}
},
"right": {
"type": "StringLiteral",
"span": {
"start": 844,
"end": 846,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 861,
"end": 872,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 861,
"end": 871,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ParenthesisExpression",
"span": {
"start": 861,
"end": 866,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 862,
"end": 865,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 862,
"end": 863,
"ctxt": 0
},
"value": "y",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 864,
"end": 865,
"ctxt": 0
},
"value": "t",
"optional": false
}
}
},
"right": {
"type": "StringLiteral",
"span": {
"start": 869,
"end": 871,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 887,
"end": 898,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 887,
"end": 897,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 887,
"end": 893,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 887,
"end": 888,
"ctxt": 0
},
"value": "y",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 888,
"end": 893,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 889,
"end": 892,
"ctxt": 0
},
"value": "t",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 896,
"end": 897,
"ctxt": 0
},
"value": 3.0
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 909,
"end": 922,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 909,
"end": 921,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 909,
"end": 917,
"ctxt": 0
},
"object": {
"type": "ParenthesisExpression",
"span": {
"start": 909,
"end": 912,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 910,
"end": 911,
"ctxt": 0
},
"value": "y",
"optional": false
}
},
"property": {
"type": "Computed",
"span": {
"start": 912,
"end": 917,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 913,
"end": 916,
"ctxt": 0
},
"value": "t",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 920,
"end": 921,
"ctxt": 0
},
"value": 3.0
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 933,
"end": 946,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 933,
"end": 945,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ParenthesisExpression",
"span": {
"start": 933,
"end": 941,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 934,
"end": 940,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 934,
"end": 935,
"ctxt": 0
},
"value": "y",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 935,
"end": 940,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 936,
"end": 939,
"ctxt": 0
},
"value": "t",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 944,
"end": 945,
"ctxt": 0
},
"value": 3.0
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 957,
"end": 969,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 957,
"end": 968,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 957,
"end": 963,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 957,
"end": 958,
"ctxt": 0
},
"value": "y",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 958,
"end": 963,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 959,
"end": 962,
"ctxt": 0
},
"value": "t",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
},
"right": {
"type": "StringLiteral",
"span": {
"start": 966,
"end": 968,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 983,
"end": 997,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 983,
"end": 996,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 983,
"end": 991,
"ctxt": 0
},
"object": {
"type": "ParenthesisExpression",
"span": {
"start": 983,
"end": 986,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 984,
"end": 985,
"ctxt": 0
},
"value": "y",
"optional": false
}
},
"property": {
"type": "Computed",
"span": {
"start": 986,
"end": 991,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 987,
"end": 990,
"ctxt": 0
},
"value": "t",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
},
"right": {
"type": "StringLiteral",
"span": {
"start": 994,
"end": 996,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1011,
"end": 1025,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1011,
"end": 1024,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ParenthesisExpression",
"span": {
"start": 1011,
"end": 1019,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 1012,
"end": 1018,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1012,
"end": 1013,
"ctxt": 0
},
"value": "y",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 1013,
"end": 1018,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 1014,
"end": 1017,
"ctxt": 0
},
"value": "t",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
}
},
"right": {
"type": "StringLiteral",
"span": {
"start": 1022,
"end": 1024,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "TsEnumDeclaration",
"span": {
"start": 1038,
"end": 1054,
"ctxt": 0
},
"declare": false,
"isConst": false,
"id": {
"type": "Identifier",
"span": {
"start": 1043,
"end": 1044,
"ctxt": 0
},
"value": "E",
"optional": false
},
"members": [
{
"type": "TsEnumMember",
"span": {
"start": 1051,
"end": 1052,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1051,
"end": 1052,
"ctxt": 0
},
"value": "A",
"optional": false
},
"init": null
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 1055,
"end": 1069,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1055,
"end": 1068,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 1055,
"end": 1056,
"ctxt": 0
},
"value": "E",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "Identifier",
"span": {
"start": 1059,
"end": 1068,
"ctxt": 0
},
"value": "undefined",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1079,
"end": 1095,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1079,
"end": 1094,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ParenthesisExpression",
"span": {
"start": 1079,
"end": 1082,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1080,
"end": 1081,
"ctxt": 0
},
"value": "E",
"optional": false
}
},
"right": {
"type": "Identifier",
"span": {
"start": 1085,
"end": 1094,
"ctxt": 0
},
"value": "undefined",
"optional": false
}
}
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 1112,
"end": 1113,
"ctxt": 0
},
"value": "C",
"optional": false
},
"declare": false,
"span": {
"start": 1106,
"end": 1118,
"ctxt": 0
},
"decorators": [],
"body": [],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "ExpressionStatement",
"span": {
"start": 1120,
"end": 1134,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1120,
"end": 1133,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 1120,
"end": 1121,
"ctxt": 0
},
"value": "C",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "Identifier",
"span": {
"start": 1124,
"end": 1133,
"ctxt": 0
},
"value": "undefined",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1144,
"end": 1160,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1144,
"end": 1159,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ParenthesisExpression",
"span": {
"start": 1144,
"end": 1147,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1145,
"end": 1146,
"ctxt": 0
},
"value": "C",
"optional": false
}
},
"right": {
"type": "Identifier",
"span": {
"start": 1150,
"end": 1159,
"ctxt": 0
},
"value": "undefined",
"optional": false
}
}
}
],
"interpreter": null
}