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

2845 lines
69 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 1,
"end": 1161,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 1,
"end": 15,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 5,
"end": 14,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 5,
"end": 6,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 6,
"end": 14,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 8,
"end": 14,
"ctxt": 0
},
"kind": "number"
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 16,
"end": 22,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 16,
"end": 21,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 16,
"end": 17,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 20,
"end": 21,
"ctxt": 0
},
"value": 3.0,
"raw": "3"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 29,
"end": 37,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 29,
"end": 36,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ParenthesisExpression",
"span": {
"start": 29,
"end": 32,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 30,
"end": 31,
"ctxt": 0
},
"value": "x",
"optional": false
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 35,
"end": 36,
"ctxt": 0
},
"value": 3.0,
"raw": "3"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 44,
"end": 51,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 44,
"end": 50,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 44,
"end": 45,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "StringLiteral",
"span": {
"start": 48,
"end": 50,
"ctxt": 0
},
"value": "",
"raw": "''"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 61,
"end": 70,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 61,
"end": 69,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ParenthesisExpression",
"span": {
"start": 61,
"end": 64,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 62,
"end": 63,
"ctxt": 0
},
"value": "x",
"optional": false
}
},
"right": {
"type": "StringLiteral",
"span": {
"start": 67,
"end": 69,
"ctxt": 0
},
"value": "",
"raw": "''"
}
}
},
{
"type": "TsModuleDeclaration",
"span": {
"start": 81,
"end": 119,
"ctxt": 0
},
"declare": false,
"global": false,
"id": {
"type": "Identifier",
"span": {
"start": 88,
"end": 89,
"ctxt": 0
},
"value": "M",
"optional": false
},
"body": {
"type": "TsModuleBlock",
"span": {
"start": 90,
"end": 119,
"ctxt": 0
},
"body": [
{
"type": "ExportDeclaration",
"span": {
"start": 96,
"end": 117,
"ctxt": 0
},
"declaration": {
"type": "VariableDeclaration",
"span": {
"start": 103,
"end": 117,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 107,
"end": 116,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 107,
"end": 108,
"ctxt": 0
},
"value": "y",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 108,
"end": 116,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 110,
"end": 116,
"ctxt": 0
},
"kind": "number"
}
}
},
"init": null,
"definite": false
}
]
}
}
]
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 120,
"end": 128,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 120,
"end": 127,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 120,
"end": 123,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 120,
"end": 121,
"ctxt": 0
},
"value": "M",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 122,
"end": 123,
"ctxt": 0
},
"value": "y",
"optional": false
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 126,
"end": 127,
"ctxt": 0
},
"value": 3.0,
"raw": "3"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 135,
"end": 145,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 135,
"end": 144,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 135,
"end": 140,
"ctxt": 0
},
"object": {
"type": "ParenthesisExpression",
"span": {
"start": 135,
"end": 138,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 136,
"end": 137,
"ctxt": 0
},
"value": "M",
"optional": false
}
},
"property": {
"type": "Identifier",
"span": {
"start": 139,
"end": 140,
"ctxt": 0
},
"value": "y",
"optional": false
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 143,
"end": 144,
"ctxt": 0
},
"value": 3.0,
"raw": "3"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 152,
"end": 162,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 152,
"end": 161,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ParenthesisExpression",
"span": {
"start": 152,
"end": 157,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 153,
"end": 156,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 153,
"end": 154,
"ctxt": 0
},
"value": "M",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 155,
"end": 156,
"ctxt": 0
},
"value": "y",
"optional": false
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 160,
"end": 161,
"ctxt": 0
},
"value": 3.0,
"raw": "3"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 169,
"end": 178,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 169,
"end": 177,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 169,
"end": 172,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 169,
"end": 170,
"ctxt": 0
},
"value": "M",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 171,
"end": 172,
"ctxt": 0
},
"value": "y",
"optional": false
}
},
"right": {
"type": "StringLiteral",
"span": {
"start": 175,
"end": 177,
"ctxt": 0
},
"value": "",
"raw": "''"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 188,
"end": 199,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 188,
"end": 198,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 188,
"end": 193,
"ctxt": 0
},
"object": {
"type": "ParenthesisExpression",
"span": {
"start": 188,
"end": 191,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 189,
"end": 190,
"ctxt": 0
},
"value": "M",
"optional": false
}
},
"property": {
"type": "Identifier",
"span": {
"start": 192,
"end": 193,
"ctxt": 0
},
"value": "y",
"optional": false
}
},
"right": {
"type": "StringLiteral",
"span": {
"start": 196,
"end": 198,
"ctxt": 0
},
"value": "",
"raw": "''"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 209,
"end": 220,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 209,
"end": 219,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ParenthesisExpression",
"span": {
"start": 209,
"end": 214,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 210,
"end": 213,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 210,
"end": 211,
"ctxt": 0
},
"value": "M",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 212,
"end": 213,
"ctxt": 0
},
"value": "y",
"optional": false
}
}
},
"right": {
"type": "StringLiteral",
"span": {
"start": 217,
"end": 219,
"ctxt": 0
},
"value": "",
"raw": "''"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 231,
"end": 244,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 231,
"end": 243,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 231,
"end": 232,
"ctxt": 0
},
"value": "M",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 235,
"end": 243,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 237,
"end": 238,
"ctxt": 0
},
"value": "y",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 240,
"end": 241,
"ctxt": 0
},
"value": 3.0,
"raw": "3"
}
}
]
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 254,
"end": 269,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 254,
"end": 268,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ParenthesisExpression",
"span": {
"start": 254,
"end": 257,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 255,
"end": 256,
"ctxt": 0
},
"value": "M",
"optional": false
}
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 260,
"end": 268,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 262,
"end": 263,
"ctxt": 0
},
"value": "y",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 265,
"end": 266,
"ctxt": 0
},
"value": 3.0,
"raw": "3"
}
}
]
}
}
},
{
"type": "TsModuleDeclaration",
"span": {
"start": 280,
"end": 381,
"ctxt": 0
},
"declare": false,
"global": false,
"id": {
"type": "Identifier",
"span": {
"start": 287,
"end": 289,
"ctxt": 0
},
"value": "M2",
"optional": false
},
"body": {
"type": "TsModuleBlock",
"span": {
"start": 290,
"end": 381,
"ctxt": 0
},
"body": [
{
"type": "ExportDeclaration",
"span": {
"start": 296,
"end": 350,
"ctxt": 0
},
"declaration": {
"type": "TsModuleDeclaration",
"span": {
"start": 303,
"end": 350,
"ctxt": 0
},
"declare": false,
"global": false,
"id": {
"type": "Identifier",
"span": {
"start": 310,
"end": 312,
"ctxt": 0
},
"value": "M3",
"optional": false
},
"body": {
"type": "TsModuleBlock",
"span": {
"start": 313,
"end": 350,
"ctxt": 0
},
"body": [
{
"type": "ExportDeclaration",
"span": {
"start": 323,
"end": 344,
"ctxt": 0
},
"declaration": {
"type": "VariableDeclaration",
"span": {
"start": 330,
"end": 344,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 334,
"end": 343,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 334,
"end": 335,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 335,
"end": 343,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 337,
"end": 343,
"ctxt": 0
},
"kind": "number"
}
}
},
"init": null,
"definite": false
}
]
}
}
]
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 356,
"end": 370,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 356,
"end": 369,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 356,
"end": 358,
"ctxt": 0
},
"value": "M3",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 361,
"end": 369,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 363,
"end": 364,
"ctxt": 0
},
"value": "x",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 366,
"end": 367,
"ctxt": 0
},
"value": 3.0,
"raw": "3"
}
}
]
}
}
}
]
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 382,
"end": 399,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 382,
"end": 398,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 382,
"end": 387,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 382,
"end": 384,
"ctxt": 0
},
"value": "M2",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 385,
"end": 387,
"ctxt": 0
},
"value": "M3",
"optional": false
}
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 390,
"end": 398,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 392,
"end": 393,
"ctxt": 0
},
"value": "x",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 395,
"end": 396,
"ctxt": 0
},
"value": 3.0,
"raw": "3"
}
}
]
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 406,
"end": 425,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 406,
"end": 424,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 406,
"end": 413,
"ctxt": 0
},
"object": {
"type": "ParenthesisExpression",
"span": {
"start": 406,
"end": 410,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 407,
"end": 409,
"ctxt": 0
},
"value": "M2",
"optional": false
}
},
"property": {
"type": "Identifier",
"span": {
"start": 411,
"end": 413,
"ctxt": 0
},
"value": "M3",
"optional": false
}
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 416,
"end": 424,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 418,
"end": 419,
"ctxt": 0
},
"value": "x",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 421,
"end": 422,
"ctxt": 0
},
"value": 3.0,
"raw": "3"
}
}
]
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 432,
"end": 451,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 432,
"end": 450,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ParenthesisExpression",
"span": {
"start": 432,
"end": 439,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 433,
"end": 438,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 433,
"end": 435,
"ctxt": 0
},
"value": "M2",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 436,
"end": 438,
"ctxt": 0
},
"value": "M3",
"optional": false
}
}
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 442,
"end": 450,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 444,
"end": 445,
"ctxt": 0
},
"value": "x",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 447,
"end": 448,
"ctxt": 0
},
"value": 3.0,
"raw": "3"
}
}
]
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 459,
"end": 477,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 459,
"end": 476,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 459,
"end": 464,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 459,
"end": 461,
"ctxt": 0
},
"value": "M2",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 462,
"end": 464,
"ctxt": 0
},
"value": "M3",
"optional": false
}
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 467,
"end": 476,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 469,
"end": 470,
"ctxt": 0
},
"value": "x",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 472,
"end": 474,
"ctxt": 0
},
"value": "",
"raw": "''"
}
}
]
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 487,
"end": 507,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 487,
"end": 506,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 487,
"end": 494,
"ctxt": 0
},
"object": {
"type": "ParenthesisExpression",
"span": {
"start": 487,
"end": 491,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 488,
"end": 490,
"ctxt": 0
},
"value": "M2",
"optional": false
}
},
"property": {
"type": "Identifier",
"span": {
"start": 492,
"end": 494,
"ctxt": 0
},
"value": "M3",
"optional": false
}
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 497,
"end": 506,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 499,
"end": 500,
"ctxt": 0
},
"value": "x",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 502,
"end": 504,
"ctxt": 0
},
"value": "",
"raw": "''"
}
}
]
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 517,
"end": 537,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 517,
"end": 536,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ParenthesisExpression",
"span": {
"start": 517,
"end": 524,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 518,
"end": 523,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 518,
"end": 520,
"ctxt": 0
},
"value": "M2",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 521,
"end": 523,
"ctxt": 0
},
"value": "M3",
"optional": false
}
}
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 527,
"end": 536,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 529,
"end": 530,
"ctxt": 0
},
"value": "x",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 532,
"end": 534,
"ctxt": 0
},
"value": "",
"raw": "''"
}
}
]
}
}
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 558,
"end": 560,
"ctxt": 0
},
"value": "fn",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 549,
"end": 566,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 563,
"end": 566,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "ExpressionStatement",
"span": {
"start": 567,
"end": 580,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 567,
"end": 579,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 567,
"end": 569,
"ctxt": 0
},
"value": "fn",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrowFunctionExpression",
"span": {
"start": 572,
"end": 579,
"ctxt": 0
},
"params": [],
"body": {
"type": "NumericLiteral",
"span": {
"start": 578,
"end": 579,
"ctxt": 0
},
"value": 3.0,
"raw": "3"
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 636,
"end": 651,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 636,
"end": 650,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ParenthesisExpression",
"span": {
"start": 636,
"end": 640,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 637,
"end": 639,
"ctxt": 0
},
"value": "fn",
"optional": false
}
},
"right": {
"type": "ArrowFunctionExpression",
"span": {
"start": 643,
"end": 650,
"ctxt": 0
},
"params": [],
"body": {
"type": "NumericLiteral",
"span": {
"start": 649,
"end": 650,
"ctxt": 0
},
"value": 3.0,
"raw": "3"
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
}
}
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 681,
"end": 684,
"ctxt": 0
},
"value": "fn2",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 685,
"end": 694,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 685,
"end": 694,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 686,
"end": 694,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 688,
"end": 694,
"ctxt": 0
},
"kind": "number"
}
}
}
},
{
"type": "Parameter",
"span": {
"start": 696,
"end": 712,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 696,
"end": 712,
"ctxt": 0
},
"value": "y",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 697,
"end": 712,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 699,
"end": 712,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 701,
"end": 710,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 701,
"end": 702,
"ctxt": 0
},
"value": "t",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 702,
"end": 710,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 704,
"end": 710,
"ctxt": 0
},
"kind": "number"
}
},
"typeParams": null
}
]
}
}
}
}
],
"decorators": [],
"span": {
"start": 672,
"end": 1037,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 714,
"end": 1037,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 720,
"end": 726,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 720,
"end": 725,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 720,
"end": 721,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 724,
"end": 725,
"ctxt": 0
},
"value": 3.0,
"raw": "3"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 731,
"end": 739,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 731,
"end": 738,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ParenthesisExpression",
"span": {
"start": 731,
"end": 734,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 732,
"end": 733,
"ctxt": 0
},
"value": "x",
"optional": false
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 737,
"end": 738,
"ctxt": 0
},
"value": 3.0,
"raw": "3"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 750,
"end": 757,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 750,
"end": 756,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 750,
"end": 751,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "StringLiteral",
"span": {
"start": 754,
"end": 756,
"ctxt": 0
},
"value": "",
"raw": "''"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 771,
"end": 780,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 771,
"end": 779,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ParenthesisExpression",
"span": {
"start": 771,
"end": 774,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 772,
"end": 773,
"ctxt": 0
},
"value": "x",
"optional": false
}
},
"right": {
"type": "StringLiteral",
"span": {
"start": 777,
"end": 779,
"ctxt": 0
},
"value": "",
"raw": "''"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 795,
"end": 805,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 795,
"end": 804,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 795,
"end": 800,
"ctxt": 0
},
"object": {
"type": "ParenthesisExpression",
"span": {
"start": 795,
"end": 798,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 796,
"end": 797,
"ctxt": 0
},
"value": "y",
"optional": false
}
},
"property": {
"type": "Identifier",
"span": {
"start": 799,
"end": 800,
"ctxt": 0
},
"value": "t",
"optional": false
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 803,
"end": 804,
"ctxt": 0
},
"value": 3.0,
"raw": "3"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 816,
"end": 826,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 816,
"end": 825,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ParenthesisExpression",
"span": {
"start": 816,
"end": 821,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 817,
"end": 820,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 817,
"end": 818,
"ctxt": 0
},
"value": "y",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 819,
"end": 820,
"ctxt": 0
},
"value": "t",
"optional": false
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 824,
"end": 825,
"ctxt": 0
},
"value": 3.0,
"raw": "3"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 837,
"end": 848,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 837,
"end": 847,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 837,
"end": 842,
"ctxt": 0
},
"object": {
"type": "ParenthesisExpression",
"span": {
"start": 837,
"end": 840,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 838,
"end": 839,
"ctxt": 0
},
"value": "y",
"optional": false
}
},
"property": {
"type": "Identifier",
"span": {
"start": 841,
"end": 842,
"ctxt": 0
},
"value": "t",
"optional": false
}
},
"right": {
"type": "StringLiteral",
"span": {
"start": 845,
"end": 847,
"ctxt": 0
},
"value": "",
"raw": "''"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 862,
"end": 873,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 862,
"end": 872,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ParenthesisExpression",
"span": {
"start": 862,
"end": 867,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 863,
"end": 866,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 863,
"end": 864,
"ctxt": 0
},
"value": "y",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 865,
"end": 866,
"ctxt": 0
},
"value": "t",
"optional": false
}
}
},
"right": {
"type": "StringLiteral",
"span": {
"start": 870,
"end": 872,
"ctxt": 0
},
"value": "",
"raw": "''"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 888,
"end": 899,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 888,
"end": 898,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 888,
"end": 894,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 888,
"end": 889,
"ctxt": 0
},
"value": "y",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 889,
"end": 894,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 890,
"end": 893,
"ctxt": 0
},
"value": "t",
"raw": "'t'"
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 897,
"end": 898,
"ctxt": 0
},
"value": 3.0,
"raw": "3"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 910,
"end": 923,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 910,
"end": 922,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 910,
"end": 918,
"ctxt": 0
},
"object": {
"type": "ParenthesisExpression",
"span": {
"start": 910,
"end": 913,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 911,
"end": 912,
"ctxt": 0
},
"value": "y",
"optional": false
}
},
"property": {
"type": "Computed",
"span": {
"start": 913,
"end": 918,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 914,
"end": 917,
"ctxt": 0
},
"value": "t",
"raw": "'t'"
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 921,
"end": 922,
"ctxt": 0
},
"value": 3.0,
"raw": "3"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 934,
"end": 947,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 934,
"end": 946,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ParenthesisExpression",
"span": {
"start": 934,
"end": 942,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 935,
"end": 941,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 935,
"end": 936,
"ctxt": 0
},
"value": "y",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 936,
"end": 941,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 937,
"end": 940,
"ctxt": 0
},
"value": "t",
"raw": "'t'"
}
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 945,
"end": 946,
"ctxt": 0
},
"value": 3.0,
"raw": "3"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 958,
"end": 970,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 958,
"end": 969,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 958,
"end": 964,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 958,
"end": 959,
"ctxt": 0
},
"value": "y",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 959,
"end": 964,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 960,
"end": 963,
"ctxt": 0
},
"value": "t",
"raw": "'t'"
}
}
},
"right": {
"type": "StringLiteral",
"span": {
"start": 967,
"end": 969,
"ctxt": 0
},
"value": "",
"raw": "''"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 984,
"end": 998,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 984,
"end": 997,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 984,
"end": 992,
"ctxt": 0
},
"object": {
"type": "ParenthesisExpression",
"span": {
"start": 984,
"end": 987,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 985,
"end": 986,
"ctxt": 0
},
"value": "y",
"optional": false
}
},
"property": {
"type": "Computed",
"span": {
"start": 987,
"end": 992,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 988,
"end": 991,
"ctxt": 0
},
"value": "t",
"raw": "'t'"
}
}
},
"right": {
"type": "StringLiteral",
"span": {
"start": 995,
"end": 997,
"ctxt": 0
},
"value": "",
"raw": "''"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1012,
"end": 1026,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1012,
"end": 1025,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ParenthesisExpression",
"span": {
"start": 1012,
"end": 1020,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 1013,
"end": 1019,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1013,
"end": 1014,
"ctxt": 0
},
"value": "y",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 1014,
"end": 1019,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 1015,
"end": 1018,
"ctxt": 0
},
"value": "t",
"raw": "'t'"
}
}
}
},
"right": {
"type": "StringLiteral",
"span": {
"start": 1023,
"end": 1025,
"ctxt": 0
},
"value": "",
"raw": "''"
}
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "TsEnumDeclaration",
"span": {
"start": 1039,
"end": 1055,
"ctxt": 0
},
"declare": false,
"isConst": false,
"id": {
"type": "Identifier",
"span": {
"start": 1044,
"end": 1045,
"ctxt": 0
},
"value": "E",
"optional": false
},
"members": [
{
"type": "TsEnumMember",
"span": {
"start": 1052,
"end": 1053,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1052,
"end": 1053,
"ctxt": 0
},
"value": "A",
"optional": false
},
"init": null
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 1056,
"end": 1070,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1056,
"end": 1069,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 1056,
"end": 1057,
"ctxt": 0
},
"value": "E",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "Identifier",
"span": {
"start": 1060,
"end": 1069,
"ctxt": 0
},
"value": "undefined",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1080,
"end": 1096,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1080,
"end": 1095,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ParenthesisExpression",
"span": {
"start": 1080,
"end": 1083,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1081,
"end": 1082,
"ctxt": 0
},
"value": "E",
"optional": false
}
},
"right": {
"type": "Identifier",
"span": {
"start": 1086,
"end": 1095,
"ctxt": 0
},
"value": "undefined",
"optional": false
}
}
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 1113,
"end": 1114,
"ctxt": 0
},
"value": "C",
"optional": false
},
"declare": false,
"span": {
"start": 1107,
"end": 1119,
"ctxt": 0
},
"decorators": [],
"body": [],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "ExpressionStatement",
"span": {
"start": 1121,
"end": 1135,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1121,
"end": 1134,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 1121,
"end": 1122,
"ctxt": 0
},
"value": "C",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "Identifier",
"span": {
"start": 1125,
"end": 1134,
"ctxt": 0
},
"value": "undefined",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1145,
"end": 1161,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1145,
"end": 1160,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ParenthesisExpression",
"span": {
"start": 1145,
"end": 1148,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1146,
"end": 1147,
"ctxt": 0
},
"value": "C",
"optional": false
}
},
"right": {
"type": "Identifier",
"span": {
"start": 1151,
"end": 1160,
"ctxt": 0
},
"value": "undefined",
"optional": false
}
}
}
],
"interpreter": null
}