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

3990 lines
93 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 48,
"end": 3129,
"ctxt": 0
},
"body": [
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 57,
"end": 60,
"ctxt": 0
},
"value": "fn1",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 61,
"end": 66,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "AssignmentPattern",
"span": {
"start": 61,
"end": 66,
"ctxt": 0
},
"left": {
"type": "Identifier",
"span": {
"start": 61,
"end": 62,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 65,
"end": 66,
"ctxt": 0
},
"value": 3.0,
"raw": "3"
},
"typeAnnotation": null
}
}
],
"decorators": [],
"span": {
"start": 48,
"end": 68,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 78,
"end": 81,
"ctxt": 0
},
"value": "fn1",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 69,
"end": 87,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 84,
"end": 87,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 157,
"end": 161,
"ctxt": 0
},
"value": "fn2a",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 148,
"end": 164,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 174,
"end": 178,
"ctxt": 0
},
"value": "fn2a",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 165,
"end": 181,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 191,
"end": 195,
"ctxt": 0
},
"value": "fn2a",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 182,
"end": 202,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 198,
"end": 202,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 212,
"end": 216,
"ctxt": 0
},
"value": "fn2b",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 217,
"end": 228,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 217,
"end": 228,
"ctxt": 0
},
"value": "n",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 218,
"end": 228,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsArrayType",
"span": {
"start": 220,
"end": 228,
"ctxt": 0
},
"elemType": {
"type": "TsKeywordType",
"span": {
"start": 220,
"end": 226,
"ctxt": 0
},
"kind": "number"
}
}
}
}
}
],
"decorators": [],
"span": {
"start": 203,
"end": 230,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 240,
"end": 244,
"ctxt": 0
},
"value": "fn2b",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 245,
"end": 261,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 245,
"end": 261,
"ctxt": 0
},
"value": "n",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 246,
"end": 261,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 248,
"end": 261,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 248,
"end": 253,
"ctxt": 0
},
"value": "Array",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 253,
"end": 261,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 254,
"end": 260,
"ctxt": 0
},
"kind": "number"
}
]
}
}
}
}
}
],
"decorators": [],
"span": {
"start": 231,
"end": 263,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 273,
"end": 277,
"ctxt": 0
},
"value": "fn2b",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 264,
"end": 283,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 280,
"end": 283,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 366,
"end": 369,
"ctxt": 0
},
"value": "fn3",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 370,
"end": 379,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 370,
"end": 379,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 371,
"end": 379,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 373,
"end": 379,
"ctxt": 0
},
"kind": "string"
}
}
}
}
],
"decorators": [],
"span": {
"start": 357,
"end": 389,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 380,
"end": 388,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 382,
"end": 388,
"ctxt": 0
},
"kind": "string"
}
}
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 399,
"end": 402,
"ctxt": 0
},
"value": "fn3",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 403,
"end": 412,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 403,
"end": 412,
"ctxt": 0
},
"value": "y",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 404,
"end": 412,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 406,
"end": 412,
"ctxt": 0
},
"kind": "string"
}
}
}
}
],
"decorators": [],
"span": {
"start": 390,
"end": 422,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 413,
"end": 421,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 415,
"end": 421,
"ctxt": 0
},
"kind": "number"
}
}
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 432,
"end": 435,
"ctxt": 0
},
"value": "fn3",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 423,
"end": 463,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 443,
"end": 463,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 449,
"end": 461,
"ctxt": 0
},
"argument": {
"type": "NullLiteral",
"span": {
"start": 456,
"end": 460,
"ctxt": 0
}
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 437,
"end": 442,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 439,
"end": 442,
"ctxt": 0
},
"kind": "any"
}
}
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 554,
"end": 557,
"ctxt": 0
},
"value": "fn6",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 558,
"end": 569,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "RestElement",
"span": {
"start": 558,
"end": 569,
"ctxt": 0
},
"rest": {
"start": 558,
"end": 561,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 561,
"end": 562,
"ctxt": 0
},
"value": "t",
"optional": false,
"typeAnnotation": null
},
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 562,
"end": 569,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsArrayType",
"span": {
"start": 564,
"end": 569,
"ctxt": 0
},
"elemType": {
"type": "TsKeywordType",
"span": {
"start": 564,
"end": 567,
"ctxt": 0
},
"kind": "any"
}
}
}
}
}
],
"decorators": [],
"span": {
"start": 545,
"end": 571,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 581,
"end": 584,
"ctxt": 0
},
"value": "fn6",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 585,
"end": 592,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 585,
"end": 592,
"ctxt": 0
},
"value": "x",
"optional": true,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 587,
"end": 592,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 589,
"end": 592,
"ctxt": 0
},
"kind": "any"
}
}
}
}
],
"decorators": [],
"span": {
"start": 572,
"end": 594,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 604,
"end": 607,
"ctxt": 0
},
"value": "fn6",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 595,
"end": 613,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 610,
"end": 613,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 702,
"end": 705,
"ctxt": 0
},
"value": "fn7",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 706,
"end": 717,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "RestElement",
"span": {
"start": 706,
"end": 717,
"ctxt": 0
},
"rest": {
"start": 706,
"end": 709,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 709,
"end": 710,
"ctxt": 0
},
"value": "t",
"optional": false,
"typeAnnotation": null
},
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 710,
"end": 717,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsArrayType",
"span": {
"start": 712,
"end": 717,
"ctxt": 0
},
"elemType": {
"type": "TsKeywordType",
"span": {
"start": 712,
"end": 715,
"ctxt": 0
},
"kind": "any"
}
}
}
}
}
],
"decorators": [],
"span": {
"start": 693,
"end": 719,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 729,
"end": 732,
"ctxt": 0
},
"value": "fn7",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 733,
"end": 740,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 733,
"end": 740,
"ctxt": 0
},
"value": "x",
"optional": true,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 735,
"end": 740,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 737,
"end": 740,
"ctxt": 0
},
"kind": "any"
}
}
}
},
{
"type": "Parameter",
"span": {
"start": 742,
"end": 749,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 742,
"end": 749,
"ctxt": 0
},
"value": "y",
"optional": true,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 744,
"end": 749,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 746,
"end": 749,
"ctxt": 0
},
"kind": "any"
}
}
}
},
{
"type": "Parameter",
"span": {
"start": 751,
"end": 758,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 751,
"end": 758,
"ctxt": 0
},
"value": "z",
"optional": true,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 753,
"end": 758,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 755,
"end": 758,
"ctxt": 0
},
"kind": "any"
}
}
}
}
],
"decorators": [],
"span": {
"start": 720,
"end": 760,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 770,
"end": 773,
"ctxt": 0
},
"value": "fn7",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 761,
"end": 779,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 776,
"end": 779,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 851,
"end": 854,
"ctxt": 0
},
"value": "fn8",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 858,
"end": 867,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 858,
"end": 867,
"ctxt": 0
},
"value": "n",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 859,
"end": 867,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 861,
"end": 867,
"ctxt": 0
},
"kind": "string"
}
}
}
}
],
"decorators": [],
"span": {
"start": 842,
"end": 869,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 854,
"end": 857,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 855,
"end": 856,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 855,
"end": 856,
"ctxt": 0
},
"value": "T",
"optional": false
},
"in": false,
"out": false,
"const": false,
"constraint": null,
"default": null
}
]
},
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 879,
"end": 882,
"ctxt": 0
},
"value": "fn8",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 886,
"end": 895,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 886,
"end": 895,
"ctxt": 0
},
"value": "n",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 887,
"end": 895,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 889,
"end": 895,
"ctxt": 0
},
"kind": "string"
}
}
}
}
],
"decorators": [],
"span": {
"start": 870,
"end": 897,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 882,
"end": 885,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 883,
"end": 884,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 883,
"end": 884,
"ctxt": 0
},
"value": "S",
"optional": false
},
"in": false,
"out": false,
"const": false,
"constraint": null,
"default": null
}
]
},
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 907,
"end": 910,
"ctxt": 0
},
"value": "fn8",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 898,
"end": 916,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 913,
"end": 916,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 1028,
"end": 1031,
"ctxt": 0
},
"value": "fn9",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 1035,
"end": 1039,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 1035,
"end": 1039,
"ctxt": 0
},
"value": "n",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1036,
"end": 1039,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 1038,
"end": 1039,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 1038,
"end": 1039,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
}
}
}
],
"decorators": [],
"span": {
"start": 1019,
"end": 1041,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 1031,
"end": 1034,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 1032,
"end": 1033,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1032,
"end": 1033,
"ctxt": 0
},
"value": "T",
"optional": false
},
"in": false,
"out": false,
"const": false,
"constraint": null,
"default": null
}
]
},
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 1051,
"end": 1054,
"ctxt": 0
},
"value": "fn9",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 1058,
"end": 1062,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 1058,
"end": 1062,
"ctxt": 0
},
"value": "n",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1059,
"end": 1062,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 1061,
"end": 1062,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 1061,
"end": 1062,
"ctxt": 0
},
"value": "S",
"optional": false
},
"typeParams": null
}
}
}
}
],
"decorators": [],
"span": {
"start": 1042,
"end": 1064,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 1054,
"end": 1057,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 1055,
"end": 1056,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1055,
"end": 1056,
"ctxt": 0
},
"value": "S",
"optional": false
},
"in": false,
"out": false,
"const": false,
"constraint": null,
"default": null
}
]
},
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 1074,
"end": 1077,
"ctxt": 0
},
"value": "fn9",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 1065,
"end": 1083,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 1080,
"end": 1083,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 1162,
"end": 1166,
"ctxt": 0
},
"value": "fn10",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 1153,
"end": 1187,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 1166,
"end": 1184,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 1167,
"end": 1183,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1167,
"end": 1168,
"ctxt": 0
},
"value": "T",
"optional": false
},
"in": false,
"out": false,
"const": false,
"constraint": {
"type": "TsTypeReference",
"span": {
"start": 1177,
"end": 1183,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 1177,
"end": 1183,
"ctxt": 0
},
"value": "Window",
"optional": false
},
"typeParams": null
},
"default": null
}
]
},
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 1197,
"end": 1201,
"ctxt": 0
},
"value": "fn10",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 1188,
"end": 1220,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 1201,
"end": 1217,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 1202,
"end": 1216,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1202,
"end": 1203,
"ctxt": 0
},
"value": "S",
"optional": false
},
"in": false,
"out": false,
"const": false,
"constraint": {
"type": "TsTypeReference",
"span": {
"start": 1212,
"end": 1216,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 1212,
"end": 1216,
"ctxt": 0
},
"value": "Date",
"optional": false
},
"typeParams": null
},
"default": null
}
]
},
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 1230,
"end": 1234,
"ctxt": 0
},
"value": "fn10",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 1221,
"end": 1240,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 1237,
"end": 1240,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 1380,
"end": 1384,
"ctxt": 0
},
"value": "fn11",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 1371,
"end": 1405,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 1384,
"end": 1402,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 1385,
"end": 1401,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1385,
"end": 1386,
"ctxt": 0
},
"value": "T",
"optional": false
},
"in": false,
"out": false,
"const": false,
"constraint": {
"type": "TsTypeReference",
"span": {
"start": 1395,
"end": 1401,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 1395,
"end": 1401,
"ctxt": 0
},
"value": "Window",
"optional": false
},
"typeParams": null
},
"default": null
}
]
},
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 1415,
"end": 1419,
"ctxt": 0
},
"value": "fn11",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 1406,
"end": 1447,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 1419,
"end": 1444,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 1420,
"end": 1443,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1420,
"end": 1421,
"ctxt": 0
},
"value": "S",
"optional": false
},
"in": false,
"out": false,
"const": false,
"constraint": {
"type": "TsTypeQuery",
"span": {
"start": 1430,
"end": 1443,
"ctxt": 0
},
"exprName": {
"type": "Identifier",
"span": {
"start": 1437,
"end": 1443,
"ctxt": 0
},
"value": "window",
"optional": false
},
"typeArguments": null
},
"default": null
}
]
},
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 1457,
"end": 1461,
"ctxt": 0
},
"value": "fn11",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 1448,
"end": 1467,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 1464,
"end": 1467,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "TsInterfaceDeclaration",
"span": {
"start": 1599,
"end": 1648,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1609,
"end": 1613,
"ctxt": 0
},
"value": "List",
"optional": false
},
"declare": false,
"typeParams": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 1613,
"end": 1616,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 1614,
"end": 1615,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1614,
"end": 1615,
"ctxt": 0
},
"value": "T",
"optional": false
},
"in": false,
"out": false,
"const": false,
"constraint": null,
"default": null
}
]
},
"extends": [],
"body": {
"type": "TsInterfaceBody",
"span": {
"start": 1617,
"end": 1648,
"ctxt": 0
},
"body": [
{
"type": "TsPropertySignature",
"span": {
"start": 1623,
"end": 1646,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 1623,
"end": 1630,
"ctxt": 0
},
"value": "parents",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1630,
"end": 1645,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 1632,
"end": 1645,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 1632,
"end": 1636,
"ctxt": 0
},
"value": "List",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 1636,
"end": 1645,
"ctxt": 0
},
"params": [
{
"type": "TsTypeReference",
"span": {
"start": 1637,
"end": 1644,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 1637,
"end": 1641,
"ctxt": 0
},
"value": "List",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 1641,
"end": 1644,
"ctxt": 0
},
"params": [
{
"type": "TsTypeReference",
"span": {
"start": 1642,
"end": 1643,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 1642,
"end": 1643,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
]
}
}
]
}
}
},
"typeParams": null
}
]
}
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 1658,
"end": 1662,
"ctxt": 0
},
"value": "fn12",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 1649,
"end": 1692,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 1662,
"end": 1689,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 1663,
"end": 1688,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1663,
"end": 1664,
"ctxt": 0
},
"value": "T",
"optional": false
},
"in": false,
"out": false,
"const": false,
"constraint": {
"type": "TsTypeReference",
"span": {
"start": 1673,
"end": 1688,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 1673,
"end": 1677,
"ctxt": 0
},
"value": "List",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 1677,
"end": 1688,
"ctxt": 0
},
"params": [
{
"type": "TsTypeReference",
"span": {
"start": 1678,
"end": 1687,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 1678,
"end": 1682,
"ctxt": 0
},
"value": "List",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 1682,
"end": 1687,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 1683,
"end": 1686,
"ctxt": 0
},
"kind": "any"
}
]
}
}
]
}
},
"default": null
}
]
},
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 1702,
"end": 1706,
"ctxt": 0
},
"value": "fn12",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 1693,
"end": 1730,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 1706,
"end": 1727,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 1707,
"end": 1726,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1707,
"end": 1708,
"ctxt": 0
},
"value": "T",
"optional": false
},
"in": false,
"out": false,
"const": false,
"constraint": {
"type": "TsTypeReference",
"span": {
"start": 1717,
"end": 1726,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 1717,
"end": 1721,
"ctxt": 0
},
"value": "List",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 1721,
"end": 1726,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 1722,
"end": 1725,
"ctxt": 0
},
"kind": "any"
}
]
}
},
"default": null
}
]
},
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 1740,
"end": 1744,
"ctxt": 0
},
"value": "fn12",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 1731,
"end": 1750,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 1747,
"end": 1750,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 1808,
"end": 1811,
"ctxt": 0
},
"value": "cls",
"optional": false
},
"declare": false,
"span": {
"start": 1802,
"end": 1924,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassMethod",
"span": {
"start": 1818,
"end": 1829,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 1825,
"end": 1826,
"ctxt": 0
},
"value": "f",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 1818,
"end": 1829,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "method",
"isStatic": false,
"accessibility": "public",
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 1834,
"end": 1855,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 1842,
"end": 1843,
"ctxt": 0
},
"value": "f",
"optional": false
},
"function": {
"params": [
{
"type": "Parameter",
"span": {
"start": 1844,
"end": 1853,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 1844,
"end": 1853,
"ctxt": 0
},
"value": "s",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1845,
"end": 1853,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1847,
"end": 1853,
"ctxt": 0
},
"kind": "string"
}
}
}
}
],
"decorators": [],
"span": {
"start": 1834,
"end": 1855,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "method",
"isStatic": false,
"accessibility": "private",
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 1860,
"end": 1867,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 1860,
"end": 1861,
"ctxt": 0
},
"value": "f",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 1860,
"end": 1867,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 1864,
"end": 1867,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "method",
"isStatic": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 1873,
"end": 1894,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 1881,
"end": 1882,
"ctxt": 0
},
"value": "g",
"optional": false
},
"function": {
"params": [
{
"type": "Parameter",
"span": {
"start": 1883,
"end": 1892,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 1883,
"end": 1892,
"ctxt": 0
},
"value": "s",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1884,
"end": 1892,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1886,
"end": 1892,
"ctxt": 0
},
"kind": "string"
}
}
}
}
],
"decorators": [],
"span": {
"start": 1873,
"end": 1894,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "method",
"isStatic": false,
"accessibility": "private",
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 1899,
"end": 1910,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 1906,
"end": 1907,
"ctxt": 0
},
"value": "g",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 1899,
"end": 1910,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "method",
"isStatic": false,
"accessibility": "public",
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 1915,
"end": 1922,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 1915,
"end": 1916,
"ctxt": 0
},
"value": "g",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 1915,
"end": 1922,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 1919,
"end": 1922,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "method",
"isStatic": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
}
],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "TsModuleDeclaration",
"span": {
"start": 1969,
"end": 2149,
"ctxt": 0
},
"declare": false,
"global": false,
"id": {
"type": "Identifier",
"span": {
"start": 1976,
"end": 1977,
"ctxt": 0
},
"value": "M",
"optional": false
},
"body": {
"type": "TsModuleBlock",
"span": {
"start": 1978,
"end": 2149,
"ctxt": 0
},
"body": [
{
"type": "ExportDeclaration",
"span": {
"start": 1984,
"end": 2006,
"ctxt": 0
},
"declaration": {
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 2000,
"end": 2003,
"ctxt": 0
},
"value": "fn1",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 1991,
"end": 2006,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
}
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 2020,
"end": 2023,
"ctxt": 0
},
"value": "fn1",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 2024,
"end": 2033,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 2024,
"end": 2033,
"ctxt": 0
},
"value": "n",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2025,
"end": 2033,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 2027,
"end": 2033,
"ctxt": 0
},
"kind": "string"
}
}
}
}
],
"decorators": [],
"span": {
"start": 2011,
"end": 2035,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 2049,
"end": 2052,
"ctxt": 0
},
"value": "fn1",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 2040,
"end": 2058,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 2055,
"end": 2058,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 2074,
"end": 2077,
"ctxt": 0
},
"value": "fn2",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 2078,
"end": 2087,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 2078,
"end": 2087,
"ctxt": 0
},
"value": "n",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2079,
"end": 2087,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 2081,
"end": 2087,
"ctxt": 0
},
"kind": "string"
}
}
}
}
],
"decorators": [],
"span": {
"start": 2065,
"end": 2089,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "ExportDeclaration",
"span": {
"start": 2094,
"end": 2116,
"ctxt": 0
},
"declaration": {
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 2110,
"end": 2113,
"ctxt": 0
},
"value": "fn2",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 2101,
"end": 2116,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
}
},
{
"type": "ExportDeclaration",
"span": {
"start": 2121,
"end": 2146,
"ctxt": 0
},
"declaration": {
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 2137,
"end": 2140,
"ctxt": 0
},
"value": "fn2",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 2128,
"end": 2146,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 2143,
"end": 2146,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
}
}
]
}
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 2213,
"end": 2217,
"ctxt": 0
},
"value": "dfn1",
"optional": false
},
"declare": true,
"params": [],
"decorators": [],
"span": {
"start": 2196,
"end": 2220,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 2230,
"end": 2234,
"ctxt": 0
},
"value": "dfn1",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 2235,
"end": 2244,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 2235,
"end": 2244,
"ctxt": 0
},
"value": "s",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2236,
"end": 2244,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 2238,
"end": 2244,
"ctxt": 0
},
"kind": "string"
}
}
}
}
],
"decorators": [],
"span": {
"start": 2221,
"end": 2246,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 2256,
"end": 2260,
"ctxt": 0
},
"value": "dfn1",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 2247,
"end": 2266,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 2263,
"end": 2266,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 2277,
"end": 2281,
"ctxt": 0
},
"value": "dfn2",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 2268,
"end": 2284,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 2302,
"end": 2306,
"ctxt": 0
},
"value": "dfn2",
"optional": false
},
"declare": true,
"params": [
{
"type": "Parameter",
"span": {
"start": 2307,
"end": 2316,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 2307,
"end": 2316,
"ctxt": 0
},
"value": "s",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2308,
"end": 2316,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 2310,
"end": 2316,
"ctxt": 0
},
"kind": "string"
}
}
}
}
],
"decorators": [],
"span": {
"start": 2285,
"end": 2318,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 2328,
"end": 2332,
"ctxt": 0
},
"value": "dfn2",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 2319,
"end": 2338,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 2335,
"end": 2338,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 2418,
"end": 2429,
"ctxt": 0
},
"value": "fewerParams",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 2409,
"end": 2432,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 2442,
"end": 2453,
"ctxt": 0
},
"value": "fewerParams",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 2454,
"end": 2463,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 2454,
"end": 2463,
"ctxt": 0
},
"value": "n",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2455,
"end": 2463,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 2457,
"end": 2463,
"ctxt": 0
},
"kind": "string"
}
}
}
}
],
"decorators": [],
"span": {
"start": 2433,
"end": 2468,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 2465,
"end": 2468,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 2597,
"end": 2601,
"ctxt": 0
},
"value": "fn13",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 2602,
"end": 2611,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 2602,
"end": 2611,
"ctxt": 0
},
"value": "n",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2603,
"end": 2611,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 2605,
"end": 2611,
"ctxt": 0
},
"kind": "string"
}
}
}
}
],
"decorators": [],
"span": {
"start": 2588,
"end": 2613,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 2623,
"end": 2627,
"ctxt": 0
},
"value": "fn13",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 2628,
"end": 2637,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 2628,
"end": 2637,
"ctxt": 0
},
"value": "n",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2629,
"end": 2637,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 2631,
"end": 2637,
"ctxt": 0
},
"kind": "number"
}
}
}
}
],
"decorators": [],
"span": {
"start": 2614,
"end": 2642,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 2639,
"end": 2642,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 2743,
"end": 2747,
"ctxt": 0
},
"value": "fn14",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 2748,
"end": 2757,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 2748,
"end": 2757,
"ctxt": 0
},
"value": "n",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2749,
"end": 2757,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 2751,
"end": 2757,
"ctxt": 0
},
"kind": "string"
}
}
}
}
],
"decorators": [],
"span": {
"start": 2734,
"end": 2767,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 2758,
"end": 2766,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 2760,
"end": 2766,
"ctxt": 0
},
"kind": "string"
}
}
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 2777,
"end": 2781,
"ctxt": 0
},
"value": "fn14",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 2768,
"end": 2801,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 2784,
"end": 2801,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 2790,
"end": 2799,
"ctxt": 0
},
"argument": {
"type": "NumericLiteral",
"span": {
"start": 2797,
"end": 2798,
"ctxt": 0
},
"value": 3.0,
"raw": "3"
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 2902,
"end": 2906,
"ctxt": 0
},
"value": "fn15",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 2893,
"end": 2939,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 2906,
"end": 2933,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 2907,
"end": 2932,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 2907,
"end": 2908,
"ctxt": 0
},
"value": "T",
"optional": false
},
"in": false,
"out": false,
"const": false,
"constraint": {
"type": "TsTypeReference",
"span": {
"start": 2917,
"end": 2932,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 2917,
"end": 2921,
"ctxt": 0
},
"value": "List",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 2921,
"end": 2932,
"ctxt": 0
},
"params": [
{
"type": "TsTypeReference",
"span": {
"start": 2922,
"end": 2931,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 2922,
"end": 2926,
"ctxt": 0
},
"value": "List",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 2926,
"end": 2931,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 2927,
"end": 2930,
"ctxt": 0
},
"kind": "any"
}
]
}
}
]
}
},
"default": null
}
]
},
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 2935,
"end": 2938,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 2937,
"end": 2938,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 2937,
"end": 2938,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
}
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 2949,
"end": 2953,
"ctxt": 0
},
"value": "fn15",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 2940,
"end": 2980,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 2953,
"end": 2974,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 2954,
"end": 2973,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 2954,
"end": 2955,
"ctxt": 0
},
"value": "T",
"optional": false
},
"in": false,
"out": false,
"const": false,
"constraint": {
"type": "TsTypeReference",
"span": {
"start": 2964,
"end": 2973,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 2964,
"end": 2968,
"ctxt": 0
},
"value": "List",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 2968,
"end": 2973,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 2969,
"end": 2972,
"ctxt": 0
},
"kind": "any"
}
]
}
},
"default": null
}
]
},
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 2976,
"end": 2979,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 2978,
"end": 2979,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 2978,
"end": 2979,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
}
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 2990,
"end": 2994,
"ctxt": 0
},
"value": "fn15",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 2981,
"end": 3022,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 2997,
"end": 3022,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 3003,
"end": 3020,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 3010,
"end": 3019,
"ctxt": 0
},
"value": "undefined",
"optional": false
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 3088,
"end": 3096,
"ctxt": 0
},
"value": "initExpr",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 3097,
"end": 3103,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "AssignmentPattern",
"span": {
"start": 3097,
"end": 3103,
"ctxt": 0
},
"left": {
"type": "Identifier",
"span": {
"start": 3097,
"end": 3098,
"ctxt": 0
},
"value": "n",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 3101,
"end": 3103,
"ctxt": 0
},
"value": 13.0,
"raw": "13"
},
"typeAnnotation": null
}
}
],
"decorators": [],
"span": {
"start": 3079,
"end": 3105,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 3115,
"end": 3123,
"ctxt": 0
},
"value": "initExpr",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 3106,
"end": 3129,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 3126,
"end": 3129,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
}
],
"interpreter": null
}