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

4513 lines
119 KiB
JSON

{
"type": "Script",
"span": {
"start": 122,
"end": 4790,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 122,
"end": 155,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 126,
"end": 154,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 126,
"end": 127,
"ctxt": 0
},
"value": "v",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 127,
"end": 133,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 129,
"end": 133,
"ctxt": 0
},
"kind": "void"
}
}
},
"init": {
"type": "CallExpression",
"span": {
"start": 136,
"end": 154,
"ctxt": 0
},
"callee": {
"type": "FunctionExpression",
"identifier": null,
"params": [],
"decorators": [],
"span": {
"start": 136,
"end": 151,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 148,
"end": 151,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"arguments": [],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 262,
"end": 306,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 266,
"end": 305,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 266,
"end": 267,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 267,
"end": 272,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 269,
"end": 272,
"ctxt": 0
},
"kind": "any"
}
}
},
"init": {
"type": "FunctionExpression",
"identifier": {
"type": "Identifier",
"span": {
"start": 284,
"end": 285,
"ctxt": 0
},
"value": "f",
"optional": false
},
"params": [],
"decorators": [],
"span": {
"start": 275,
"end": 305,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 288,
"end": 305,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 294,
"end": 303,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 301,
"end": 302,
"ctxt": 0
},
"value": "f",
"optional": false
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 307,
"end": 353,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 311,
"end": 352,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 311,
"end": 312,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 312,
"end": 317,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 314,
"end": 317,
"ctxt": 0
},
"kind": "any"
}
}
},
"init": {
"type": "FunctionExpression",
"identifier": {
"type": "Identifier",
"span": {
"start": 329,
"end": 330,
"ctxt": 0
},
"value": "f",
"optional": false
},
"params": [],
"decorators": [],
"span": {
"start": 320,
"end": 352,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 333,
"end": 352,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 339,
"end": 350,
"ctxt": 0
},
"argument": {
"type": "CallExpression",
"span": {
"start": 346,
"end": 349,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 346,
"end": 347,
"ctxt": 0
},
"value": "f",
"optional": false
},
"arguments": [],
"typeArguments": null
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 462,
"end": 521,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 466,
"end": 520,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 466,
"end": 467,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 467,
"end": 472,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 469,
"end": 472,
"ctxt": 0
},
"kind": "any"
}
}
},
"init": {
"type": "FunctionExpression",
"identifier": {
"type": "Identifier",
"span": {
"start": 484,
"end": 485,
"ctxt": 0
},
"value": "f",
"optional": false
},
"params": [],
"decorators": [],
"span": {
"start": 475,
"end": 520,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 488,
"end": 520,
"ctxt": 0
},
"stmts": [
{
"type": "VariableDeclaration",
"span": {
"start": 494,
"end": 504,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 498,
"end": 503,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 498,
"end": 499,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "Identifier",
"span": {
"start": 502,
"end": 503,
"ctxt": 0
},
"value": "f",
"optional": false
},
"definite": false
}
]
},
{
"type": "ReturnStatement",
"span": {
"start": 509,
"end": 518,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 516,
"end": 517,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"definite": false
}
]
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 615,
"end": 619,
"ctxt": 0
},
"value": "rec1",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 606,
"end": 644,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 622,
"end": 644,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 628,
"end": 642,
"ctxt": 0
},
"argument": {
"type": "CallExpression",
"span": {
"start": 635,
"end": 641,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 635,
"end": 639,
"ctxt": 0
},
"value": "rec2",
"optional": false
},
"arguments": [],
"typeArguments": null
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 654,
"end": 658,
"ctxt": 0
},
"value": "rec2",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 645,
"end": 683,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 661,
"end": 683,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 667,
"end": 681,
"ctxt": 0
},
"argument": {
"type": "CallExpression",
"span": {
"start": 674,
"end": 680,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 674,
"end": 678,
"ctxt": 0
},
"value": "rec1",
"optional": false
},
"arguments": [],
"typeArguments": null
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "VariableDeclaration",
"span": {
"start": 684,
"end": 699,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 688,
"end": 698,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 688,
"end": 689,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "CallExpression",
"span": {
"start": 692,
"end": 698,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 692,
"end": 696,
"ctxt": 0
},
"value": "rec1",
"optional": false
},
"arguments": [],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 700,
"end": 715,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 704,
"end": 714,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 704,
"end": 705,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "CallExpression",
"span": {
"start": 708,
"end": 714,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 708,
"end": 712,
"ctxt": 0
},
"value": "rec2",
"optional": false
},
"arguments": [],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 812,
"end": 816,
"ctxt": 0
},
"value": "rec3",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 803,
"end": 849,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 827,
"end": 849,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 833,
"end": 847,
"ctxt": 0
},
"argument": {
"type": "CallExpression",
"span": {
"start": 840,
"end": 846,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 840,
"end": 844,
"ctxt": 0
},
"value": "rec4",
"optional": false
},
"arguments": [],
"typeArguments": null
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 818,
"end": 826,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 820,
"end": 826,
"ctxt": 0
},
"kind": "number"
}
}
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 859,
"end": 863,
"ctxt": 0
},
"value": "rec4",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 850,
"end": 888,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 866,
"end": 888,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 872,
"end": 886,
"ctxt": 0
},
"argument": {
"type": "CallExpression",
"span": {
"start": 879,
"end": 885,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 879,
"end": 883,
"ctxt": 0
},
"value": "rec3",
"optional": false
},
"arguments": [],
"typeArguments": null
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "VariableDeclaration",
"span": {
"start": 889,
"end": 903,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 893,
"end": 902,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 893,
"end": 894,
"ctxt": 0
},
"value": "n",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 894,
"end": 902,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 896,
"end": 902,
"ctxt": 0
},
"kind": "number"
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 904,
"end": 919,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 908,
"end": 918,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 908,
"end": 909,
"ctxt": 0
},
"value": "n",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "CallExpression",
"span": {
"start": 912,
"end": 918,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 912,
"end": 916,
"ctxt": 0
},
"value": "rec3",
"optional": false
},
"arguments": [],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 920,
"end": 935,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 924,
"end": 934,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 924,
"end": 925,
"ctxt": 0
},
"value": "n",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "CallExpression",
"span": {
"start": 928,
"end": 934,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 928,
"end": 932,
"ctxt": 0
},
"value": "rec4",
"optional": false
},
"arguments": [],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1011,
"end": 1052,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1015,
"end": 1051,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1015,
"end": 1016,
"ctxt": 0
},
"value": "n",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "CallExpression",
"span": {
"start": 1019,
"end": 1051,
"ctxt": 0
},
"callee": {
"type": "FunctionExpression",
"identifier": null,
"params": [],
"decorators": [],
"span": {
"start": 1019,
"end": 1048,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 1031,
"end": 1048,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 1037,
"end": 1046,
"ctxt": 0
},
"argument": {
"type": "NumericLiteral",
"span": {
"start": 1044,
"end": 1045,
"ctxt": 0
},
"value": 3.0
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"arguments": [],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1124,
"end": 1138,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1128,
"end": 1137,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1128,
"end": 1130,
"ctxt": 0
},
"value": "nu",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "NullLiteral",
"span": {
"start": 1133,
"end": 1137,
"ctxt": 0
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1139,
"end": 1184,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1143,
"end": 1183,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1143,
"end": 1145,
"ctxt": 0
},
"value": "nu",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "CallExpression",
"span": {
"start": 1148,
"end": 1183,
"ctxt": 0
},
"callee": {
"type": "FunctionExpression",
"identifier": null,
"params": [],
"decorators": [],
"span": {
"start": 1148,
"end": 1180,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 1160,
"end": 1180,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 1166,
"end": 1178,
"ctxt": 0
},
"argument": {
"type": "NullLiteral",
"span": {
"start": 1173,
"end": 1177,
"ctxt": 0
}
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"arguments": [],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1261,
"end": 1280,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1265,
"end": 1279,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1265,
"end": 1267,
"ctxt": 0
},
"value": "un",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "Identifier",
"span": {
"start": 1270,
"end": 1279,
"ctxt": 0
},
"value": "undefined",
"optional": false
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1281,
"end": 1331,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1285,
"end": 1330,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1285,
"end": 1287,
"ctxt": 0
},
"value": "un",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "CallExpression",
"span": {
"start": 1290,
"end": 1330,
"ctxt": 0
},
"callee": {
"type": "FunctionExpression",
"identifier": null,
"params": [],
"decorators": [],
"span": {
"start": 1290,
"end": 1327,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 1302,
"end": 1327,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 1308,
"end": 1325,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 1315,
"end": 1324,
"ctxt": 0
},
"value": "undefined",
"optional": false
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"arguments": [],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1420,
"end": 1469,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1424,
"end": 1468,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1424,
"end": 1425,
"ctxt": 0
},
"value": "n",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "CallExpression",
"span": {
"start": 1428,
"end": 1468,
"ctxt": 0
},
"callee": {
"type": "FunctionExpression",
"identifier": null,
"params": [
{
"type": "Parameter",
"span": {
"start": 1441,
"end": 1445,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 1441,
"end": 1445,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1442,
"end": 1445,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 1444,
"end": 1445,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 1444,
"end": 1445,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
}
}
}
],
"decorators": [],
"span": {
"start": 1428,
"end": 1464,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 1447,
"end": 1464,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 1453,
"end": 1462,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 1460,
"end": 1461,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
]
},
"generator": false,
"async": false,
"typeParameters": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 1437,
"end": 1440,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 1438,
"end": 1439,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1438,
"end": 1439,
"ctxt": 0
},
"value": "T",
"optional": false
},
"constraint": null,
"default": null
}
]
},
"returnType": null
},
"arguments": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1466,
"end": 1467,
"ctxt": 0
},
"value": 4.0
}
}
],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1570,
"end": 1630,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1574,
"end": 1629,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1574,
"end": 1575,
"ctxt": 0
},
"value": "n",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "CallExpression",
"span": {
"start": 1578,
"end": 1629,
"ctxt": 0
},
"callee": {
"type": "FunctionExpression",
"identifier": null,
"params": [
{
"type": "Parameter",
"span": {
"start": 1602,
"end": 1606,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 1602,
"end": 1606,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1603,
"end": 1606,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 1605,
"end": 1606,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 1605,
"end": 1606,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
}
}
}
],
"decorators": [],
"span": {
"start": 1578,
"end": 1625,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 1608,
"end": 1625,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 1614,
"end": 1623,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 1621,
"end": 1622,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
]
},
"generator": false,
"async": false,
"typeParameters": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 1587,
"end": 1601,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 1588,
"end": 1600,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1588,
"end": 1589,
"ctxt": 0
},
"value": "T",
"optional": false
},
"constraint": {
"type": "TsTypeLiteral",
"span": {
"start": 1598,
"end": 1600,
"ctxt": 0
},
"members": []
},
"default": null
}
]
},
"returnType": null
},
"arguments": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1627,
"end": 1628,
"ctxt": 0
},
"value": 4.0
}
}
],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1738,
"end": 1792,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1742,
"end": 1791,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1742,
"end": 1743,
"ctxt": 0
},
"value": "n",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "CallExpression",
"span": {
"start": 1746,
"end": 1791,
"ctxt": 0
},
"callee": {
"type": "FunctionExpression",
"identifier": null,
"params": [],
"decorators": [],
"span": {
"start": 1746,
"end": 1789,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 1758,
"end": 1789,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 1764,
"end": 1773,
"ctxt": 0
},
"argument": {
"type": "NumericLiteral",
"span": {
"start": 1771,
"end": 1772,
"ctxt": 0
},
"value": 3.0
}
},
{
"type": "ReturnStatement",
"span": {
"start": 1778,
"end": 1787,
"ctxt": 0
},
"argument": {
"type": "NumericLiteral",
"span": {
"start": 1785,
"end": 1786,
"ctxt": 0
},
"value": 5.0
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"arguments": [],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 2264,
"end": 2268,
"ctxt": 0
},
"value": "Base",
"optional": false
},
"declare": false,
"span": {
"start": 2258,
"end": 2283,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 2271,
"end": 2281,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 2279,
"end": 2280,
"ctxt": 0
},
"value": "m",
"optional": false
},
"value": null,
"typeAnnotation": null,
"isStatic": false,
"decorators": [],
"accessibility": "private",
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
}
],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 2290,
"end": 2297,
"ctxt": 0
},
"value": "Derived",
"optional": false
},
"declare": false,
"span": {
"start": 2284,
"end": 2325,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 2313,
"end": 2323,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 2321,
"end": 2322,
"ctxt": 0
},
"value": "q",
"optional": false
},
"value": null,
"typeAnnotation": null,
"isStatic": false,
"decorators": [],
"accessibility": "private",
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
}
],
"superClass": {
"type": "Identifier",
"span": {
"start": 2306,
"end": 2310,
"ctxt": 0
},
"value": "Base",
"optional": false
},
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "VariableDeclaration",
"span": {
"start": 2326,
"end": 2338,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 2330,
"end": 2337,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 2330,
"end": 2331,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2331,
"end": 2337,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 2333,
"end": 2337,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 2333,
"end": 2337,
"ctxt": 0
},
"value": "Base",
"optional": false
},
"typeParams": null
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 2339,
"end": 2411,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 2343,
"end": 2410,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 2343,
"end": 2344,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "CallExpression",
"span": {
"start": 2347,
"end": 2410,
"ctxt": 0
},
"callee": {
"type": "FunctionExpression",
"identifier": null,
"params": [],
"decorators": [],
"span": {
"start": 2347,
"end": 2407,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 2359,
"end": 2407,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 2365,
"end": 2383,
"ctxt": 0
},
"argument": {
"type": "NewExpression",
"span": {
"start": 2372,
"end": 2382,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 2376,
"end": 2380,
"ctxt": 0
},
"value": "Base",
"optional": false
},
"arguments": [],
"typeArguments": null
}
},
{
"type": "ReturnStatement",
"span": {
"start": 2384,
"end": 2405,
"ctxt": 0
},
"argument": {
"type": "NewExpression",
"span": {
"start": 2391,
"end": 2404,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 2395,
"end": 2402,
"ctxt": 0
},
"value": "Derived",
"optional": false
},
"arguments": [],
"typeArguments": null
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"arguments": [],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 2524,
"end": 2614,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 2528,
"end": 2613,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 2528,
"end": 2529,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "CallExpression",
"span": {
"start": 2532,
"end": 2613,
"ctxt": 0
},
"callee": {
"type": "FunctionExpression",
"identifier": {
"type": "Identifier",
"span": {
"start": 2541,
"end": 2542,
"ctxt": 0
},
"value": "f",
"optional": false
},
"params": [],
"decorators": [],
"span": {
"start": 2532,
"end": 2610,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 2545,
"end": 2610,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 2551,
"end": 2569,
"ctxt": 0
},
"argument": {
"type": "NewExpression",
"span": {
"start": 2558,
"end": 2568,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 2562,
"end": 2566,
"ctxt": 0
},
"value": "Base",
"optional": false
},
"arguments": [],
"typeArguments": null
}
},
{
"type": "ReturnStatement",
"span": {
"start": 2570,
"end": 2591,
"ctxt": 0
},
"argument": {
"type": "NewExpression",
"span": {
"start": 2577,
"end": 2590,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 2581,
"end": 2588,
"ctxt": 0
},
"value": "Derived",
"optional": false
},
"arguments": [],
"typeArguments": null
}
},
{
"type": "ReturnStatement",
"span": {
"start": 2592,
"end": 2603,
"ctxt": 0
},
"argument": {
"type": "CallExpression",
"span": {
"start": 2599,
"end": 2602,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 2599,
"end": 2600,
"ctxt": 0
},
"value": "f",
"optional": false
},
"arguments": [],
"typeArguments": null
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"arguments": [],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 2706,
"end": 2765,
"ctxt": 0
},
"expression": {
"type": "BinaryExpression",
"span": {
"start": 2706,
"end": 2764,
"ctxt": 0
},
"operator": "===",
"left": {
"type": "Identifier",
"span": {
"start": 2706,
"end": 2715,
"ctxt": 0
},
"value": "undefined",
"optional": false
},
"right": {
"type": "FunctionExpression",
"identifier": null,
"params": [],
"decorators": [],
"span": {
"start": 2720,
"end": 2764,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 2740,
"end": 2764,
"ctxt": 0
},
"stmts": [
{
"type": "ThrowStatement",
"span": {
"start": 2746,
"end": 2762,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 2752,
"end": 2761,
"ctxt": 0
},
"value": "undefined",
"optional": false
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 2731,
"end": 2739,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 2733,
"end": 2739,
"ctxt": 0
},
"kind": "number"
}
}
}
}
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 2830,
"end": 2838,
"ctxt": 0
},
"value": "thisFunc",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 2821,
"end": 2878,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 2841,
"end": 2878,
"ctxt": 0
},
"stmts": [
{
"type": "VariableDeclaration",
"span": {
"start": 2847,
"end": 2860,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 2851,
"end": 2859,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 2851,
"end": 2852,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ThisExpression",
"span": {
"start": 2855,
"end": 2859,
"ctxt": 0
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 2865,
"end": 2876,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 2869,
"end": 2875,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 2869,
"end": 2870,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2870,
"end": 2875,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 2872,
"end": 2875,
"ctxt": 0
},
"kind": "any"
}
}
},
"init": null,
"definite": false
}
]
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 2994,
"end": 2998,
"ctxt": 0
},
"value": "opt1",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 2999,
"end": 3004,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "AssignmentPattern",
"span": {
"start": 2999,
"end": 3004,
"ctxt": 0
},
"left": {
"type": "Identifier",
"span": {
"start": 2999,
"end": 3000,
"ctxt": 0
},
"value": "n",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 3003,
"end": 3004,
"ctxt": 0
},
"value": 4.0
},
"typeAnnotation": null
}
}
],
"decorators": [],
"span": {
"start": 2985,
"end": 3043,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 3006,
"end": 3043,
"ctxt": 0
},
"stmts": [
{
"type": "VariableDeclaration",
"span": {
"start": 3012,
"end": 3022,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 3016,
"end": 3021,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 3016,
"end": 3017,
"ctxt": 0
},
"value": "m",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "Identifier",
"span": {
"start": 3020,
"end": 3021,
"ctxt": 0
},
"value": "n",
"optional": false
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 3027,
"end": 3041,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 3031,
"end": 3040,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 3031,
"end": 3032,
"ctxt": 0
},
"value": "m",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 3032,
"end": 3040,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 3034,
"end": 3040,
"ctxt": 0
},
"kind": "number"
}
}
},
"init": null,
"definite": false
}
]
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 3167,
"end": 3171,
"ctxt": 0
},
"value": "opt2",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 3172,
"end": 3201,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "AssignmentPattern",
"span": {
"start": 3172,
"end": 3201,
"ctxt": 0
},
"left": {
"type": "Identifier",
"span": {
"start": 3172,
"end": 3173,
"ctxt": 0
},
"value": "n",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 3176,
"end": 3201,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 3178,
"end": 3179,
"ctxt": 0
},
"value": "x",
"optional": false
},
"value": {
"type": "NullLiteral",
"span": {
"start": 3181,
"end": 3185,
"ctxt": 0
}
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 3187,
"end": 3188,
"ctxt": 0
},
"value": "y",
"optional": false
},
"value": {
"type": "Identifier",
"span": {
"start": 3190,
"end": 3199,
"ctxt": 0
},
"value": "undefined",
"optional": false
}
}
]
},
"typeAnnotation": null
}
}
],
"decorators": [],
"span": {
"start": 3158,
"end": 3252,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 3203,
"end": 3252,
"ctxt": 0
},
"stmts": [
{
"type": "VariableDeclaration",
"span": {
"start": 3209,
"end": 3219,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 3213,
"end": 3218,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 3213,
"end": 3214,
"ctxt": 0
},
"value": "m",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "Identifier",
"span": {
"start": 3217,
"end": 3218,
"ctxt": 0
},
"value": "n",
"optional": false
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 3224,
"end": 3250,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 3228,
"end": 3249,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 3228,
"end": 3229,
"ctxt": 0
},
"value": "m",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 3229,
"end": 3249,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 3231,
"end": 3249,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 3233,
"end": 3240,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 3233,
"end": 3234,
"ctxt": 0
},
"value": "x",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 3234,
"end": 3239,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 3236,
"end": 3239,
"ctxt": 0
},
"kind": "any"
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 3241,
"end": 3247,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 3241,
"end": 3242,
"ctxt": 0
},
"value": "y",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 3242,
"end": 3247,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 3244,
"end": 3247,
"ctxt": 0
},
"kind": "any"
}
},
"typeParams": null
}
]
}
}
},
"init": null,
"definite": false
}
]
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 3342,
"end": 3346,
"ctxt": 0
},
"value": "opt3",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 3347,
"end": 3356,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 3347,
"end": 3356,
"ctxt": 0
},
"value": "n",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 3348,
"end": 3356,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 3350,
"end": 3356,
"ctxt": 0
},
"kind": "number"
}
}
}
},
{
"type": "Parameter",
"span": {
"start": 3358,
"end": 3363,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "AssignmentPattern",
"span": {
"start": 3358,
"end": 3363,
"ctxt": 0
},
"left": {
"type": "Identifier",
"span": {
"start": 3358,
"end": 3359,
"ctxt": 0
},
"value": "m",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "Identifier",
"span": {
"start": 3362,
"end": 3363,
"ctxt": 0
},
"value": "n",
"optional": false
},
"typeAnnotation": null
}
}
],
"decorators": [],
"span": {
"start": 3333,
"end": 3402,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 3365,
"end": 3402,
"ctxt": 0
},
"stmts": [
{
"type": "VariableDeclaration",
"span": {
"start": 3371,
"end": 3381,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 3375,
"end": 3380,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 3375,
"end": 3376,
"ctxt": 0
},
"value": "y",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "Identifier",
"span": {
"start": 3379,
"end": 3380,
"ctxt": 0
},
"value": "m",
"optional": false
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 3386,
"end": 3400,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 3390,
"end": 3399,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 3390,
"end": 3391,
"ctxt": 0
},
"value": "y",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 3391,
"end": 3399,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 3393,
"end": 3399,
"ctxt": 0
},
"kind": "number"
}
}
},
"init": null,
"definite": false
}
]
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 3585,
"end": 3587,
"ctxt": 0
},
"value": "f6",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 3576,
"end": 3613,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 3598,
"end": 3613,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 3604,
"end": 3611,
"ctxt": 0
},
"argument": null
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 3589,
"end": 3597,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 3591,
"end": 3597,
"ctxt": 0
},
"kind": "number"
}
}
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 3621,
"end": 3629,
"ctxt": 0
},
"value": "Derived2",
"optional": false
},
"declare": false,
"span": {
"start": 3615,
"end": 3665,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 3645,
"end": 3663,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 3653,
"end": 3654,
"ctxt": 0
},
"value": "r",
"optional": false
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 3654,
"end": 3662,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 3656,
"end": 3662,
"ctxt": 0
},
"kind": "string"
}
},
"isStatic": false,
"decorators": [],
"accessibility": "private",
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
}
],
"superClass": {
"type": "Identifier",
"span": {
"start": 3638,
"end": 3642,
"ctxt": 0
},
"value": "Base",
"optional": false
},
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 3672,
"end": 3684,
"ctxt": 0
},
"value": "AnotherClass",
"optional": false
},
"declare": false,
"span": {
"start": 3666,
"end": 3698,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 3687,
"end": 3696,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 3695,
"end": 3696,
"ctxt": 0
},
"value": "x",
"optional": false
},
"value": null,
"typeAnnotation": null,
"isStatic": false,
"decorators": [],
"accessibility": "private",
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
}
],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "VariableDeclaration",
"span": {
"start": 3921,
"end": 4068,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 3925,
"end": 4068,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 3925,
"end": 3927,
"ctxt": 0
},
"value": "f7",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 3927,
"end": 3959,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsFunctionType",
"span": {
"start": 3929,
"end": 3959,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 3930,
"end": 3939,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 3931,
"end": 3939,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 3933,
"end": 3939,
"ctxt": 0
},
"kind": "number"
}
}
}
],
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 3941,
"end": 3959,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 3944,
"end": 3959,
"ctxt": 0
},
"types": [
{
"type": "TsKeywordType",
"span": {
"start": 3944,
"end": 3950,
"ctxt": 0
},
"kind": "string"
},
{
"type": "TsKeywordType",
"span": {
"start": 3953,
"end": 3959,
"ctxt": 0
},
"kind": "number"
}
]
}
}
}
}
},
"init": {
"type": "ArrowFunctionExpression",
"span": {
"start": 3962,
"end": 4068,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 3962,
"end": 3963,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
}
],
"body": {
"type": "BlockStatement",
"span": {
"start": 3967,
"end": 4068,
"ctxt": 0
},
"stmts": [
{
"type": "IfStatement",
"span": {
"start": 4017,
"end": 4041,
"ctxt": 0
},
"test": {
"type": "BinaryExpression",
"span": {
"start": 4021,
"end": 4026,
"ctxt": 0
},
"operator": "<",
"left": {
"type": "Identifier",
"span": {
"start": 4021,
"end": 4022,
"ctxt": 0
},
"value": "x",
"optional": false
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 4025,
"end": 4026,
"ctxt": 0
},
"value": 0.0
}
},
"consequent": {
"type": "BlockStatement",
"span": {
"start": 4028,
"end": 4041,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 4030,
"end": 4039,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 4037,
"end": 4038,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
]
},
"alternate": null
},
{
"type": "ReturnStatement",
"span": {
"start": 4046,
"end": 4066,
"ctxt": 0
},
"argument": {
"type": "CallExpression",
"span": {
"start": 4053,
"end": 4065,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 4053,
"end": 4063,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 4053,
"end": 4054,
"ctxt": 0
},
"value": "x",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 4055,
"end": 4063,
"ctxt": 0
},
"value": "toString",
"optional": false
}
},
"arguments": [],
"typeArguments": null
}
}
]
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 4069,
"end": 4189,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 4073,
"end": 4189,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 4073,
"end": 4075,
"ctxt": 0
},
"value": "f8",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 4075,
"end": 4095,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsFunctionType",
"span": {
"start": 4077,
"end": 4095,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 4078,
"end": 4087,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 4079,
"end": 4087,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 4081,
"end": 4087,
"ctxt": 0
},
"kind": "number"
}
}
}
],
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 4089,
"end": 4095,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 4092,
"end": 4095,
"ctxt": 0
},
"kind": "any"
}
}
}
}
},
"init": {
"type": "ArrowFunctionExpression",
"span": {
"start": 4098,
"end": 4189,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 4098,
"end": 4099,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
}
],
"body": {
"type": "BlockStatement",
"span": {
"start": 4103,
"end": 4189,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 4142,
"end": 4160,
"ctxt": 0
},
"argument": {
"type": "NewExpression",
"span": {
"start": 4149,
"end": 4159,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 4153,
"end": 4157,
"ctxt": 0
},
"value": "Base",
"optional": false
},
"arguments": [],
"typeArguments": null
}
},
{
"type": "ReturnStatement",
"span": {
"start": 4165,
"end": 4187,
"ctxt": 0
},
"argument": {
"type": "NewExpression",
"span": {
"start": 4172,
"end": 4186,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 4176,
"end": 4184,
"ctxt": 0
},
"value": "Derived2",
"optional": false
},
"arguments": [],
"typeArguments": null
}
}
]
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 4190,
"end": 4336,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 4194,
"end": 4336,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 4194,
"end": 4196,
"ctxt": 0
},
"value": "f9",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 4196,
"end": 4216,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsFunctionType",
"span": {
"start": 4198,
"end": 4216,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 4199,
"end": 4208,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 4200,
"end": 4208,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 4202,
"end": 4208,
"ctxt": 0
},
"kind": "number"
}
}
}
],
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 4210,
"end": 4216,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 4213,
"end": 4216,
"ctxt": 0
},
"kind": "any"
}
}
}
}
},
"init": {
"type": "ArrowFunctionExpression",
"span": {
"start": 4219,
"end": 4336,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 4219,
"end": 4220,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
}
],
"body": {
"type": "BlockStatement",
"span": {
"start": 4224,
"end": 4336,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 4263,
"end": 4281,
"ctxt": 0
},
"argument": {
"type": "NewExpression",
"span": {
"start": 4270,
"end": 4280,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 4274,
"end": 4278,
"ctxt": 0
},
"value": "Base",
"optional": false
},
"arguments": [],
"typeArguments": null
}
},
{
"type": "ReturnStatement",
"span": {
"start": 4286,
"end": 4307,
"ctxt": 0
},
"argument": {
"type": "NewExpression",
"span": {
"start": 4293,
"end": 4306,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 4297,
"end": 4304,
"ctxt": 0
},
"value": "Derived",
"optional": false
},
"arguments": [],
"typeArguments": null
}
},
{
"type": "ReturnStatement",
"span": {
"start": 4312,
"end": 4334,
"ctxt": 0
},
"argument": {
"type": "NewExpression",
"span": {
"start": 4319,
"end": 4333,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 4323,
"end": 4331,
"ctxt": 0
},
"value": "Derived2",
"optional": false
},
"arguments": [],
"typeArguments": null
}
}
]
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 4337,
"end": 4475,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 4341,
"end": 4475,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 4341,
"end": 4344,
"ctxt": 0
},
"value": "f10",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 4344,
"end": 4364,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsFunctionType",
"span": {
"start": 4346,
"end": 4364,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 4347,
"end": 4356,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 4348,
"end": 4356,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 4350,
"end": 4356,
"ctxt": 0
},
"kind": "number"
}
}
}
],
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 4358,
"end": 4364,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 4361,
"end": 4364,
"ctxt": 0
},
"kind": "any"
}
}
}
}
},
"init": {
"type": "ArrowFunctionExpression",
"span": {
"start": 4367,
"end": 4475,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 4367,
"end": 4368,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
}
],
"body": {
"type": "BlockStatement",
"span": {
"start": 4372,
"end": 4475,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 4425,
"end": 4446,
"ctxt": 0
},
"argument": {
"type": "NewExpression",
"span": {
"start": 4432,
"end": 4445,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 4436,
"end": 4443,
"ctxt": 0
},
"value": "Derived",
"optional": false
},
"arguments": [],
"typeArguments": null
}
},
{
"type": "ReturnStatement",
"span": {
"start": 4451,
"end": 4473,
"ctxt": 0
},
"argument": {
"type": "NewExpression",
"span": {
"start": 4458,
"end": 4472,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 4462,
"end": 4470,
"ctxt": 0
},
"value": "Derived2",
"optional": false
},
"arguments": [],
"typeArguments": null
}
}
]
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 4476,
"end": 4616,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 4480,
"end": 4616,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 4480,
"end": 4483,
"ctxt": 0
},
"value": "f11",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 4483,
"end": 4503,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsFunctionType",
"span": {
"start": 4485,
"end": 4503,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 4486,
"end": 4495,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 4487,
"end": 4495,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 4489,
"end": 4495,
"ctxt": 0
},
"kind": "number"
}
}
}
],
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 4497,
"end": 4503,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 4500,
"end": 4503,
"ctxt": 0
},
"kind": "any"
}
}
}
}
},
"init": {
"type": "ArrowFunctionExpression",
"span": {
"start": 4506,
"end": 4616,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 4506,
"end": 4507,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
}
],
"body": {
"type": "BlockStatement",
"span": {
"start": 4511,
"end": 4616,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 4565,
"end": 4583,
"ctxt": 0
},
"argument": {
"type": "NewExpression",
"span": {
"start": 4572,
"end": 4582,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 4576,
"end": 4580,
"ctxt": 0
},
"value": "Base",
"optional": false
},
"arguments": [],
"typeArguments": null
}
},
{
"type": "ReturnStatement",
"span": {
"start": 4588,
"end": 4614,
"ctxt": 0
},
"argument": {
"type": "NewExpression",
"span": {
"start": 4595,
"end": 4613,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 4599,
"end": 4611,
"ctxt": 0
},
"value": "AnotherClass",
"optional": false
},
"arguments": [],
"typeArguments": null
}
}
]
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 4617,
"end": 4790,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 4621,
"end": 4790,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 4621,
"end": 4624,
"ctxt": 0
},
"value": "f12",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 4624,
"end": 4644,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsFunctionType",
"span": {
"start": 4626,
"end": 4644,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 4627,
"end": 4636,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 4628,
"end": 4636,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 4630,
"end": 4636,
"ctxt": 0
},
"kind": "number"
}
}
}
],
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 4638,
"end": 4644,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 4641,
"end": 4644,
"ctxt": 0
},
"kind": "any"
}
}
}
}
},
"init": {
"type": "ArrowFunctionExpression",
"span": {
"start": 4647,
"end": 4790,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 4647,
"end": 4648,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
}
],
"body": {
"type": "BlockStatement",
"span": {
"start": 4652,
"end": 4790,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 4706,
"end": 4724,
"ctxt": 0
},
"argument": {
"type": "NewExpression",
"span": {
"start": 4713,
"end": 4723,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 4717,
"end": 4721,
"ctxt": 0
},
"value": "Base",
"optional": false
},
"arguments": [],
"typeArguments": null
}
},
{
"type": "ReturnStatement",
"span": {
"start": 4729,
"end": 4736,
"ctxt": 0
},
"argument": null
},
{
"type": "ReturnStatement",
"span": {
"start": 4762,
"end": 4788,
"ctxt": 0
},
"argument": {
"type": "NewExpression",
"span": {
"start": 4769,
"end": 4787,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 4773,
"end": 4785,
"ctxt": 0
},
"value": "AnotherClass",
"optional": false
},
"arguments": [],
"typeArguments": null
}
}
]
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
},
"definite": false
}
]
}
],
"interpreter": null
}