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

4329 lines
109 KiB
JSON

{
"type": "Script",
"span": {
"start": 1,
"end": 3071,
"ctxt": 0
},
"body": [
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 7,
"end": 15,
"ctxt": 0
},
"value": "SomeBase",
"optional": false
},
"declare": false,
"span": {
"start": 1,
"end": 57,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 22,
"end": 32,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 30,
"end": 31,
"ctxt": 0
},
"value": "n",
"optional": false
},
"value": null,
"typeAnnotation": null,
"isStatic": false,
"decorators": [],
"accessibility": "private",
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
},
{
"type": "ClassProperty",
"span": {
"start": 38,
"end": 55,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 45,
"end": 46,
"ctxt": 0
},
"value": "s",
"optional": false
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 46,
"end": 54,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 48,
"end": 54,
"ctxt": 0
},
"kind": "string"
}
},
"isStatic": false,
"decorators": [],
"accessibility": "public",
"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": 64,
"end": 76,
"ctxt": 0
},
"value": "SomeDerived1",
"optional": false
},
"declare": false,
"span": {
"start": 58,
"end": 112,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 100,
"end": 110,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 108,
"end": 109,
"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": {
"type": "Identifier",
"span": {
"start": 85,
"end": 93,
"ctxt": 0
},
"value": "SomeBase",
"optional": false
},
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 119,
"end": 131,
"ctxt": 0
},
"value": "SomeDerived2",
"optional": false
},
"declare": false,
"span": {
"start": 113,
"end": 167,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 155,
"end": 165,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 163,
"end": 164,
"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": {
"type": "Identifier",
"span": {
"start": 140,
"end": 148,
"ctxt": 0
},
"value": "SomeBase",
"optional": false
},
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 174,
"end": 186,
"ctxt": 0
},
"value": "SomeDerived3",
"optional": false
},
"declare": false,
"span": {
"start": 168,
"end": 222,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 210,
"end": 220,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 218,
"end": 219,
"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": {
"type": "Identifier",
"span": {
"start": 195,
"end": 203,
"ctxt": 0
},
"value": "SomeBase",
"optional": false
},
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "TsInterfaceDeclaration",
"span": {
"start": 224,
"end": 299,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 234,
"end": 237,
"ctxt": 0
},
"value": "fn1",
"optional": false
},
"declare": false,
"typeParams": null,
"extends": [],
"body": {
"type": "TsInterfaceBody",
"span": {
"start": 238,
"end": 299,
"ctxt": 0
},
"body": [
{
"type": "TsConstructSignatureDeclaration",
"span": {
"start": 244,
"end": 268,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 249,
"end": 258,
"ctxt": 0
},
"value": "s",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 250,
"end": 258,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 252,
"end": 258,
"ctxt": 0
},
"kind": "string"
}
}
}
],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 259,
"end": 267,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 261,
"end": 267,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
},
{
"type": "TsConstructSignatureDeclaration",
"span": {
"start": 273,
"end": 297,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 278,
"end": 287,
"ctxt": 0
},
"value": "s",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 279,
"end": 287,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 281,
"end": 287,
"ctxt": 0
},
"kind": "number"
}
}
}
],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 288,
"end": 296,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 290,
"end": 296,
"ctxt": 0
},
"kind": "number"
}
},
"typeParams": null
}
]
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 300,
"end": 313,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 304,
"end": 312,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 304,
"end": 307,
"ctxt": 0
},
"value": "fn1",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 307,
"end": 312,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 309,
"end": 312,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 309,
"end": 312,
"ctxt": 0
},
"value": "fn1",
"optional": false
},
"typeParams": null
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 379,
"end": 406,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 383,
"end": 405,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 383,
"end": 384,
"ctxt": 0
},
"value": "s",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "NewExpression",
"span": {
"start": 387,
"end": 405,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 391,
"end": 394,
"ctxt": 0
},
"value": "fn1",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 395,
"end": 404,
"ctxt": 0
},
"value": "undefined",
"optional": false
}
}
],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 407,
"end": 421,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 411,
"end": 420,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 411,
"end": 412,
"ctxt": 0
},
"value": "s",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 412,
"end": 420,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 414,
"end": 420,
"ctxt": 0
},
"kind": "string"
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 455,
"end": 467,
"ctxt": 0
},
"expression": {
"type": "NewExpression",
"span": {
"start": 455,
"end": 466,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 459,
"end": 462,
"ctxt": 0
},
"value": "fn1",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "ObjectExpression",
"span": {
"start": 463,
"end": 465,
"ctxt": 0
},
"properties": []
}
}
],
"typeArguments": null
}
},
{
"type": "TsInterfaceDeclaration",
"span": {
"start": 593,
"end": 683,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 603,
"end": 606,
"ctxt": 0
},
"value": "fn2",
"optional": false
},
"declare": false,
"typeParams": null,
"extends": [],
"body": {
"type": "TsInterfaceBody",
"span": {
"start": 607,
"end": 683,
"ctxt": 0
},
"body": [
{
"type": "TsConstructSignatureDeclaration",
"span": {
"start": 613,
"end": 648,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 618,
"end": 627,
"ctxt": 0
},
"value": "s",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 619,
"end": 627,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 621,
"end": 627,
"ctxt": 0
},
"kind": "string"
}
}
},
{
"type": "Identifier",
"span": {
"start": 629,
"end": 638,
"ctxt": 0
},
"value": "n",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 630,
"end": 638,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 632,
"end": 638,
"ctxt": 0
},
"kind": "number"
}
}
}
],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 639,
"end": 647,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 641,
"end": 647,
"ctxt": 0
},
"kind": "number"
}
},
"typeParams": null
},
{
"type": "TsConstructSignatureDeclaration",
"span": {
"start": 653,
"end": 681,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 661,
"end": 670,
"ctxt": 0
},
"value": "n",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 662,
"end": 670,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 664,
"end": 670,
"ctxt": 0
},
"kind": "number"
}
}
},
{
"type": "Identifier",
"span": {
"start": 672,
"end": 676,
"ctxt": 0
},
"value": "t",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 673,
"end": 676,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 675,
"end": 676,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 675,
"end": 676,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
}
}
],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 677,
"end": 680,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 679,
"end": 680,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 679,
"end": 680,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
},
"typeParams": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 657,
"end": 660,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 658,
"end": 659,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 658,
"end": 659,
"ctxt": 0
},
"value": "T",
"optional": false
},
"in": false,
"out": false,
"constraint": null,
"default": null
}
]
}
}
]
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 684,
"end": 697,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 688,
"end": 696,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 688,
"end": 691,
"ctxt": 0
},
"value": "fn2",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 691,
"end": 696,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 693,
"end": 696,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 693,
"end": 696,
"ctxt": 0
},
"value": "fn2",
"optional": false
},
"typeParams": null
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 699,
"end": 735,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 703,
"end": 734,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 703,
"end": 704,
"ctxt": 0
},
"value": "d",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "NewExpression",
"span": {
"start": 707,
"end": 734,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 711,
"end": 714,
"ctxt": 0
},
"value": "fn2",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 721,
"end": 722,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
},
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 724,
"end": 733,
"ctxt": 0
},
"value": "undefined",
"optional": false
}
}
],
"typeArguments": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 714,
"end": 720,
"ctxt": 0
},
"params": [
{
"type": "TsTypeReference",
"span": {
"start": 715,
"end": 719,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 715,
"end": 719,
"ctxt": 0
},
"value": "Date",
"optional": false
},
"typeParams": null
}
]
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 736,
"end": 748,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 740,
"end": 747,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 740,
"end": 741,
"ctxt": 0
},
"value": "d",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 741,
"end": 747,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 743,
"end": 747,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 743,
"end": 747,
"ctxt": 0
},
"value": "Date",
"optional": false
},
"typeParams": null
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 868,
"end": 891,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 872,
"end": 890,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 872,
"end": 873,
"ctxt": 0
},
"value": "s",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "NewExpression",
"span": {
"start": 876,
"end": 890,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 880,
"end": 883,
"ctxt": 0
},
"value": "fn2",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 884,
"end": 885,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
},
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 887,
"end": 889,
"ctxt": 0
},
"value": "",
"raw": "''"
}
}
],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 1014,
"end": 1035,
"ctxt": 0
},
"expression": {
"type": "NewExpression",
"span": {
"start": 1014,
"end": 1034,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 1018,
"end": 1021,
"ctxt": 0
},
"value": "fn2",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 1028,
"end": 1030,
"ctxt": 0
},
"value": "",
"raw": "''"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1032,
"end": 1033,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
}
],
"typeArguments": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 1021,
"end": 1027,
"ctxt": 0
},
"params": [
{
"type": "TsTypeReference",
"span": {
"start": 1022,
"end": 1026,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 1022,
"end": 1026,
"ctxt": 0
},
"value": "Date",
"optional": false
},
"typeParams": null
}
]
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1170,
"end": 1185,
"ctxt": 0
},
"expression": {
"type": "NewExpression",
"span": {
"start": 1170,
"end": 1184,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 1174,
"end": 1177,
"ctxt": 0
},
"value": "fn2",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 1178,
"end": 1180,
"ctxt": 0
},
"value": "",
"raw": "''"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1182,
"end": 1183,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
}
],
"typeArguments": null
}
},
{
"type": "TsInterfaceDeclaration",
"span": {
"start": 1265,
"end": 1393,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1275,
"end": 1278,
"ctxt": 0
},
"value": "fn3",
"optional": false
},
"declare": false,
"typeParams": null,
"extends": [],
"body": {
"type": "TsInterfaceBody",
"span": {
"start": 1279,
"end": 1393,
"ctxt": 0
},
"body": [
{
"type": "TsConstructSignatureDeclaration",
"span": {
"start": 1285,
"end": 1306,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 1292,
"end": 1296,
"ctxt": 0
},
"value": "n",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1293,
"end": 1296,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 1295,
"end": 1296,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 1295,
"end": 1296,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
}
}
],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1297,
"end": 1305,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1299,
"end": 1305,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 1288,
"end": 1291,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 1289,
"end": 1290,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1289,
"end": 1290,
"ctxt": 0
},
"value": "T",
"optional": false
},
"in": false,
"out": false,
"constraint": null,
"default": null
}
]
}
},
{
"type": "TsConstructSignatureDeclaration",
"span": {
"start": 1311,
"end": 1347,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 1321,
"end": 1330,
"ctxt": 0
},
"value": "s",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1322,
"end": 1330,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1324,
"end": 1330,
"ctxt": 0
},
"kind": "string"
}
}
},
{
"type": "Identifier",
"span": {
"start": 1332,
"end": 1336,
"ctxt": 0
},
"value": "t",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1333,
"end": 1336,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 1335,
"end": 1336,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 1335,
"end": 1336,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
}
},
{
"type": "Identifier",
"span": {
"start": 1338,
"end": 1342,
"ctxt": 0
},
"value": "u",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1339,
"end": 1342,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 1341,
"end": 1342,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 1341,
"end": 1342,
"ctxt": 0
},
"value": "U",
"optional": false
},
"typeParams": null
}
}
}
],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1343,
"end": 1346,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 1345,
"end": 1346,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 1345,
"end": 1346,
"ctxt": 0
},
"value": "U",
"optional": false
},
"typeParams": null
}
},
"typeParams": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 1314,
"end": 1320,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 1315,
"end": 1316,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1315,
"end": 1316,
"ctxt": 0
},
"value": "T",
"optional": false
},
"in": false,
"out": false,
"constraint": null,
"default": null
},
{
"type": "TsTypeParameter",
"span": {
"start": 1318,
"end": 1319,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1318,
"end": 1319,
"ctxt": 0
},
"value": "U",
"optional": false
},
"in": false,
"out": false,
"constraint": null,
"default": null
}
]
}
},
{
"type": "TsConstructSignatureDeclaration",
"span": {
"start": 1352,
"end": 1391,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 1365,
"end": 1369,
"ctxt": 0
},
"value": "v",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1366,
"end": 1369,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 1368,
"end": 1369,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 1368,
"end": 1369,
"ctxt": 0
},
"value": "V",
"optional": false
},
"typeParams": null
}
}
},
{
"type": "Identifier",
"span": {
"start": 1371,
"end": 1375,
"ctxt": 0
},
"value": "u",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1372,
"end": 1375,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 1374,
"end": 1375,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 1374,
"end": 1375,
"ctxt": 0
},
"value": "U",
"optional": false
},
"typeParams": null
}
}
},
{
"type": "Identifier",
"span": {
"start": 1377,
"end": 1381,
"ctxt": 0
},
"value": "t",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1378,
"end": 1381,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 1380,
"end": 1381,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 1380,
"end": 1381,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
}
}
],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1382,
"end": 1390,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1384,
"end": 1390,
"ctxt": 0
},
"kind": "number"
}
},
"typeParams": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 1355,
"end": 1364,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 1356,
"end": 1357,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1356,
"end": 1357,
"ctxt": 0
},
"value": "T",
"optional": false
},
"in": false,
"out": false,
"constraint": null,
"default": null
},
{
"type": "TsTypeParameter",
"span": {
"start": 1359,
"end": 1360,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1359,
"end": 1360,
"ctxt": 0
},
"value": "U",
"optional": false
},
"in": false,
"out": false,
"constraint": null,
"default": null
},
{
"type": "TsTypeParameter",
"span": {
"start": 1362,
"end": 1363,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1362,
"end": 1363,
"ctxt": 0
},
"value": "V",
"optional": false
},
"in": false,
"out": false,
"constraint": null,
"default": null
}
]
}
}
]
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 1394,
"end": 1407,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1398,
"end": 1406,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1398,
"end": 1401,
"ctxt": 0
},
"value": "fn3",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1401,
"end": 1406,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 1403,
"end": 1406,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 1403,
"end": 1406,
"ctxt": 0
},
"value": "fn3",
"optional": false
},
"typeParams": null
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1409,
"end": 1428,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1413,
"end": 1427,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1413,
"end": 1414,
"ctxt": 0
},
"value": "s",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "NewExpression",
"span": {
"start": 1417,
"end": 1427,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 1421,
"end": 1424,
"ctxt": 0
},
"value": "fn3",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1425,
"end": 1426,
"ctxt": 0
},
"value": 3.0,
"raw": "3"
}
}
],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1429,
"end": 1456,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1433,
"end": 1455,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1433,
"end": 1434,
"ctxt": 0
},
"value": "s",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "NewExpression",
"span": {
"start": 1437,
"end": 1455,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 1441,
"end": 1444,
"ctxt": 0
},
"value": "fn3",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 1445,
"end": 1447,
"ctxt": 0
},
"value": "",
"raw": "''"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1449,
"end": 1450,
"ctxt": 0
},
"value": 3.0,
"raw": "3"
}
},
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 1452,
"end": 1454,
"ctxt": 0
},
"value": "",
"raw": "''"
}
}
],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1457,
"end": 1482,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1461,
"end": 1481,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1461,
"end": 1462,
"ctxt": 0
},
"value": "n",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "NewExpression",
"span": {
"start": 1465,
"end": 1481,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 1469,
"end": 1472,
"ctxt": 0
},
"value": "fn3",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1473,
"end": 1474,
"ctxt": 0
},
"value": 5.0,
"raw": "5"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1476,
"end": 1477,
"ctxt": 0
},
"value": 5.0,
"raw": "5"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1479,
"end": 1480,
"ctxt": 0
},
"value": 5.0,
"raw": "5"
}
}
],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1483,
"end": 1497,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1487,
"end": 1496,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1487,
"end": 1488,
"ctxt": 0
},
"value": "n",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1488,
"end": 1496,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1490,
"end": 1496,
"ctxt": 0
},
"kind": "number"
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1612,
"end": 1639,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1616,
"end": 1638,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1616,
"end": 1617,
"ctxt": 0
},
"value": "s",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "NewExpression",
"span": {
"start": 1620,
"end": 1638,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 1624,
"end": 1627,
"ctxt": 0
},
"value": "fn3",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1636,
"end": 1637,
"ctxt": 0
},
"value": 4.0,
"raw": "4"
}
}
],
"typeArguments": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 1627,
"end": 1635,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 1628,
"end": 1634,
"ctxt": 0
},
"kind": "number"
}
]
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1640,
"end": 1684,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1644,
"end": 1683,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1644,
"end": 1645,
"ctxt": 0
},
"value": "s",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "NewExpression",
"span": {
"start": 1648,
"end": 1683,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 1652,
"end": 1655,
"ctxt": 0
},
"value": "fn3",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 1672,
"end": 1674,
"ctxt": 0
},
"value": "",
"raw": "''"
}
},
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 1676,
"end": 1678,
"ctxt": 0
},
"value": "",
"raw": "''"
}
},
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 1680,
"end": 1682,
"ctxt": 0
},
"value": "",
"raw": "''"
}
}
],
"typeArguments": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 1655,
"end": 1671,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 1656,
"end": 1662,
"ctxt": 0
},
"kind": "string"
},
{
"type": "TsKeywordType",
"span": {
"start": 1664,
"end": 1670,
"ctxt": 0
},
"kind": "string"
}
]
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1685,
"end": 1736,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1689,
"end": 1735,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1689,
"end": 1690,
"ctxt": 0
},
"value": "n",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "NewExpression",
"span": {
"start": 1693,
"end": 1735,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 1697,
"end": 1700,
"ctxt": 0
},
"value": "fn3",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 1725,
"end": 1727,
"ctxt": 0
},
"value": "",
"raw": "''"
}
},
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 1729,
"end": 1731,
"ctxt": 0
},
"value": "",
"raw": "''"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1733,
"end": 1734,
"ctxt": 0
},
"value": 3.0,
"raw": "3"
}
}
],
"typeArguments": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 1700,
"end": 1724,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 1701,
"end": 1707,
"ctxt": 0
},
"kind": "number"
},
{
"type": "TsKeywordType",
"span": {
"start": 1709,
"end": 1715,
"ctxt": 0
},
"kind": "string"
},
{
"type": "TsKeywordType",
"span": {
"start": 1717,
"end": 1723,
"ctxt": 0
},
"kind": "string"
}
]
}
},
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 1844,
"end": 1886,
"ctxt": 0
},
"expression": {
"type": "NewExpression",
"span": {
"start": 1844,
"end": 1885,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 1848,
"end": 1851,
"ctxt": 0
},
"value": "fn3",
"optional": false
},
"arguments": [],
"typeArguments": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 1851,
"end": 1883,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 1852,
"end": 1858,
"ctxt": 0
},
"kind": "number"
},
{
"type": "TsKeywordType",
"span": {
"start": 1860,
"end": 1866,
"ctxt": 0
},
"kind": "number"
},
{
"type": "TsKeywordType",
"span": {
"start": 1868,
"end": 1874,
"ctxt": 0
},
"kind": "number"
},
{
"type": "TsKeywordType",
"span": {
"start": 1876,
"end": 1882,
"ctxt": 0
},
"kind": "number"
}
]
}
}
},
{
"type": "TsInterfaceDeclaration",
"span": {
"start": 1991,
"end": 2122,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 2001,
"end": 2004,
"ctxt": 0
},
"value": "fn4",
"optional": false
},
"declare": false,
"typeParams": null,
"extends": [],
"body": {
"type": "TsInterfaceBody",
"span": {
"start": 2005,
"end": 2122,
"ctxt": 0
},
"body": [
{
"type": "TsConstructSignatureDeclaration",
"span": {
"start": 2011,
"end": 2063,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 2051,
"end": 2055,
"ctxt": 0
},
"value": "n",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2052,
"end": 2055,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 2054,
"end": 2055,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 2054,
"end": 2055,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
}
},
{
"type": "Identifier",
"span": {
"start": 2057,
"end": 2061,
"ctxt": 0
},
"value": "m",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2058,
"end": 2061,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 2060,
"end": 2061,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 2060,
"end": 2061,
"ctxt": 0
},
"value": "U",
"optional": false
},
"typeParams": null
}
}
}
],
"typeAnnotation": null,
"typeParams": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 2014,
"end": 2050,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 2015,
"end": 2031,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 2015,
"end": 2016,
"ctxt": 0
},
"value": "T",
"optional": false
},
"in": false,
"out": false,
"constraint": {
"type": "TsKeywordType",
"span": {
"start": 2025,
"end": 2031,
"ctxt": 0
},
"kind": "string"
},
"default": null
},
{
"type": "TsTypeParameter",
"span": {
"start": 2033,
"end": 2049,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 2033,
"end": 2034,
"ctxt": 0
},
"value": "U",
"optional": false
},
"in": false,
"out": false,
"constraint": {
"type": "TsKeywordType",
"span": {
"start": 2043,
"end": 2049,
"ctxt": 0
},
"kind": "number"
},
"default": null
}
]
}
},
{
"type": "TsConstructSignatureDeclaration",
"span": {
"start": 2068,
"end": 2120,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 2108,
"end": 2112,
"ctxt": 0
},
"value": "n",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2109,
"end": 2112,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 2111,
"end": 2112,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 2111,
"end": 2112,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
}
},
{
"type": "Identifier",
"span": {
"start": 2114,
"end": 2118,
"ctxt": 0
},
"value": "m",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2115,
"end": 2118,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 2117,
"end": 2118,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 2117,
"end": 2118,
"ctxt": 0
},
"value": "U",
"optional": false
},
"typeParams": null
}
}
}
],
"typeAnnotation": null,
"typeParams": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 2071,
"end": 2107,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 2072,
"end": 2088,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 2072,
"end": 2073,
"ctxt": 0
},
"value": "T",
"optional": false
},
"in": false,
"out": false,
"constraint": {
"type": "TsKeywordType",
"span": {
"start": 2082,
"end": 2088,
"ctxt": 0
},
"kind": "number"
},
"default": null
},
{
"type": "TsTypeParameter",
"span": {
"start": 2090,
"end": 2106,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 2090,
"end": 2091,
"ctxt": 0
},
"value": "U",
"optional": false
},
"in": false,
"out": false,
"constraint": {
"type": "TsKeywordType",
"span": {
"start": 2100,
"end": 2106,
"ctxt": 0
},
"kind": "string"
},
"default": null
}
]
}
}
]
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 2123,
"end": 2136,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 2127,
"end": 2135,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 2127,
"end": 2130,
"ctxt": 0
},
"value": "fn4",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2130,
"end": 2135,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 2132,
"end": 2135,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 2132,
"end": 2135,
"ctxt": 0
},
"value": "fn4",
"optional": false
},
"typeParams": null
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 2138,
"end": 2169,
"ctxt": 0
},
"expression": {
"type": "NewExpression",
"span": {
"start": 2138,
"end": 2168,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 2142,
"end": 2145,
"ctxt": 0
},
"value": "fn4",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 2162,
"end": 2164,
"ctxt": 0
},
"value": "",
"raw": "''"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 2166,
"end": 2167,
"ctxt": 0
},
"value": 3.0,
"raw": "3"
}
}
],
"typeArguments": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 2145,
"end": 2161,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 2146,
"end": 2152,
"ctxt": 0
},
"kind": "string"
},
{
"type": "TsKeywordType",
"span": {
"start": 2154,
"end": 2160,
"ctxt": 0
},
"kind": "number"
}
]
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 2170,
"end": 2201,
"ctxt": 0
},
"expression": {
"type": "NewExpression",
"span": {
"start": 2170,
"end": 2200,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 2174,
"end": 2177,
"ctxt": 0
},
"value": "fn4",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 2194,
"end": 2195,
"ctxt": 0
},
"value": 3.0,
"raw": "3"
}
},
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 2197,
"end": 2199,
"ctxt": 0
},
"value": "",
"raw": "''"
}
}
],
"typeArguments": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 2177,
"end": 2193,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 2178,
"end": 2184,
"ctxt": 0
},
"kind": "string"
},
{
"type": "TsKeywordType",
"span": {
"start": 2186,
"end": 2192,
"ctxt": 0
},
"kind": "number"
}
]
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 2211,
"end": 2242,
"ctxt": 0
},
"expression": {
"type": "NewExpression",
"span": {
"start": 2211,
"end": 2241,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 2215,
"end": 2218,
"ctxt": 0
},
"value": "fn4",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 2235,
"end": 2237,
"ctxt": 0
},
"value": "",
"raw": "''"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 2239,
"end": 2240,
"ctxt": 0
},
"value": 3.0,
"raw": "3"
}
}
],
"typeArguments": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 2218,
"end": 2234,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 2219,
"end": 2225,
"ctxt": 0
},
"kind": "number"
},
{
"type": "TsKeywordType",
"span": {
"start": 2227,
"end": 2233,
"ctxt": 0
},
"kind": "string"
}
]
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 2252,
"end": 2283,
"ctxt": 0
},
"expression": {
"type": "NewExpression",
"span": {
"start": 2252,
"end": 2282,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 2256,
"end": 2259,
"ctxt": 0
},
"value": "fn4",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 2276,
"end": 2277,
"ctxt": 0
},
"value": 3.0,
"raw": "3"
}
},
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 2279,
"end": 2281,
"ctxt": 0
},
"value": "",
"raw": "''"
}
}
],
"typeArguments": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 2259,
"end": 2275,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 2260,
"end": 2266,
"ctxt": 0
},
"kind": "number"
},
{
"type": "TsKeywordType",
"span": {
"start": 2268,
"end": 2274,
"ctxt": 0
},
"kind": "string"
}
]
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 2398,
"end": 2413,
"ctxt": 0
},
"expression": {
"type": "NewExpression",
"span": {
"start": 2398,
"end": 2412,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 2402,
"end": 2405,
"ctxt": 0
},
"value": "fn4",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 2406,
"end": 2408,
"ctxt": 0
},
"value": "",
"raw": "''"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 2410,
"end": 2411,
"ctxt": 0
},
"value": 3.0,
"raw": "3"
}
}
],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 2414,
"end": 2429,
"ctxt": 0
},
"expression": {
"type": "NewExpression",
"span": {
"start": 2414,
"end": 2428,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 2418,
"end": 2421,
"ctxt": 0
},
"value": "fn4",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 2422,
"end": 2423,
"ctxt": 0
},
"value": 3.0,
"raw": "3"
}
},
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 2425,
"end": 2427,
"ctxt": 0
},
"value": "",
"raw": "''"
}
}
],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 2430,
"end": 2452,
"ctxt": 0
},
"expression": {
"type": "NewExpression",
"span": {
"start": 2430,
"end": 2451,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 2434,
"end": 2437,
"ctxt": 0
},
"value": "fn4",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 2438,
"end": 2439,
"ctxt": 0
},
"value": 3.0,
"raw": "3"
}
},
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 2441,
"end": 2450,
"ctxt": 0
},
"value": "undefined",
"optional": false
}
}
],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 2453,
"end": 2471,
"ctxt": 0
},
"expression": {
"type": "NewExpression",
"span": {
"start": 2453,
"end": 2470,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 2457,
"end": 2460,
"ctxt": 0
},
"value": "fn4",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 2461,
"end": 2463,
"ctxt": 0
},
"value": "",
"raw": "''"
}
},
{
"spread": null,
"expression": {
"type": "NullLiteral",
"span": {
"start": 2465,
"end": 2469,
"ctxt": 0
}
}
}
],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 2574,
"end": 2609,
"ctxt": 0
},
"expression": {
"type": "NewExpression",
"span": {
"start": 2574,
"end": 2608,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 2578,
"end": 2581,
"ctxt": 0
},
"value": "fn4",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "NullLiteral",
"span": {
"start": 2597,
"end": 2601,
"ctxt": 0
}
}
},
{
"spread": null,
"expression": {
"type": "NullLiteral",
"span": {
"start": 2603,
"end": 2607,
"ctxt": 0
}
}
}
],
"typeArguments": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 2581,
"end": 2596,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 2582,
"end": 2589,
"ctxt": 0
},
"kind": "boolean"
},
{
"type": "TsTypeReference",
"span": {
"start": 2591,
"end": 2595,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 2591,
"end": 2595,
"ctxt": 0
},
"value": "Date",
"optional": false
},
"typeParams": null
}
]
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 2739,
"end": 2759,
"ctxt": 0
},
"expression": {
"type": "NewExpression",
"span": {
"start": 2739,
"end": 2758,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 2743,
"end": 2746,
"ctxt": 0
},
"value": "fn4",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "BooleanLiteral",
"span": {
"start": 2747,
"end": 2751,
"ctxt": 0
},
"value": true
}
},
{
"spread": null,
"expression": {
"type": "NullLiteral",
"span": {
"start": 2753,
"end": 2757,
"ctxt": 0
}
}
}
],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 2769,
"end": 2789,
"ctxt": 0
},
"expression": {
"type": "NewExpression",
"span": {
"start": 2769,
"end": 2788,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 2773,
"end": 2776,
"ctxt": 0
},
"value": "fn4",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "NullLiteral",
"span": {
"start": 2777,
"end": 2781,
"ctxt": 0
}
}
},
{
"spread": null,
"expression": {
"type": "BooleanLiteral",
"span": {
"start": 2783,
"end": 2787,
"ctxt": 0
},
"value": true
}
}
],
"typeArguments": null
}
},
{
"type": "TsInterfaceDeclaration",
"span": {
"start": 2884,
"end": 2983,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 2894,
"end": 2897,
"ctxt": 0
},
"value": "fn5",
"optional": false
},
"declare": false,
"typeParams": null,
"extends": [],
"body": {
"type": "TsInterfaceBody",
"span": {
"start": 2898,
"end": 2983,
"ctxt": 0
},
"body": [
{
"type": "TsConstructSignatureDeclaration",
"span": {
"start": 2904,
"end": 2940,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 2908,
"end": 2930,
"ctxt": 0
},
"value": "f",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2909,
"end": 2930,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsFunctionType",
"span": {
"start": 2911,
"end": 2930,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 2912,
"end": 2921,
"ctxt": 0
},
"value": "n",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2913,
"end": 2921,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 2915,
"end": 2921,
"ctxt": 0
},
"kind": "string"
}
}
}
],
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2923,
"end": 2930,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 2926,
"end": 2930,
"ctxt": 0
},
"kind": "void"
}
}
}
}
}
],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2931,
"end": 2939,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 2933,
"end": 2939,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
},
{
"type": "TsConstructSignatureDeclaration",
"span": {
"start": 2945,
"end": 2981,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 2949,
"end": 2971,
"ctxt": 0
},
"value": "f",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2950,
"end": 2971,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsFunctionType",
"span": {
"start": 2952,
"end": 2971,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 2953,
"end": 2962,
"ctxt": 0
},
"value": "n",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2954,
"end": 2962,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 2956,
"end": 2962,
"ctxt": 0
},
"kind": "number"
}
}
}
],
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2964,
"end": 2971,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 2967,
"end": 2971,
"ctxt": 0
},
"kind": "void"
}
}
}
}
}
],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2972,
"end": 2980,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 2974,
"end": 2980,
"ctxt": 0
},
"kind": "number"
}
},
"typeParams": null
}
]
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 2984,
"end": 2997,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 2988,
"end": 2996,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 2988,
"end": 2991,
"ctxt": 0
},
"value": "fn5",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2991,
"end": 2996,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 2993,
"end": 2996,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 2993,
"end": 2996,
"ctxt": 0
},
"value": "fn5",
"optional": false
},
"typeParams": null
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 2998,
"end": 3034,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 3002,
"end": 3033,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 3002,
"end": 3003,
"ctxt": 0
},
"value": "n",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "NewExpression",
"span": {
"start": 3006,
"end": 3033,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 3010,
"end": 3013,
"ctxt": 0
},
"value": "fn5",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "ArrowFunctionExpression",
"span": {
"start": 3014,
"end": 3032,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 3015,
"end": 3016,
"ctxt": 0
},
"value": "n",
"optional": false,
"typeAnnotation": null
}
],
"body": {
"type": "CallExpression",
"span": {
"start": 3021,
"end": 3032,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 3021,
"end": 3030,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 3021,
"end": 3022,
"ctxt": 0
},
"value": "n",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 3023,
"end": 3030,
"ctxt": 0
},
"value": "toFixed",
"optional": false
}
},
"arguments": [],
"typeArguments": null
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
}
}
],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 3035,
"end": 3071,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 3039,
"end": 3070,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 3039,
"end": 3040,
"ctxt": 0
},
"value": "s",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "NewExpression",
"span": {
"start": 3043,
"end": 3070,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 3047,
"end": 3050,
"ctxt": 0
},
"value": "fn5",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "ArrowFunctionExpression",
"span": {
"start": 3051,
"end": 3069,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 3052,
"end": 3053,
"ctxt": 0
},
"value": "n",
"optional": false,
"typeAnnotation": null
}
],
"body": {
"type": "CallExpression",
"span": {
"start": 3058,
"end": 3069,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 3058,
"end": 3066,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 3058,
"end": 3059,
"ctxt": 0
},
"value": "n",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 3060,
"end": 3066,
"ctxt": 0
},
"value": "substr",
"optional": false
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 3067,
"end": 3068,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
}
],
"typeArguments": null
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
}
}
],
"typeArguments": null
},
"definite": false
}
]
}
],
"interpreter": null
}