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

14278 lines
374 KiB
JSON

{
"type": "Script",
"span": {
"start": 41,
"end": 9005,
"ctxt": 0
},
"body": [
{
"type": "TsTypeAliasDeclaration",
"span": {
"start": 41,
"end": 64,
"ctxt": 0
},
"declare": false,
"id": {
"type": "Identifier",
"span": {
"start": 46,
"end": 49,
"ctxt": 0
},
"value": "T01",
"optional": false
},
"typeParams": null,
"typeAnnotation": {
"type": "TsIntersectionType",
"span": {
"start": 52,
"end": 63,
"ctxt": 0
},
"types": [
{
"type": "TsTypeLiteral",
"span": {
"start": 52,
"end": 54,
"ctxt": 0
},
"members": []
},
{
"type": "TsKeywordType",
"span": {
"start": 57,
"end": 63,
"ctxt": 0
},
"kind": "string"
}
]
}
},
{
"type": "TsTypeAliasDeclaration",
"span": {
"start": 76,
"end": 96,
"ctxt": 0
},
"declare": false,
"id": {
"type": "Identifier",
"span": {
"start": 81,
"end": 84,
"ctxt": 0
},
"value": "T02",
"optional": false
},
"typeParams": null,
"typeAnnotation": {
"type": "TsIntersectionType",
"span": {
"start": 87,
"end": 95,
"ctxt": 0
},
"types": [
{
"type": "TsTypeLiteral",
"span": {
"start": 87,
"end": 89,
"ctxt": 0
},
"members": []
},
{
"type": "TsLiteralType",
"span": {
"start": 92,
"end": 95,
"ctxt": 0
},
"literal": {
"type": "StringLiteral",
"span": {
"start": 92,
"end": 95,
"ctxt": 0
},
"value": "a",
"raw": "'a'"
}
}
]
}
},
{
"type": "TsTypeAliasDeclaration",
"span": {
"start": 105,
"end": 128,
"ctxt": 0
},
"declare": false,
"id": {
"type": "Identifier",
"span": {
"start": 110,
"end": 113,
"ctxt": 0
},
"value": "T03",
"optional": false
},
"typeParams": null,
"typeAnnotation": {
"type": "TsIntersectionType",
"span": {
"start": 116,
"end": 127,
"ctxt": 0
},
"types": [
{
"type": "TsTypeLiteral",
"span": {
"start": 116,
"end": 118,
"ctxt": 0
},
"members": []
},
{
"type": "TsKeywordType",
"span": {
"start": 121,
"end": 127,
"ctxt": 0
},
"kind": "object"
}
]
}
},
{
"type": "TsTypeAliasDeclaration",
"span": {
"start": 140,
"end": 170,
"ctxt": 0
},
"declare": false,
"id": {
"type": "Identifier",
"span": {
"start": 145,
"end": 148,
"ctxt": 0
},
"value": "T04",
"optional": false
},
"typeParams": null,
"typeAnnotation": {
"type": "TsIntersectionType",
"span": {
"start": 151,
"end": 169,
"ctxt": 0
},
"types": [
{
"type": "TsTypeLiteral",
"span": {
"start": 151,
"end": 153,
"ctxt": 0
},
"members": []
},
{
"type": "TsTypeLiteral",
"span": {
"start": 156,
"end": 169,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 158,
"end": 167,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 158,
"end": 159,
"ctxt": 0
},
"value": "x",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 159,
"end": 167,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 161,
"end": 167,
"ctxt": 0
},
"kind": "number"
}
},
"typeParams": null
}
]
}
]
}
},
{
"type": "TsTypeAliasDeclaration",
"span": {
"start": 189,
"end": 210,
"ctxt": 0
},
"declare": false,
"id": {
"type": "Identifier",
"span": {
"start": 194,
"end": 197,
"ctxt": 0
},
"value": "T05",
"optional": false
},
"typeParams": null,
"typeAnnotation": {
"type": "TsIntersectionType",
"span": {
"start": 200,
"end": 209,
"ctxt": 0
},
"types": [
{
"type": "TsTypeLiteral",
"span": {
"start": 200,
"end": 202,
"ctxt": 0
},
"members": []
},
{
"type": "TsKeywordType",
"span": {
"start": 205,
"end": 209,
"ctxt": 0
},
"kind": "null"
}
]
}
},
{
"type": "TsTypeAliasDeclaration",
"span": {
"start": 221,
"end": 247,
"ctxt": 0
},
"declare": false,
"id": {
"type": "Identifier",
"span": {
"start": 226,
"end": 229,
"ctxt": 0
},
"value": "T06",
"optional": false
},
"typeParams": null,
"typeAnnotation": {
"type": "TsIntersectionType",
"span": {
"start": 232,
"end": 246,
"ctxt": 0
},
"types": [
{
"type": "TsTypeLiteral",
"span": {
"start": 232,
"end": 234,
"ctxt": 0
},
"members": []
},
{
"type": "TsKeywordType",
"span": {
"start": 237,
"end": 246,
"ctxt": 0
},
"kind": "undefined"
}
]
}
},
{
"type": "TsTypeAliasDeclaration",
"span": {
"start": 258,
"end": 286,
"ctxt": 0
},
"declare": false,
"id": {
"type": "Identifier",
"span": {
"start": 263,
"end": 266,
"ctxt": 0
},
"value": "T07",
"optional": false
},
"typeParams": null,
"typeAnnotation": {
"type": "TsIntersectionType",
"span": {
"start": 269,
"end": 285,
"ctxt": 0
},
"types": [
{
"type": "TsKeywordType",
"span": {
"start": 269,
"end": 278,
"ctxt": 0
},
"kind": "undefined"
},
{
"type": "TsKeywordType",
"span": {
"start": 281,
"end": 285,
"ctxt": 0
},
"kind": "void"
}
]
}
},
{
"type": "TsTypeAliasDeclaration",
"span": {
"start": 302,
"end": 325,
"ctxt": 0
},
"declare": false,
"id": {
"type": "Identifier",
"span": {
"start": 307,
"end": 310,
"ctxt": 0
},
"value": "T10",
"optional": false
},
"typeParams": null,
"typeAnnotation": {
"type": "TsIntersectionType",
"span": {
"start": 313,
"end": 324,
"ctxt": 0
},
"types": [
{
"type": "TsKeywordType",
"span": {
"start": 313,
"end": 319,
"ctxt": 0
},
"kind": "string"
},
{
"type": "TsTypeLiteral",
"span": {
"start": 322,
"end": 324,
"ctxt": 0
},
"members": []
}
]
}
},
{
"type": "TsTypeAliasDeclaration",
"span": {
"start": 350,
"end": 373,
"ctxt": 0
},
"declare": false,
"id": {
"type": "Identifier",
"span": {
"start": 355,
"end": 358,
"ctxt": 0
},
"value": "T11",
"optional": false
},
"typeParams": null,
"typeAnnotation": {
"type": "TsIntersectionType",
"span": {
"start": 361,
"end": 372,
"ctxt": 0
},
"types": [
{
"type": "TsKeywordType",
"span": {
"start": 361,
"end": 367,
"ctxt": 0
},
"kind": "number"
},
{
"type": "TsTypeLiteral",
"span": {
"start": 370,
"end": 372,
"ctxt": 0
},
"members": []
}
]
}
},
{
"type": "TsTypeAliasDeclaration",
"span": {
"start": 398,
"end": 421,
"ctxt": 0
},
"declare": false,
"id": {
"type": "Identifier",
"span": {
"start": 403,
"end": 406,
"ctxt": 0
},
"value": "T12",
"optional": false
},
"typeParams": null,
"typeAnnotation": {
"type": "TsIntersectionType",
"span": {
"start": 409,
"end": 420,
"ctxt": 0
},
"types": [
{
"type": "TsKeywordType",
"span": {
"start": 409,
"end": 415,
"ctxt": 0
},
"kind": "bigint"
},
{
"type": "TsTypeLiteral",
"span": {
"start": 418,
"end": 420,
"ctxt": 0
},
"members": []
}
]
}
},
{
"type": "TsTypeAliasDeclaration",
"span": {
"start": 447,
"end": 466,
"ctxt": 0
},
"declare": false,
"id": {
"type": "Identifier",
"span": {
"start": 452,
"end": 460,
"ctxt": 0
},
"value": "ThisNode",
"optional": false
},
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 463,
"end": 465,
"ctxt": 0
},
"members": []
}
},
{
"type": "TsTypeAliasDeclaration",
"span": {
"start": 467,
"end": 486,
"ctxt": 0
},
"declare": false,
"id": {
"type": "Identifier",
"span": {
"start": 472,
"end": 480,
"ctxt": 0
},
"value": "ThatNode",
"optional": false
},
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 483,
"end": 485,
"ctxt": 0
},
"members": []
}
},
{
"type": "TsTypeAliasDeclaration",
"span": {
"start": 487,
"end": 529,
"ctxt": 0
},
"declare": false,
"id": {
"type": "Identifier",
"span": {
"start": 492,
"end": 506,
"ctxt": 0
},
"value": "ThisOrThatNode",
"optional": false
},
"typeParams": null,
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 509,
"end": 528,
"ctxt": 0
},
"types": [
{
"type": "TsTypeReference",
"span": {
"start": 509,
"end": 517,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 509,
"end": 517,
"ctxt": 0
},
"value": "ThisNode",
"optional": false
},
"typeParams": null
},
{
"type": "TsTypeReference",
"span": {
"start": 520,
"end": 528,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 520,
"end": 528,
"ctxt": 0
},
"value": "ThatNode",
"optional": false
},
"typeParams": null
}
]
}
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 540,
"end": 543,
"ctxt": 0
},
"value": "f01",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 544,
"end": 554,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 544,
"end": 554,
"ctxt": 0
},
"value": "u",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 545,
"end": 554,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 547,
"end": 554,
"ctxt": 0
},
"kind": "unknown"
}
}
}
}
],
"decorators": [],
"span": {
"start": 531,
"end": 734,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 556,
"end": 734,
"ctxt": 0
},
"stmts": [
{
"type": "VariableDeclaration",
"span": {
"start": 562,
"end": 577,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 566,
"end": 576,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 566,
"end": 568,
"ctxt": 0
},
"value": "x1",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 568,
"end": 572,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 570,
"end": 572,
"ctxt": 0
},
"members": []
}
}
},
"init": {
"type": "Identifier",
"span": {
"start": 575,
"end": 576,
"ctxt": 0
},
"value": "u",
"optional": false
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 592,
"end": 626,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 596,
"end": 625,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 596,
"end": 598,
"ctxt": 0
},
"value": "x2",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 598,
"end": 621,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 600,
"end": 621,
"ctxt": 0
},
"types": [
{
"type": "TsTypeLiteral",
"span": {
"start": 600,
"end": 602,
"ctxt": 0
},
"members": []
},
{
"type": "TsKeywordType",
"span": {
"start": 605,
"end": 609,
"ctxt": 0
},
"kind": "null"
},
{
"type": "TsKeywordType",
"span": {
"start": 612,
"end": 621,
"ctxt": 0
},
"kind": "undefined"
}
]
}
}
},
"init": {
"type": "Identifier",
"span": {
"start": 624,
"end": 625,
"ctxt": 0
},
"value": "u",
"optional": false
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 631,
"end": 681,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 635,
"end": 680,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 635,
"end": 637,
"ctxt": 0
},
"value": "x3",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 637,
"end": 676,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 639,
"end": 676,
"ctxt": 0
},
"types": [
{
"type": "TsTypeLiteral",
"span": {
"start": 639,
"end": 641,
"ctxt": 0
},
"members": []
},
{
"type": "TsTypeLiteral",
"span": {
"start": 644,
"end": 657,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 646,
"end": 655,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 646,
"end": 647,
"ctxt": 0
},
"value": "x",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 647,
"end": 655,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 649,
"end": 655,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
}
]
},
{
"type": "TsKeywordType",
"span": {
"start": 660,
"end": 664,
"ctxt": 0
},
"kind": "null"
},
{
"type": "TsKeywordType",
"span": {
"start": 667,
"end": 676,
"ctxt": 0
},
"kind": "undefined"
}
]
}
}
},
"init": {
"type": "Identifier",
"span": {
"start": 679,
"end": 680,
"ctxt": 0
},
"value": "u",
"optional": false
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 686,
"end": 732,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 690,
"end": 731,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 690,
"end": 692,
"ctxt": 0
},
"value": "x4",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 692,
"end": 727,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 694,
"end": 727,
"ctxt": 0
},
"types": [
{
"type": "TsTypeReference",
"span": {
"start": 694,
"end": 708,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 694,
"end": 708,
"ctxt": 0
},
"value": "ThisOrThatNode",
"optional": false
},
"typeParams": null
},
{
"type": "TsKeywordType",
"span": {
"start": 711,
"end": 715,
"ctxt": 0
},
"kind": "null"
},
{
"type": "TsKeywordType",
"span": {
"start": 718,
"end": 727,
"ctxt": 0
},
"kind": "undefined"
}
]
}
}
},
"init": {
"type": "Identifier",
"span": {
"start": 730,
"end": 731,
"ctxt": 0
},
"value": "u",
"optional": false
},
"definite": false
}
]
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 745,
"end": 748,
"ctxt": 0
},
"value": "f10",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 749,
"end": 759,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 749,
"end": 759,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 750,
"end": 759,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 752,
"end": 759,
"ctxt": 0
},
"kind": "unknown"
}
}
}
}
],
"decorators": [],
"span": {
"start": 736,
"end": 919,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 761,
"end": 919,
"ctxt": 0
},
"stmts": [
{
"type": "IfStatement",
"span": {
"start": 767,
"end": 839,
"ctxt": 0
},
"test": {
"type": "Identifier",
"span": {
"start": 771,
"end": 772,
"ctxt": 0
},
"value": "x",
"optional": false
},
"consequent": {
"type": "BlockStatement",
"span": {
"start": 774,
"end": 799,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 784,
"end": 786,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 784,
"end": 785,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
]
},
"alternate": {
"type": "BlockStatement",
"span": {
"start": 809,
"end": 839,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 819,
"end": 821,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 819,
"end": 820,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
]
}
},
{
"type": "IfStatement",
"span": {
"start": 844,
"end": 917,
"ctxt": 0
},
"test": {
"type": "UnaryExpression",
"span": {
"start": 848,
"end": 850,
"ctxt": 0
},
"operator": "!",
"argument": {
"type": "Identifier",
"span": {
"start": 849,
"end": 850,
"ctxt": 0
},
"value": "x",
"optional": false
}
},
"consequent": {
"type": "BlockStatement",
"span": {
"start": 852,
"end": 882,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 862,
"end": 864,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 862,
"end": 863,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
]
},
"alternate": {
"type": "BlockStatement",
"span": {
"start": 892,
"end": 917,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 902,
"end": 904,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 902,
"end": 903,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
]
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 930,
"end": 933,
"ctxt": 0
},
"value": "f11",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 937,
"end": 941,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 937,
"end": 941,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 938,
"end": 941,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 940,
"end": 941,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 940,
"end": 941,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
}
}
}
],
"decorators": [],
"span": {
"start": 921,
"end": 1097,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 943,
"end": 1097,
"ctxt": 0
},
"stmts": [
{
"type": "IfStatement",
"span": {
"start": 949,
"end": 1019,
"ctxt": 0
},
"test": {
"type": "Identifier",
"span": {
"start": 953,
"end": 954,
"ctxt": 0
},
"value": "x",
"optional": false
},
"consequent": {
"type": "BlockStatement",
"span": {
"start": 956,
"end": 985,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 966,
"end": 968,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 966,
"end": 967,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
]
},
"alternate": {
"type": "BlockStatement",
"span": {
"start": 995,
"end": 1019,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 1005,
"end": 1007,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1005,
"end": 1006,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
]
}
},
{
"type": "IfStatement",
"span": {
"start": 1024,
"end": 1095,
"ctxt": 0
},
"test": {
"type": "UnaryExpression",
"span": {
"start": 1028,
"end": 1030,
"ctxt": 0
},
"operator": "!",
"argument": {
"type": "Identifier",
"span": {
"start": 1029,
"end": 1030,
"ctxt": 0
},
"value": "x",
"optional": false
}
},
"consequent": {
"type": "BlockStatement",
"span": {
"start": 1032,
"end": 1056,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 1042,
"end": 1044,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1042,
"end": 1043,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
]
},
"alternate": {
"type": "BlockStatement",
"span": {
"start": 1066,
"end": 1095,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 1076,
"end": 1078,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1076,
"end": 1077,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
]
}
}
]
},
"generator": false,
"async": false,
"typeParameters": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 933,
"end": 936,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 934,
"end": 935,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 934,
"end": 935,
"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": 1108,
"end": 1111,
"ctxt": 0
},
"value": "f12",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 1126,
"end": 1130,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 1126,
"end": 1130,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1127,
"end": 1130,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 1129,
"end": 1130,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 1129,
"end": 1130,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
}
}
}
],
"decorators": [],
"span": {
"start": 1099,
"end": 1205,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 1132,
"end": 1205,
"ctxt": 0
},
"stmts": [
{
"type": "IfStatement",
"span": {
"start": 1138,
"end": 1203,
"ctxt": 0
},
"test": {
"type": "Identifier",
"span": {
"start": 1142,
"end": 1143,
"ctxt": 0
},
"value": "x",
"optional": false
},
"consequent": {
"type": "BlockStatement",
"span": {
"start": 1145,
"end": 1169,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 1155,
"end": 1157,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1155,
"end": 1156,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
]
},
"alternate": {
"type": "BlockStatement",
"span": {
"start": 1179,
"end": 1203,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 1189,
"end": 1191,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1189,
"end": 1190,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
]
}
}
]
},
"generator": false,
"async": false,
"typeParameters": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 1111,
"end": 1125,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 1112,
"end": 1124,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1112,
"end": 1113,
"ctxt": 0
},
"value": "T",
"optional": false
},
"in": false,
"out": false,
"const": false,
"constraint": {
"type": "TsTypeLiteral",
"span": {
"start": 1122,
"end": 1124,
"ctxt": 0
},
"members": []
},
"default": null
}
]
},
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 1216,
"end": 1219,
"ctxt": 0
},
"value": "f20",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 1220,
"end": 1230,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 1220,
"end": 1230,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1221,
"end": 1230,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1223,
"end": 1230,
"ctxt": 0
},
"kind": "unknown"
}
}
}
}
],
"decorators": [],
"span": {
"start": 1207,
"end": 1737,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 1232,
"end": 1737,
"ctxt": 0
},
"stmts": [
{
"type": "IfStatement",
"span": {
"start": 1238,
"end": 1333,
"ctxt": 0
},
"test": {
"type": "BinaryExpression",
"span": {
"start": 1242,
"end": 1257,
"ctxt": 0
},
"operator": "!==",
"left": {
"type": "Identifier",
"span": {
"start": 1242,
"end": 1243,
"ctxt": 0
},
"value": "x",
"optional": false
},
"right": {
"type": "Identifier",
"span": {
"start": 1248,
"end": 1257,
"ctxt": 0
},
"value": "undefined",
"optional": false
}
},
"consequent": {
"type": "BlockStatement",
"span": {
"start": 1259,
"end": 1291,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 1269,
"end": 1271,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1269,
"end": 1270,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
]
},
"alternate": {
"type": "BlockStatement",
"span": {
"start": 1301,
"end": 1333,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 1311,
"end": 1313,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1311,
"end": 1312,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
]
}
},
{
"type": "IfStatement",
"span": {
"start": 1338,
"end": 1428,
"ctxt": 0
},
"test": {
"type": "BinaryExpression",
"span": {
"start": 1342,
"end": 1352,
"ctxt": 0
},
"operator": "!==",
"left": {
"type": "Identifier",
"span": {
"start": 1342,
"end": 1343,
"ctxt": 0
},
"value": "x",
"optional": false
},
"right": {
"type": "NullLiteral",
"span": {
"start": 1348,
"end": 1352,
"ctxt": 0
}
}
},
"consequent": {
"type": "BlockStatement",
"span": {
"start": 1354,
"end": 1391,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 1364,
"end": 1366,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1364,
"end": 1365,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
]
},
"alternate": {
"type": "BlockStatement",
"span": {
"start": 1401,
"end": 1428,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 1411,
"end": 1413,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1411,
"end": 1412,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
]
}
},
{
"type": "IfStatement",
"span": {
"start": 1433,
"end": 1542,
"ctxt": 0
},
"test": {
"type": "BinaryExpression",
"span": {
"start": 1437,
"end": 1466,
"ctxt": 0
},
"operator": "&&",
"left": {
"type": "BinaryExpression",
"span": {
"start": 1437,
"end": 1452,
"ctxt": 0
},
"operator": "!==",
"left": {
"type": "Identifier",
"span": {
"start": 1437,
"end": 1438,
"ctxt": 0
},
"value": "x",
"optional": false
},
"right": {
"type": "Identifier",
"span": {
"start": 1443,
"end": 1452,
"ctxt": 0
},
"value": "undefined",
"optional": false
}
},
"right": {
"type": "BinaryExpression",
"span": {
"start": 1456,
"end": 1466,
"ctxt": 0
},
"operator": "!==",
"left": {
"type": "Identifier",
"span": {
"start": 1456,
"end": 1457,
"ctxt": 0
},
"value": "x",
"optional": false
},
"right": {
"type": "NullLiteral",
"span": {
"start": 1462,
"end": 1466,
"ctxt": 0
}
}
}
},
"consequent": {
"type": "BlockStatement",
"span": {
"start": 1468,
"end": 1493,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 1478,
"end": 1480,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1478,
"end": 1479,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
]
},
"alternate": {
"type": "BlockStatement",
"span": {
"start": 1503,
"end": 1542,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 1513,
"end": 1515,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1513,
"end": 1514,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
]
}
},
{
"type": "IfStatement",
"span": {
"start": 1547,
"end": 1641,
"ctxt": 0
},
"test": {
"type": "BinaryExpression",
"span": {
"start": 1551,
"end": 1565,
"ctxt": 0
},
"operator": "!=",
"left": {
"type": "Identifier",
"span": {
"start": 1551,
"end": 1552,
"ctxt": 0
},
"value": "x",
"optional": false
},
"right": {
"type": "Identifier",
"span": {
"start": 1556,
"end": 1565,
"ctxt": 0
},
"value": "undefined",
"optional": false
}
},
"consequent": {
"type": "BlockStatement",
"span": {
"start": 1567,
"end": 1592,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 1577,
"end": 1579,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1577,
"end": 1578,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
]
},
"alternate": {
"type": "BlockStatement",
"span": {
"start": 1602,
"end": 1641,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 1612,
"end": 1614,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1612,
"end": 1613,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
]
}
},
{
"type": "IfStatement",
"span": {
"start": 1646,
"end": 1735,
"ctxt": 0
},
"test": {
"type": "BinaryExpression",
"span": {
"start": 1650,
"end": 1659,
"ctxt": 0
},
"operator": "!=",
"left": {
"type": "Identifier",
"span": {
"start": 1650,
"end": 1651,
"ctxt": 0
},
"value": "x",
"optional": false
},
"right": {
"type": "NullLiteral",
"span": {
"start": 1655,
"end": 1659,
"ctxt": 0
}
}
},
"consequent": {
"type": "BlockStatement",
"span": {
"start": 1661,
"end": 1686,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 1671,
"end": 1673,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1671,
"end": 1672,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
]
},
"alternate": {
"type": "BlockStatement",
"span": {
"start": 1696,
"end": 1735,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 1706,
"end": 1708,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1706,
"end": 1707,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
]
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 1748,
"end": 1751,
"ctxt": 0
},
"value": "f21",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 1755,
"end": 1759,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 1755,
"end": 1759,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1756,
"end": 1759,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 1758,
"end": 1759,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 1758,
"end": 1759,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
}
}
}
],
"decorators": [],
"span": {
"start": 1739,
"end": 2234,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 1761,
"end": 2234,
"ctxt": 0
},
"stmts": [
{
"type": "IfStatement",
"span": {
"start": 1767,
"end": 1860,
"ctxt": 0
},
"test": {
"type": "BinaryExpression",
"span": {
"start": 1771,
"end": 1786,
"ctxt": 0
},
"operator": "!==",
"left": {
"type": "Identifier",
"span": {
"start": 1771,
"end": 1772,
"ctxt": 0
},
"value": "x",
"optional": false
},
"right": {
"type": "Identifier",
"span": {
"start": 1777,
"end": 1786,
"ctxt": 0
},
"value": "undefined",
"optional": false
}
},
"consequent": {
"type": "BlockStatement",
"span": {
"start": 1788,
"end": 1826,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 1798,
"end": 1800,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1798,
"end": 1799,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
]
},
"alternate": {
"type": "BlockStatement",
"span": {
"start": 1836,
"end": 1860,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 1846,
"end": 1848,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1846,
"end": 1847,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
]
}
},
{
"type": "IfStatement",
"span": {
"start": 1865,
"end": 1958,
"ctxt": 0
},
"test": {
"type": "BinaryExpression",
"span": {
"start": 1869,
"end": 1879,
"ctxt": 0
},
"operator": "!==",
"left": {
"type": "Identifier",
"span": {
"start": 1869,
"end": 1870,
"ctxt": 0
},
"value": "x",
"optional": false
},
"right": {
"type": "NullLiteral",
"span": {
"start": 1875,
"end": 1879,
"ctxt": 0
}
}
},
"consequent": {
"type": "BlockStatement",
"span": {
"start": 1881,
"end": 1924,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 1891,
"end": 1893,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1891,
"end": 1892,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
]
},
"alternate": {
"type": "BlockStatement",
"span": {
"start": 1934,
"end": 1958,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 1944,
"end": 1946,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1944,
"end": 1945,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
]
}
},
{
"type": "IfStatement",
"span": {
"start": 1963,
"end": 2061,
"ctxt": 0
},
"test": {
"type": "BinaryExpression",
"span": {
"start": 1967,
"end": 1996,
"ctxt": 0
},
"operator": "&&",
"left": {
"type": "BinaryExpression",
"span": {
"start": 1967,
"end": 1982,
"ctxt": 0
},
"operator": "!==",
"left": {
"type": "Identifier",
"span": {
"start": 1967,
"end": 1968,
"ctxt": 0
},
"value": "x",
"optional": false
},
"right": {
"type": "Identifier",
"span": {
"start": 1973,
"end": 1982,
"ctxt": 0
},
"value": "undefined",
"optional": false
}
},
"right": {
"type": "BinaryExpression",
"span": {
"start": 1986,
"end": 1996,
"ctxt": 0
},
"operator": "!==",
"left": {
"type": "Identifier",
"span": {
"start": 1986,
"end": 1987,
"ctxt": 0
},
"value": "x",
"optional": false
},
"right": {
"type": "NullLiteral",
"span": {
"start": 1992,
"end": 1996,
"ctxt": 0
}
}
}
},
"consequent": {
"type": "BlockStatement",
"span": {
"start": 1998,
"end": 2027,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 2008,
"end": 2010,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 2008,
"end": 2009,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
]
},
"alternate": {
"type": "BlockStatement",
"span": {
"start": 2037,
"end": 2061,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 2047,
"end": 2049,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 2047,
"end": 2048,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
]
}
},
{
"type": "IfStatement",
"span": {
"start": 2066,
"end": 2149,
"ctxt": 0
},
"test": {
"type": "BinaryExpression",
"span": {
"start": 2070,
"end": 2084,
"ctxt": 0
},
"operator": "!=",
"left": {
"type": "Identifier",
"span": {
"start": 2070,
"end": 2071,
"ctxt": 0
},
"value": "x",
"optional": false
},
"right": {
"type": "Identifier",
"span": {
"start": 2075,
"end": 2084,
"ctxt": 0
},
"value": "undefined",
"optional": false
}
},
"consequent": {
"type": "BlockStatement",
"span": {
"start": 2086,
"end": 2115,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 2096,
"end": 2098,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 2096,
"end": 2097,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
]
},
"alternate": {
"type": "BlockStatement",
"span": {
"start": 2125,
"end": 2149,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 2135,
"end": 2137,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 2135,
"end": 2136,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
]
}
},
{
"type": "IfStatement",
"span": {
"start": 2154,
"end": 2232,
"ctxt": 0
},
"test": {
"type": "BinaryExpression",
"span": {
"start": 2158,
"end": 2167,
"ctxt": 0
},
"operator": "!=",
"left": {
"type": "Identifier",
"span": {
"start": 2158,
"end": 2159,
"ctxt": 0
},
"value": "x",
"optional": false
},
"right": {
"type": "NullLiteral",
"span": {
"start": 2163,
"end": 2167,
"ctxt": 0
}
}
},
"consequent": {
"type": "BlockStatement",
"span": {
"start": 2169,
"end": 2198,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 2179,
"end": 2181,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 2179,
"end": 2180,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
]
},
"alternate": {
"type": "BlockStatement",
"span": {
"start": 2208,
"end": 2232,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 2218,
"end": 2220,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 2218,
"end": 2219,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
]
}
}
]
},
"generator": false,
"async": false,
"typeParameters": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 1751,
"end": 1754,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 1752,
"end": 1753,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1752,
"end": 1753,
"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": 2245,
"end": 2248,
"ctxt": 0
},
"value": "f22",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 2275,
"end": 2279,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 2275,
"end": 2279,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2276,
"end": 2279,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 2278,
"end": 2279,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 2278,
"end": 2279,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
}
}
}
],
"decorators": [],
"span": {
"start": 2236,
"end": 2726,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 2281,
"end": 2726,
"ctxt": 0
},
"stmts": [
{
"type": "IfStatement",
"span": {
"start": 2287,
"end": 2371,
"ctxt": 0
},
"test": {
"type": "BinaryExpression",
"span": {
"start": 2291,
"end": 2306,
"ctxt": 0
},
"operator": "!==",
"left": {
"type": "Identifier",
"span": {
"start": 2291,
"end": 2292,
"ctxt": 0
},
"value": "x",
"optional": false
},
"right": {
"type": "Identifier",
"span": {
"start": 2297,
"end": 2306,
"ctxt": 0
},
"value": "undefined",
"optional": false
}
},
"consequent": {
"type": "BlockStatement",
"span": {
"start": 2308,
"end": 2337,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 2318,
"end": 2320,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 2318,
"end": 2319,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
]
},
"alternate": {
"type": "BlockStatement",
"span": {
"start": 2347,
"end": 2371,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 2357,
"end": 2359,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 2357,
"end": 2358,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
]
}
},
{
"type": "IfStatement",
"span": {
"start": 2376,
"end": 2450,
"ctxt": 0
},
"test": {
"type": "BinaryExpression",
"span": {
"start": 2380,
"end": 2390,
"ctxt": 0
},
"operator": "!==",
"left": {
"type": "Identifier",
"span": {
"start": 2380,
"end": 2381,
"ctxt": 0
},
"value": "x",
"optional": false
},
"right": {
"type": "NullLiteral",
"span": {
"start": 2386,
"end": 2390,
"ctxt": 0
}
}
},
"consequent": {
"type": "BlockStatement",
"span": {
"start": 2392,
"end": 2416,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 2402,
"end": 2404,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 2402,
"end": 2403,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
]
},
"alternate": {
"type": "BlockStatement",
"span": {
"start": 2426,
"end": 2450,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 2436,
"end": 2438,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 2436,
"end": 2437,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
]
}
},
{
"type": "IfStatement",
"span": {
"start": 2455,
"end": 2553,
"ctxt": 0
},
"test": {
"type": "BinaryExpression",
"span": {
"start": 2459,
"end": 2488,
"ctxt": 0
},
"operator": "&&",
"left": {
"type": "BinaryExpression",
"span": {
"start": 2459,
"end": 2474,
"ctxt": 0
},
"operator": "!==",
"left": {
"type": "Identifier",
"span": {
"start": 2459,
"end": 2460,
"ctxt": 0
},
"value": "x",
"optional": false
},
"right": {
"type": "Identifier",
"span": {
"start": 2465,
"end": 2474,
"ctxt": 0
},
"value": "undefined",
"optional": false
}
},
"right": {
"type": "BinaryExpression",
"span": {
"start": 2478,
"end": 2488,
"ctxt": 0
},
"operator": "!==",
"left": {
"type": "Identifier",
"span": {
"start": 2478,
"end": 2479,
"ctxt": 0
},
"value": "x",
"optional": false
},
"right": {
"type": "NullLiteral",
"span": {
"start": 2484,
"end": 2488,
"ctxt": 0
}
}
}
},
"consequent": {
"type": "BlockStatement",
"span": {
"start": 2490,
"end": 2519,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 2500,
"end": 2502,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 2500,
"end": 2501,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
]
},
"alternate": {
"type": "BlockStatement",
"span": {
"start": 2529,
"end": 2553,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 2539,
"end": 2541,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 2539,
"end": 2540,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
]
}
},
{
"type": "IfStatement",
"span": {
"start": 2558,
"end": 2641,
"ctxt": 0
},
"test": {
"type": "BinaryExpression",
"span": {
"start": 2562,
"end": 2576,
"ctxt": 0
},
"operator": "!=",
"left": {
"type": "Identifier",
"span": {
"start": 2562,
"end": 2563,
"ctxt": 0
},
"value": "x",
"optional": false
},
"right": {
"type": "Identifier",
"span": {
"start": 2567,
"end": 2576,
"ctxt": 0
},
"value": "undefined",
"optional": false
}
},
"consequent": {
"type": "BlockStatement",
"span": {
"start": 2578,
"end": 2607,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 2588,
"end": 2590,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 2588,
"end": 2589,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
]
},
"alternate": {
"type": "BlockStatement",
"span": {
"start": 2617,
"end": 2641,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 2627,
"end": 2629,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 2627,
"end": 2628,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
]
}
},
{
"type": "IfStatement",
"span": {
"start": 2646,
"end": 2724,
"ctxt": 0
},
"test": {
"type": "BinaryExpression",
"span": {
"start": 2650,
"end": 2659,
"ctxt": 0
},
"operator": "!=",
"left": {
"type": "Identifier",
"span": {
"start": 2650,
"end": 2651,
"ctxt": 0
},
"value": "x",
"optional": false
},
"right": {
"type": "NullLiteral",
"span": {
"start": 2655,
"end": 2659,
"ctxt": 0
}
}
},
"consequent": {
"type": "BlockStatement",
"span": {
"start": 2661,
"end": 2690,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 2671,
"end": 2673,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 2671,
"end": 2672,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
]
},
"alternate": {
"type": "BlockStatement",
"span": {
"start": 2700,
"end": 2724,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 2710,
"end": 2712,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 2710,
"end": 2711,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
]
}
}
]
},
"generator": false,
"async": false,
"typeParameters": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 2248,
"end": 2274,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 2249,
"end": 2273,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 2249,
"end": 2250,
"ctxt": 0
},
"value": "T",
"optional": false
},
"in": false,
"out": false,
"const": false,
"constraint": {
"type": "TsUnionType",
"span": {
"start": 2259,
"end": 2273,
"ctxt": 0
},
"types": [
{
"type": "TsTypeLiteral",
"span": {
"start": 2259,
"end": 2261,
"ctxt": 0
},
"members": []
},
{
"type": "TsKeywordType",
"span": {
"start": 2264,
"end": 2273,
"ctxt": 0
},
"kind": "undefined"
}
]
},
"default": null
}
]
},
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 2737,
"end": 2740,
"ctxt": 0
},
"value": "f23",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 2744,
"end": 2767,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 2744,
"end": 2767,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2745,
"end": 2767,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 2747,
"end": 2767,
"ctxt": 0
},
"types": [
{
"type": "TsTypeReference",
"span": {
"start": 2747,
"end": 2748,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 2747,
"end": 2748,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
},
{
"type": "TsKeywordType",
"span": {
"start": 2751,
"end": 2760,
"ctxt": 0
},
"kind": "undefined"
},
{
"type": "TsKeywordType",
"span": {
"start": 2763,
"end": 2767,
"ctxt": 0
},
"kind": "null"
}
]
}
}
}
}
],
"decorators": [],
"span": {
"start": 2728,
"end": 2999,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 2769,
"end": 2999,
"ctxt": 0
},
"stmts": [
{
"type": "IfStatement",
"span": {
"start": 2775,
"end": 2832,
"ctxt": 0
},
"test": {
"type": "BinaryExpression",
"span": {
"start": 2779,
"end": 2794,
"ctxt": 0
},
"operator": "!==",
"left": {
"type": "Identifier",
"span": {
"start": 2779,
"end": 2780,
"ctxt": 0
},
"value": "x",
"optional": false
},
"right": {
"type": "Identifier",
"span": {
"start": 2785,
"end": 2794,
"ctxt": 0
},
"value": "undefined",
"optional": false
}
},
"consequent": {
"type": "BlockStatement",
"span": {
"start": 2796,
"end": 2832,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 2806,
"end": 2808,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 2806,
"end": 2807,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
]
},
"alternate": null
},
{
"type": "IfStatement",
"span": {
"start": 2837,
"end": 2894,
"ctxt": 0
},
"test": {
"type": "BinaryExpression",
"span": {
"start": 2841,
"end": 2851,
"ctxt": 0
},
"operator": "!==",
"left": {
"type": "Identifier",
"span": {
"start": 2841,
"end": 2842,
"ctxt": 0
},
"value": "x",
"optional": false
},
"right": {
"type": "NullLiteral",
"span": {
"start": 2847,
"end": 2851,
"ctxt": 0
}
}
},
"consequent": {
"type": "BlockStatement",
"span": {
"start": 2853,
"end": 2894,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 2863,
"end": 2865,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 2863,
"end": 2864,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
]
},
"alternate": null
},
{
"type": "IfStatement",
"span": {
"start": 2899,
"end": 2948,
"ctxt": 0
},
"test": {
"type": "BinaryExpression",
"span": {
"start": 2903,
"end": 2917,
"ctxt": 0
},
"operator": "!=",
"left": {
"type": "Identifier",
"span": {
"start": 2903,
"end": 2904,
"ctxt": 0
},
"value": "x",
"optional": false
},
"right": {
"type": "Identifier",
"span": {
"start": 2908,
"end": 2917,
"ctxt": 0
},
"value": "undefined",
"optional": false
}
},
"consequent": {
"type": "BlockStatement",
"span": {
"start": 2919,
"end": 2948,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 2929,
"end": 2931,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 2929,
"end": 2930,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
]
},
"alternate": null
},
{
"type": "IfStatement",
"span": {
"start": 2953,
"end": 2997,
"ctxt": 0
},
"test": {
"type": "BinaryExpression",
"span": {
"start": 2957,
"end": 2966,
"ctxt": 0
},
"operator": "!=",
"left": {
"type": "Identifier",
"span": {
"start": 2957,
"end": 2958,
"ctxt": 0
},
"value": "x",
"optional": false
},
"right": {
"type": "NullLiteral",
"span": {
"start": 2962,
"end": 2966,
"ctxt": 0
}
}
},
"consequent": {
"type": "BlockStatement",
"span": {
"start": 2968,
"end": 2997,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 2978,
"end": 2980,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 2978,
"end": 2979,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
]
},
"alternate": null
}
]
},
"generator": false,
"async": false,
"typeParameters": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 2740,
"end": 2743,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 2741,
"end": 2742,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 2741,
"end": 2742,
"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": 3010,
"end": 3013,
"ctxt": 0
},
"value": "f30",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 3014,
"end": 3019,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 3014,
"end": 3019,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 3015,
"end": 3019,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 3017,
"end": 3019,
"ctxt": 0
},
"members": []
}
}
}
}
],
"decorators": [],
"span": {
"start": 3001,
"end": 3085,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 3021,
"end": 3085,
"ctxt": 0
},
"stmts": [
{
"type": "IfStatement",
"span": {
"start": 3027,
"end": 3083,
"ctxt": 0
},
"test": {
"type": "BinaryExpression",
"span": {
"start": 3031,
"end": 3052,
"ctxt": 0
},
"operator": "===",
"left": {
"type": "UnaryExpression",
"span": {
"start": 3031,
"end": 3039,
"ctxt": 0
},
"operator": "typeof",
"argument": {
"type": "Identifier",
"span": {
"start": 3038,
"end": 3039,
"ctxt": 0
},
"value": "x",
"optional": false
}
},
"right": {
"type": "StringLiteral",
"span": {
"start": 3044,
"end": 3052,
"ctxt": 0
},
"value": "object",
"raw": "\"object\""
}
},
"consequent": {
"type": "BlockStatement",
"span": {
"start": 3054,
"end": 3083,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 3064,
"end": 3066,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 3064,
"end": 3065,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
]
},
"alternate": null
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 3096,
"end": 3099,
"ctxt": 0
},
"value": "f31",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 3103,
"end": 3107,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 3103,
"end": 3107,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 3104,
"end": 3107,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 3106,
"end": 3107,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 3106,
"end": 3107,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
}
}
}
],
"decorators": [],
"span": {
"start": 3087,
"end": 3328,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 3109,
"end": 3328,
"ctxt": 0
},
"stmts": [
{
"type": "IfStatement",
"span": {
"start": 3115,
"end": 3186,
"ctxt": 0
},
"test": {
"type": "BinaryExpression",
"span": {
"start": 3119,
"end": 3140,
"ctxt": 0
},
"operator": "===",
"left": {
"type": "UnaryExpression",
"span": {
"start": 3119,
"end": 3127,
"ctxt": 0
},
"operator": "typeof",
"argument": {
"type": "Identifier",
"span": {
"start": 3126,
"end": 3127,
"ctxt": 0
},
"value": "x",
"optional": false
}
},
"right": {
"type": "StringLiteral",
"span": {
"start": 3132,
"end": 3140,
"ctxt": 0
},
"value": "object",
"raw": "\"object\""
}
},
"consequent": {
"type": "BlockStatement",
"span": {
"start": 3142,
"end": 3186,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 3152,
"end": 3154,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 3152,
"end": 3153,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
]
},
"alternate": null
},
{
"type": "IfStatement",
"span": {
"start": 3191,
"end": 3256,
"ctxt": 0
},
"test": {
"type": "BinaryExpression",
"span": {
"start": 3195,
"end": 3221,
"ctxt": 0
},
"operator": "&&",
"left": {
"type": "Identifier",
"span": {
"start": 3195,
"end": 3196,
"ctxt": 0
},
"value": "x",
"optional": false
},
"right": {
"type": "BinaryExpression",
"span": {
"start": 3200,
"end": 3221,
"ctxt": 0
},
"operator": "===",
"left": {
"type": "UnaryExpression",
"span": {
"start": 3200,
"end": 3208,
"ctxt": 0
},
"operator": "typeof",
"argument": {
"type": "Identifier",
"span": {
"start": 3207,
"end": 3208,
"ctxt": 0
},
"value": "x",
"optional": false
}
},
"right": {
"type": "StringLiteral",
"span": {
"start": 3213,
"end": 3221,
"ctxt": 0
},
"value": "object",
"raw": "\"object\""
}
}
},
"consequent": {
"type": "BlockStatement",
"span": {
"start": 3223,
"end": 3256,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 3233,
"end": 3235,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 3233,
"end": 3234,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
]
},
"alternate": null
},
{
"type": "IfStatement",
"span": {
"start": 3261,
"end": 3326,
"ctxt": 0
},
"test": {
"type": "BinaryExpression",
"span": {
"start": 3265,
"end": 3291,
"ctxt": 0
},
"operator": "&&",
"left": {
"type": "BinaryExpression",
"span": {
"start": 3265,
"end": 3286,
"ctxt": 0
},
"operator": "===",
"left": {
"type": "UnaryExpression",
"span": {
"start": 3265,
"end": 3273,
"ctxt": 0
},
"operator": "typeof",
"argument": {
"type": "Identifier",
"span": {
"start": 3272,
"end": 3273,
"ctxt": 0
},
"value": "x",
"optional": false
}
},
"right": {
"type": "StringLiteral",
"span": {
"start": 3278,
"end": 3286,
"ctxt": 0
},
"value": "object",
"raw": "\"object\""
}
},
"right": {
"type": "Identifier",
"span": {
"start": 3290,
"end": 3291,
"ctxt": 0
},
"value": "x",
"optional": false
}
},
"consequent": {
"type": "BlockStatement",
"span": {
"start": 3293,
"end": 3326,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 3303,
"end": 3305,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 3303,
"end": 3304,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
]
},
"alternate": null
}
]
},
"generator": false,
"async": false,
"typeParameters": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 3099,
"end": 3102,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 3100,
"end": 3101,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 3100,
"end": 3101,
"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": 3339,
"end": 3342,
"ctxt": 0
},
"value": "f32",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 3369,
"end": 3373,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 3369,
"end": 3373,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 3370,
"end": 3373,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 3372,
"end": 3373,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 3372,
"end": 3373,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
}
}
}
],
"decorators": [],
"span": {
"start": 3330,
"end": 3443,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 3375,
"end": 3443,
"ctxt": 0
},
"stmts": [
{
"type": "IfStatement",
"span": {
"start": 3381,
"end": 3441,
"ctxt": 0
},
"test": {
"type": "BinaryExpression",
"span": {
"start": 3385,
"end": 3406,
"ctxt": 0
},
"operator": "===",
"left": {
"type": "UnaryExpression",
"span": {
"start": 3385,
"end": 3393,
"ctxt": 0
},
"operator": "typeof",
"argument": {
"type": "Identifier",
"span": {
"start": 3392,
"end": 3393,
"ctxt": 0
},
"value": "x",
"optional": false
}
},
"right": {
"type": "StringLiteral",
"span": {
"start": 3398,
"end": 3406,
"ctxt": 0
},
"value": "object",
"raw": "\"object\""
}
},
"consequent": {
"type": "BlockStatement",
"span": {
"start": 3408,
"end": 3441,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 3418,
"end": 3420,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 3418,
"end": 3419,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
]
},
"alternate": null
}
]
},
"generator": false,
"async": false,
"typeParameters": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 3342,
"end": 3368,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 3343,
"end": 3367,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 3343,
"end": 3344,
"ctxt": 0
},
"value": "T",
"optional": false
},
"in": false,
"out": false,
"const": false,
"constraint": {
"type": "TsUnionType",
"span": {
"start": 3353,
"end": 3367,
"ctxt": 0
},
"types": [
{
"type": "TsTypeLiteral",
"span": {
"start": 3353,
"end": 3355,
"ctxt": 0
},
"members": []
},
{
"type": "TsKeywordType",
"span": {
"start": 3358,
"end": 3367,
"ctxt": 0
},
"kind": "undefined"
}
]
},
"default": null
}
]
},
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 3454,
"end": 3466,
"ctxt": 0
},
"value": "possiblyNull",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 3470,
"end": 3474,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 3470,
"end": 3474,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 3471,
"end": 3474,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 3473,
"end": 3474,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 3473,
"end": 3474,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
}
}
}
],
"decorators": [],
"span": {
"start": 3445,
"end": 3522,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 3476,
"end": 3522,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 3482,
"end": 3507,
"ctxt": 0
},
"argument": {
"type": "ConditionalExpression",
"span": {
"start": 3489,
"end": 3506,
"ctxt": 0
},
"test": {
"type": "UnaryExpression",
"span": {
"start": 3489,
"end": 3495,
"ctxt": 0
},
"operator": "!",
"argument": {
"type": "UnaryExpression",
"span": {
"start": 3490,
"end": 3495,
"ctxt": 0
},
"operator": "!",
"argument": {
"type": "BooleanLiteral",
"span": {
"start": 3491,
"end": 3495,
"ctxt": 0
},
"value": true
}
}
},
"consequent": {
"type": "Identifier",
"span": {
"start": 3498,
"end": 3499,
"ctxt": 0
},
"value": "x",
"optional": false
},
"alternate": {
"type": "NullLiteral",
"span": {
"start": 3502,
"end": 3506,
"ctxt": 0
}
}
}
}
]
},
"generator": false,
"async": false,
"typeParameters": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 3466,
"end": 3469,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 3467,
"end": 3468,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 3467,
"end": 3468,
"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": 3533,
"end": 3550,
"ctxt": 0
},
"value": "possiblyUndefined",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 3554,
"end": 3558,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 3554,
"end": 3558,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 3555,
"end": 3558,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 3557,
"end": 3558,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 3557,
"end": 3558,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
}
}
}
],
"decorators": [],
"span": {
"start": 3524,
"end": 3616,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 3560,
"end": 3616,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 3566,
"end": 3596,
"ctxt": 0
},
"argument": {
"type": "ConditionalExpression",
"span": {
"start": 3573,
"end": 3595,
"ctxt": 0
},
"test": {
"type": "UnaryExpression",
"span": {
"start": 3573,
"end": 3579,
"ctxt": 0
},
"operator": "!",
"argument": {
"type": "UnaryExpression",
"span": {
"start": 3574,
"end": 3579,
"ctxt": 0
},
"operator": "!",
"argument": {
"type": "BooleanLiteral",
"span": {
"start": 3575,
"end": 3579,
"ctxt": 0
},
"value": true
}
}
},
"consequent": {
"type": "Identifier",
"span": {
"start": 3582,
"end": 3583,
"ctxt": 0
},
"value": "x",
"optional": false
},
"alternate": {
"type": "Identifier",
"span": {
"start": 3586,
"end": 3595,
"ctxt": 0
},
"value": "undefined",
"optional": false
}
}
}
]
},
"generator": false,
"async": false,
"typeParameters": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 3550,
"end": 3553,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 3551,
"end": 3552,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 3551,
"end": 3552,
"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": 3627,
"end": 3650,
"ctxt": 0
},
"value": "possiblyNullOrUndefined",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 3654,
"end": 3658,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 3654,
"end": 3658,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 3655,
"end": 3658,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 3657,
"end": 3658,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 3657,
"end": 3658,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
}
}
}
],
"decorators": [],
"span": {
"start": 3618,
"end": 3735,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 3660,
"end": 3735,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 3666,
"end": 3708,
"ctxt": 0
},
"argument": {
"type": "CallExpression",
"span": {
"start": 3673,
"end": 3707,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 3673,
"end": 3690,
"ctxt": 0
},
"value": "possiblyUndefined",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "CallExpression",
"span": {
"start": 3691,
"end": 3706,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 3691,
"end": 3703,
"ctxt": 0
},
"value": "possiblyNull",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 3704,
"end": 3705,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
],
"typeArguments": null
}
}
],
"typeArguments": null
}
}
]
},
"generator": false,
"async": false,
"typeParameters": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 3650,
"end": 3653,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 3651,
"end": 3652,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 3651,
"end": 3652,
"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": 3746,
"end": 3759,
"ctxt": 0
},
"value": "ensureNotNull",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 3763,
"end": 3767,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 3763,
"end": 3767,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 3764,
"end": 3767,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 3766,
"end": 3767,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 3766,
"end": 3767,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
}
}
}
],
"decorators": [],
"span": {
"start": 3737,
"end": 3846,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 3769,
"end": 3846,
"ctxt": 0
},
"stmts": [
{
"type": "IfStatement",
"span": {
"start": 3775,
"end": 3805,
"ctxt": 0
},
"test": {
"type": "BinaryExpression",
"span": {
"start": 3779,
"end": 3789,
"ctxt": 0
},
"operator": "===",
"left": {
"type": "Identifier",
"span": {
"start": 3779,
"end": 3780,
"ctxt": 0
},
"value": "x",
"optional": false
},
"right": {
"type": "NullLiteral",
"span": {
"start": 3785,
"end": 3789,
"ctxt": 0
}
}
},
"consequent": {
"type": "ThrowStatement",
"span": {
"start": 3791,
"end": 3805,
"ctxt": 0
},
"argument": {
"type": "CallExpression",
"span": {
"start": 3797,
"end": 3804,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 3797,
"end": 3802,
"ctxt": 0
},
"value": "Error",
"optional": false
},
"arguments": [],
"typeArguments": null
}
},
"alternate": null
},
{
"type": "ReturnStatement",
"span": {
"start": 3810,
"end": 3819,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 3817,
"end": 3818,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
]
},
"generator": false,
"async": false,
"typeParameters": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 3759,
"end": 3762,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 3760,
"end": 3761,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 3760,
"end": 3761,
"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": 3857,
"end": 3875,
"ctxt": 0
},
"value": "ensureNotUndefined",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 3879,
"end": 3883,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 3879,
"end": 3883,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 3880,
"end": 3883,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 3882,
"end": 3883,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 3882,
"end": 3883,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
}
}
}
],
"decorators": [],
"span": {
"start": 3848,
"end": 3962,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 3885,
"end": 3962,
"ctxt": 0
},
"stmts": [
{
"type": "IfStatement",
"span": {
"start": 3891,
"end": 3926,
"ctxt": 0
},
"test": {
"type": "BinaryExpression",
"span": {
"start": 3895,
"end": 3910,
"ctxt": 0
},
"operator": "===",
"left": {
"type": "Identifier",
"span": {
"start": 3895,
"end": 3896,
"ctxt": 0
},
"value": "x",
"optional": false
},
"right": {
"type": "Identifier",
"span": {
"start": 3901,
"end": 3910,
"ctxt": 0
},
"value": "undefined",
"optional": false
}
},
"consequent": {
"type": "ThrowStatement",
"span": {
"start": 3912,
"end": 3926,
"ctxt": 0
},
"argument": {
"type": "CallExpression",
"span": {
"start": 3918,
"end": 3925,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 3918,
"end": 3923,
"ctxt": 0
},
"value": "Error",
"optional": false
},
"arguments": [],
"typeArguments": null
}
},
"alternate": null
},
{
"type": "ReturnStatement",
"span": {
"start": 3931,
"end": 3940,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 3938,
"end": 3939,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
]
},
"generator": false,
"async": false,
"typeParameters": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 3875,
"end": 3878,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 3876,
"end": 3877,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 3876,
"end": 3877,
"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": 3973,
"end": 3997,
"ctxt": 0
},
"value": "ensureNotNullOrUndefined",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 4001,
"end": 4005,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 4001,
"end": 4005,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 4002,
"end": 4005,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 4004,
"end": 4005,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 4004,
"end": 4005,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
}
}
}
],
"decorators": [],
"span": {
"start": 3964,
"end": 4070,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 4007,
"end": 4070,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 4013,
"end": 4057,
"ctxt": 0
},
"argument": {
"type": "CallExpression",
"span": {
"start": 4020,
"end": 4056,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 4020,
"end": 4038,
"ctxt": 0
},
"value": "ensureNotUndefined",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "CallExpression",
"span": {
"start": 4039,
"end": 4055,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 4039,
"end": 4052,
"ctxt": 0
},
"value": "ensureNotNull",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 4053,
"end": 4054,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
],
"typeArguments": null
}
}
],
"typeArguments": null
}
}
]
},
"generator": false,
"async": false,
"typeParameters": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 3997,
"end": 4000,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 3998,
"end": 3999,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 3998,
"end": 3999,
"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": 4081,
"end": 4084,
"ctxt": 0
},
"value": "f40",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 4085,
"end": 4106,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 4085,
"end": 4106,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 4086,
"end": 4106,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 4088,
"end": 4106,
"ctxt": 0
},
"types": [
{
"type": "TsKeywordType",
"span": {
"start": 4088,
"end": 4094,
"ctxt": 0
},
"kind": "string"
},
{
"type": "TsKeywordType",
"span": {
"start": 4097,
"end": 4106,
"ctxt": 0
},
"kind": "undefined"
}
]
}
}
}
},
{
"type": "Parameter",
"span": {
"start": 4108,
"end": 4136,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 4108,
"end": 4136,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 4109,
"end": 4136,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 4111,
"end": 4136,
"ctxt": 0
},
"types": [
{
"type": "TsKeywordType",
"span": {
"start": 4111,
"end": 4117,
"ctxt": 0
},
"kind": "number"
},
{
"type": "TsKeywordType",
"span": {
"start": 4120,
"end": 4124,
"ctxt": 0
},
"kind": "null"
},
{
"type": "TsKeywordType",
"span": {
"start": 4127,
"end": 4136,
"ctxt": 0
},
"kind": "undefined"
}
]
}
}
}
}
],
"decorators": [],
"span": {
"start": 4072,
"end": 4247,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 4138,
"end": 4247,
"ctxt": 0
},
"stmts": [
{
"type": "VariableDeclaration",
"span": {
"start": 4144,
"end": 4181,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 4148,
"end": 4180,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 4148,
"end": 4150,
"ctxt": 0
},
"value": "a1",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "CallExpression",
"span": {
"start": 4153,
"end": 4180,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 4153,
"end": 4177,
"ctxt": 0
},
"value": "ensureNotNullOrUndefined",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 4178,
"end": 4179,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 4197,
"end": 4234,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 4201,
"end": 4233,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 4201,
"end": 4203,
"ctxt": 0
},
"value": "b1",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "CallExpression",
"span": {
"start": 4206,
"end": 4233,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 4206,
"end": 4230,
"ctxt": 0
},
"value": "ensureNotNullOrUndefined",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 4231,
"end": 4232,
"ctxt": 0
},
"value": "b",
"optional": false
}
}
],
"typeArguments": null
},
"definite": false
}
]
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "TsTypeAliasDeclaration",
"span": {
"start": 4249,
"end": 4303,
"ctxt": 0
},
"declare": false,
"id": {
"type": "Identifier",
"span": {
"start": 4254,
"end": 4256,
"ctxt": 0
},
"value": "QQ",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 4256,
"end": 4259,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 4257,
"end": 4258,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 4257,
"end": 4258,
"ctxt": 0
},
"value": "T",
"optional": false
},
"in": false,
"out": false,
"const": false,
"constraint": null,
"default": null
}
]
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 4262,
"end": 4302,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 4262,
"end": 4273,
"ctxt": 0
},
"value": "NonNullable",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 4273,
"end": 4302,
"ctxt": 0
},
"params": [
{
"type": "TsTypeReference",
"span": {
"start": 4274,
"end": 4301,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 4274,
"end": 4285,
"ctxt": 0
},
"value": "NonNullable",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 4285,
"end": 4301,
"ctxt": 0
},
"params": [
{
"type": "TsTypeReference",
"span": {
"start": 4286,
"end": 4300,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 4286,
"end": 4297,
"ctxt": 0
},
"value": "NonNullable",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 4297,
"end": 4300,
"ctxt": 0
},
"params": [
{
"type": "TsTypeReference",
"span": {
"start": 4298,
"end": 4299,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 4298,
"end": 4299,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
]
}
}
]
}
}
]
}
}
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 4314,
"end": 4317,
"ctxt": 0
},
"value": "f41",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 4321,
"end": 4325,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 4321,
"end": 4325,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 4322,
"end": 4325,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 4324,
"end": 4325,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 4324,
"end": 4325,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
}
}
}
],
"decorators": [],
"span": {
"start": 4305,
"end": 4983,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 4327,
"end": 4983,
"ctxt": 0
},
"stmts": [
{
"type": "VariableDeclaration",
"span": {
"start": 4333,
"end": 4379,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 4337,
"end": 4378,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 4337,
"end": 4339,
"ctxt": 0
},
"value": "a1",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "CallExpression",
"span": {
"start": 4342,
"end": 4378,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 4342,
"end": 4360,
"ctxt": 0
},
"value": "ensureNotUndefined",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "CallExpression",
"span": {
"start": 4361,
"end": 4377,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 4361,
"end": 4374,
"ctxt": 0
},
"value": "ensureNotNull",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 4375,
"end": 4376,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
],
"typeArguments": null
}
}
],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 4395,
"end": 4441,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 4399,
"end": 4440,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 4399,
"end": 4401,
"ctxt": 0
},
"value": "a2",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "CallExpression",
"span": {
"start": 4404,
"end": 4440,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 4404,
"end": 4417,
"ctxt": 0
},
"value": "ensureNotNull",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "CallExpression",
"span": {
"start": 4418,
"end": 4439,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 4418,
"end": 4436,
"ctxt": 0
},
"value": "ensureNotUndefined",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 4437,
"end": 4438,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
],
"typeArguments": null
}
}
],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 4457,
"end": 4498,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 4461,
"end": 4497,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 4461,
"end": 4463,
"ctxt": 0
},
"value": "a3",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "CallExpression",
"span": {
"start": 4466,
"end": 4497,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 4466,
"end": 4479,
"ctxt": 0
},
"value": "ensureNotNull",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "CallExpression",
"span": {
"start": 4480,
"end": 4496,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 4480,
"end": 4493,
"ctxt": 0
},
"value": "ensureNotNull",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 4494,
"end": 4495,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
],
"typeArguments": null
}
}
],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 4530,
"end": 4581,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 4534,
"end": 4580,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 4534,
"end": 4536,
"ctxt": 0
},
"value": "a4",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "CallExpression",
"span": {
"start": 4539,
"end": 4580,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 4539,
"end": 4557,
"ctxt": 0
},
"value": "ensureNotUndefined",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "CallExpression",
"span": {
"start": 4558,
"end": 4579,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 4558,
"end": 4576,
"ctxt": 0
},
"value": "ensureNotUndefined",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 4577,
"end": 4578,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
],
"typeArguments": null
}
}
],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 4608,
"end": 4671,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 4612,
"end": 4670,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 4612,
"end": 4614,
"ctxt": 0
},
"value": "a5",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "CallExpression",
"span": {
"start": 4617,
"end": 4670,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 4617,
"end": 4641,
"ctxt": 0
},
"value": "ensureNotNullOrUndefined",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "CallExpression",
"span": {
"start": 4642,
"end": 4669,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 4642,
"end": 4666,
"ctxt": 0
},
"value": "ensureNotNullOrUndefined",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 4667,
"end": 4668,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
],
"typeArguments": null
}
}
],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 4687,
"end": 4738,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 4691,
"end": 4737,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 4691,
"end": 4693,
"ctxt": 0
},
"value": "a6",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "CallExpression",
"span": {
"start": 4696,
"end": 4737,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 4696,
"end": 4709,
"ctxt": 0
},
"value": "ensureNotNull",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "CallExpression",
"span": {
"start": 4710,
"end": 4736,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 4710,
"end": 4733,
"ctxt": 0
},
"value": "possiblyNullOrUndefined",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 4734,
"end": 4735,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
],
"typeArguments": null
}
}
],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 4766,
"end": 4822,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 4770,
"end": 4821,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 4770,
"end": 4772,
"ctxt": 0
},
"value": "a7",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "CallExpression",
"span": {
"start": 4775,
"end": 4821,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 4775,
"end": 4793,
"ctxt": 0
},
"value": "ensureNotUndefined",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "CallExpression",
"span": {
"start": 4794,
"end": 4820,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 4794,
"end": 4817,
"ctxt": 0
},
"value": "possiblyNullOrUndefined",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 4818,
"end": 4819,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
],
"typeArguments": null
}
}
],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 4845,
"end": 4890,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 4849,
"end": 4889,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 4849,
"end": 4851,
"ctxt": 0
},
"value": "a8",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "CallExpression",
"span": {
"start": 4854,
"end": 4889,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 4854,
"end": 4867,
"ctxt": 0
},
"value": "ensureNotNull",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "CallExpression",
"span": {
"start": 4868,
"end": 4888,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 4868,
"end": 4885,
"ctxt": 0
},
"value": "possiblyUndefined",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 4886,
"end": 4887,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
],
"typeArguments": null
}
}
],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 4918,
"end": 4963,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 4922,
"end": 4962,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 4922,
"end": 4924,
"ctxt": 0
},
"value": "a9",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "CallExpression",
"span": {
"start": 4927,
"end": 4962,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 4927,
"end": 4945,
"ctxt": 0
},
"value": "ensureNotUndefined",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "CallExpression",
"span": {
"start": 4946,
"end": 4961,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 4946,
"end": 4958,
"ctxt": 0
},
"value": "possiblyNull",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 4959,
"end": 4960,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
],
"typeArguments": null
}
}
],
"typeArguments": null
},
"definite": false
}
]
}
]
},
"generator": false,
"async": false,
"typeParameters": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 4317,
"end": 4320,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 4318,
"end": 4319,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 4318,
"end": 4319,
"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": 5016,
"end": 5026,
"ctxt": 0
},
"value": "deepEquals",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 5030,
"end": 5034,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 5030,
"end": 5034,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 5031,
"end": 5034,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 5033,
"end": 5034,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 5033,
"end": 5034,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
}
}
},
{
"type": "Parameter",
"span": {
"start": 5036,
"end": 5040,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 5036,
"end": 5040,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 5037,
"end": 5040,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 5039,
"end": 5040,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 5039,
"end": 5040,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
}
}
}
],
"decorators": [],
"span": {
"start": 5007,
"end": 5346,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 5051,
"end": 5346,
"ctxt": 0
},
"stmts": [
{
"type": "IfStatement",
"span": {
"start": 5057,
"end": 5150,
"ctxt": 0
},
"test": {
"type": "BinaryExpression",
"span": {
"start": 5061,
"end": 5119,
"ctxt": 0
},
"operator": "||",
"left": {
"type": "BinaryExpression",
"span": {
"start": 5061,
"end": 5113,
"ctxt": 0
},
"operator": "||",
"left": {
"type": "BinaryExpression",
"span": {
"start": 5061,
"end": 5107,
"ctxt": 0
},
"operator": "||",
"left": {
"type": "BinaryExpression",
"span": {
"start": 5061,
"end": 5082,
"ctxt": 0
},
"operator": "!==",
"left": {
"type": "UnaryExpression",
"span": {
"start": 5061,
"end": 5069,
"ctxt": 0
},
"operator": "typeof",
"argument": {
"type": "Identifier",
"span": {
"start": 5068,
"end": 5069,
"ctxt": 0
},
"value": "a",
"optional": false
}
},
"right": {
"type": "StringLiteral",
"span": {
"start": 5074,
"end": 5082,
"ctxt": 0
},
"value": "object",
"raw": "'object'"
}
},
"right": {
"type": "BinaryExpression",
"span": {
"start": 5086,
"end": 5107,
"ctxt": 0
},
"operator": "!==",
"left": {
"type": "UnaryExpression",
"span": {
"start": 5086,
"end": 5094,
"ctxt": 0
},
"operator": "typeof",
"argument": {
"type": "Identifier",
"span": {
"start": 5093,
"end": 5094,
"ctxt": 0
},
"value": "b",
"optional": false
}
},
"right": {
"type": "StringLiteral",
"span": {
"start": 5099,
"end": 5107,
"ctxt": 0
},
"value": "object",
"raw": "'object'"
}
}
},
"right": {
"type": "UnaryExpression",
"span": {
"start": 5111,
"end": 5113,
"ctxt": 0
},
"operator": "!",
"argument": {
"type": "Identifier",
"span": {
"start": 5112,
"end": 5113,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
},
"right": {
"type": "UnaryExpression",
"span": {
"start": 5117,
"end": 5119,
"ctxt": 0
},
"operator": "!",
"argument": {
"type": "Identifier",
"span": {
"start": 5118,
"end": 5119,
"ctxt": 0
},
"value": "b",
"optional": false
}
}
},
"consequent": {
"type": "BlockStatement",
"span": {
"start": 5121,
"end": 5150,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 5131,
"end": 5144,
"ctxt": 0
},
"argument": {
"type": "BooleanLiteral",
"span": {
"start": 5138,
"end": 5143,
"ctxt": 0
},
"value": false
}
}
]
},
"alternate": null
},
{
"type": "IfStatement",
"span": {
"start": 5155,
"end": 5226,
"ctxt": 0
},
"test": {
"type": "BinaryExpression",
"span": {
"start": 5159,
"end": 5195,
"ctxt": 0
},
"operator": "||",
"left": {
"type": "CallExpression",
"span": {
"start": 5159,
"end": 5175,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 5159,
"end": 5172,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 5159,
"end": 5164,
"ctxt": 0
},
"value": "Array",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 5165,
"end": 5172,
"ctxt": 0
},
"value": "isArray",
"optional": false
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 5173,
"end": 5174,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
],
"typeArguments": null
},
"right": {
"type": "CallExpression",
"span": {
"start": 5179,
"end": 5195,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 5179,
"end": 5192,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 5179,
"end": 5184,
"ctxt": 0
},
"value": "Array",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 5185,
"end": 5192,
"ctxt": 0
},
"value": "isArray",
"optional": false
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 5193,
"end": 5194,
"ctxt": 0
},
"value": "b",
"optional": false
}
}
],
"typeArguments": null
}
},
"consequent": {
"type": "BlockStatement",
"span": {
"start": 5197,
"end": 5226,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 5207,
"end": 5220,
"ctxt": 0
},
"argument": {
"type": "BooleanLiteral",
"span": {
"start": 5214,
"end": 5219,
"ctxt": 0
},
"value": false
}
}
]
},
"alternate": null
},
{
"type": "IfStatement",
"span": {
"start": 5231,
"end": 5327,
"ctxt": 0
},
"test": {
"type": "BinaryExpression",
"span": {
"start": 5235,
"end": 5282,
"ctxt": 0
},
"operator": "!==",
"left": {
"type": "MemberExpression",
"span": {
"start": 5235,
"end": 5256,
"ctxt": 0
},
"object": {
"type": "CallExpression",
"span": {
"start": 5235,
"end": 5249,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 5235,
"end": 5246,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 5235,
"end": 5241,
"ctxt": 0
},
"value": "Object",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 5242,
"end": 5246,
"ctxt": 0
},
"value": "keys",
"optional": false
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 5247,
"end": 5248,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
],
"typeArguments": null
},
"property": {
"type": "Identifier",
"span": {
"start": 5250,
"end": 5256,
"ctxt": 0
},
"value": "length",
"optional": false
}
},
"right": {
"type": "MemberExpression",
"span": {
"start": 5261,
"end": 5282,
"ctxt": 0
},
"object": {
"type": "CallExpression",
"span": {
"start": 5261,
"end": 5275,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 5261,
"end": 5272,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 5261,
"end": 5267,
"ctxt": 0
},
"value": "Object",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 5268,
"end": 5272,
"ctxt": 0
},
"value": "keys",
"optional": false
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 5273,
"end": 5274,
"ctxt": 0
},
"value": "b",
"optional": false
}
}
],
"typeArguments": null
},
"property": {
"type": "Identifier",
"span": {
"start": 5276,
"end": 5282,
"ctxt": 0
},
"value": "length",
"optional": false
}
}
},
"consequent": {
"type": "BlockStatement",
"span": {
"start": 5284,
"end": 5327,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 5308,
"end": 5321,
"ctxt": 0
},
"argument": {
"type": "BooleanLiteral",
"span": {
"start": 5315,
"end": 5320,
"ctxt": 0
},
"value": false
}
}
]
},
"alternate": null
},
{
"type": "ReturnStatement",
"span": {
"start": 5332,
"end": 5344,
"ctxt": 0
},
"argument": {
"type": "BooleanLiteral",
"span": {
"start": 5339,
"end": 5343,
"ctxt": 0
},
"value": true
}
}
]
},
"generator": false,
"async": false,
"typeParameters": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 5026,
"end": 5029,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 5027,
"end": 5028,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 5027,
"end": 5028,
"ctxt": 0
},
"value": "T",
"optional": false
},
"in": false,
"out": false,
"const": false,
"constraint": null,
"default": null
}
]
},
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 5041,
"end": 5050,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 5043,
"end": 5050,
"ctxt": 0
},
"kind": "boolean"
}
}
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 5379,
"end": 5382,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 5386,
"end": 5397,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 5386,
"end": 5397,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 5387,
"end": 5397,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 5389,
"end": 5397,
"ctxt": 0
},
"types": [
{
"type": "TsTypeReference",
"span": {
"start": 5389,
"end": 5390,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 5389,
"end": 5390,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
},
{
"type": "TsKeywordType",
"span": {
"start": 5393,
"end": 5397,
"ctxt": 0
},
"kind": "null"
}
]
}
}
}
}
],
"decorators": [],
"span": {
"start": 5370,
"end": 5456,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 5399,
"end": 5456,
"ctxt": 0
},
"stmts": [
{
"type": "VariableDeclaration",
"span": {
"start": 5405,
"end": 5415,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 5409,
"end": 5414,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 5409,
"end": 5410,
"ctxt": 0
},
"value": "y",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "Identifier",
"span": {
"start": 5413,
"end": 5414,
"ctxt": 0
},
"value": "x",
"optional": false
},
"definite": false
}
]
},
{
"type": "IfStatement",
"span": {
"start": 5420,
"end": 5454,
"ctxt": 0
},
"test": {
"type": "BinaryExpression",
"span": {
"start": 5424,
"end": 5434,
"ctxt": 0
},
"operator": "!==",
"left": {
"type": "Identifier",
"span": {
"start": 5424,
"end": 5425,
"ctxt": 0
},
"value": "y",
"optional": false
},
"right": {
"type": "NullLiteral",
"span": {
"start": 5430,
"end": 5434,
"ctxt": 0
}
}
},
"consequent": {
"type": "BlockStatement",
"span": {
"start": 5436,
"end": 5454,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 5446,
"end": 5448,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 5446,
"end": 5447,
"ctxt": 0
},
"value": "y",
"optional": false
}
}
]
},
"alternate": null
}
]
},
"generator": false,
"async": false,
"typeParameters": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 5382,
"end": 5385,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 5383,
"end": 5384,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 5383,
"end": 5384,
"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": 5754,
"end": 5757,
"ctxt": 0
},
"value": "ff1",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 5761,
"end": 5765,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 5761,
"end": 5765,
"ctxt": 0
},
"value": "t",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 5762,
"end": 5765,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 5764,
"end": 5765,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 5764,
"end": 5765,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
}
}
},
{
"type": "Parameter",
"span": {
"start": 5767,
"end": 5777,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 5767,
"end": 5777,
"ctxt": 0
},
"value": "k",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 5768,
"end": 5777,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeOperator",
"span": {
"start": 5770,
"end": 5777,
"ctxt": 0
},
"op": "keyof",
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 5776,
"end": 5777,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 5776,
"end": 5777,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
}
}
}
}
],
"decorators": [],
"span": {
"start": 5745,
"end": 5792,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 5779,
"end": 5792,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 5785,
"end": 5790,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 5785,
"end": 5789,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 5785,
"end": 5786,
"ctxt": 0
},
"value": "t",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 5786,
"end": 5789,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 5787,
"end": 5788,
"ctxt": 0
},
"value": "k",
"optional": false
}
}
}
}
]
},
"generator": false,
"async": false,
"typeParameters": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 5757,
"end": 5760,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 5758,
"end": 5759,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 5758,
"end": 5759,
"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": 5803,
"end": 5806,
"ctxt": 0
},
"value": "ff2",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 5810,
"end": 5819,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 5810,
"end": 5819,
"ctxt": 0
},
"value": "t",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 5811,
"end": 5819,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsIntersectionType",
"span": {
"start": 5813,
"end": 5819,
"ctxt": 0
},
"types": [
{
"type": "TsTypeReference",
"span": {
"start": 5813,
"end": 5814,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 5813,
"end": 5814,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
},
{
"type": "TsTypeLiteral",
"span": {
"start": 5817,
"end": 5819,
"ctxt": 0
},
"members": []
}
]
}
}
}
},
{
"type": "Parameter",
"span": {
"start": 5821,
"end": 5831,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 5821,
"end": 5831,
"ctxt": 0
},
"value": "k",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 5822,
"end": 5831,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeOperator",
"span": {
"start": 5824,
"end": 5831,
"ctxt": 0
},
"op": "keyof",
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 5830,
"end": 5831,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 5830,
"end": 5831,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
}
}
}
}
],
"decorators": [],
"span": {
"start": 5794,
"end": 5846,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 5833,
"end": 5846,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 5839,
"end": 5844,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 5839,
"end": 5843,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 5839,
"end": 5840,
"ctxt": 0
},
"value": "t",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 5840,
"end": 5843,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 5841,
"end": 5842,
"ctxt": 0
},
"value": "k",
"optional": false
}
}
}
}
]
},
"generator": false,
"async": false,
"typeParameters": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 5806,
"end": 5809,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 5807,
"end": 5808,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 5807,
"end": 5808,
"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": 5857,
"end": 5860,
"ctxt": 0
},
"value": "ff3",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 5864,
"end": 5868,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 5864,
"end": 5868,
"ctxt": 0
},
"value": "t",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 5865,
"end": 5868,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 5867,
"end": 5868,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 5867,
"end": 5868,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
}
}
},
{
"type": "Parameter",
"span": {
"start": 5870,
"end": 5887,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 5870,
"end": 5887,
"ctxt": 0
},
"value": "k",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 5871,
"end": 5887,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeOperator",
"span": {
"start": 5873,
"end": 5887,
"ctxt": 0
},
"op": "keyof",
"typeAnnotation": {
"type": "TsParenthesizedType",
"span": {
"start": 5879,
"end": 5887,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsIntersectionType",
"span": {
"start": 5880,
"end": 5886,
"ctxt": 0
},
"types": [
{
"type": "TsTypeReference",
"span": {
"start": 5880,
"end": 5881,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 5880,
"end": 5881,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
},
{
"type": "TsTypeLiteral",
"span": {
"start": 5884,
"end": 5886,
"ctxt": 0
},
"members": []
}
]
}
}
}
}
}
}
],
"decorators": [],
"span": {
"start": 5848,
"end": 5912,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 5889,
"end": 5912,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 5895,
"end": 5900,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 5895,
"end": 5899,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 5895,
"end": 5896,
"ctxt": 0
},
"value": "t",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 5896,
"end": 5899,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 5897,
"end": 5898,
"ctxt": 0
},
"value": "k",
"optional": false
}
}
}
}
]
},
"generator": false,
"async": false,
"typeParameters": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 5860,
"end": 5863,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 5861,
"end": 5862,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 5861,
"end": 5862,
"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": 5923,
"end": 5926,
"ctxt": 0
},
"value": "ff4",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 5930,
"end": 5939,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 5930,
"end": 5939,
"ctxt": 0
},
"value": "t",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 5931,
"end": 5939,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsIntersectionType",
"span": {
"start": 5933,
"end": 5939,
"ctxt": 0
},
"types": [
{
"type": "TsTypeReference",
"span": {
"start": 5933,
"end": 5934,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 5933,
"end": 5934,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
},
{
"type": "TsTypeLiteral",
"span": {
"start": 5937,
"end": 5939,
"ctxt": 0
},
"members": []
}
]
}
}
}
},
{
"type": "Parameter",
"span": {
"start": 5941,
"end": 5958,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 5941,
"end": 5958,
"ctxt": 0
},
"value": "k",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 5942,
"end": 5958,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeOperator",
"span": {
"start": 5944,
"end": 5958,
"ctxt": 0
},
"op": "keyof",
"typeAnnotation": {
"type": "TsParenthesizedType",
"span": {
"start": 5950,
"end": 5958,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsIntersectionType",
"span": {
"start": 5951,
"end": 5957,
"ctxt": 0
},
"types": [
{
"type": "TsTypeReference",
"span": {
"start": 5951,
"end": 5952,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 5951,
"end": 5952,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
},
{
"type": "TsTypeLiteral",
"span": {
"start": 5955,
"end": 5957,
"ctxt": 0
},
"members": []
}
]
}
}
}
}
}
}
],
"decorators": [],
"span": {
"start": 5914,
"end": 5973,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 5960,
"end": 5973,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 5966,
"end": 5971,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 5966,
"end": 5970,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 5966,
"end": 5967,
"ctxt": 0
},
"value": "t",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 5967,
"end": 5970,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 5968,
"end": 5969,
"ctxt": 0
},
"value": "k",
"optional": false
}
}
}
}
]
},
"generator": false,
"async": false,
"typeParameters": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 5926,
"end": 5929,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 5927,
"end": 5928,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 5927,
"end": 5928,
"ctxt": 0
},
"value": "T",
"optional": false
},
"in": false,
"out": false,
"const": false,
"constraint": null,
"default": null
}
]
},
"returnType": null
},
{
"type": "ExpressionStatement",
"span": {
"start": 5975,
"end": 5992,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 5975,
"end": 5991,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 5975,
"end": 5978,
"ctxt": 0
},
"value": "ff1",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "NullLiteral",
"span": {
"start": 5979,
"end": 5983,
"ctxt": 0
}
}
},
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 5985,
"end": 5990,
"ctxt": 0
},
"value": "foo",
"raw": "'foo'"
}
}
],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 6003,
"end": 6020,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 6003,
"end": 6019,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 6003,
"end": 6006,
"ctxt": 0
},
"value": "ff2",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "NullLiteral",
"span": {
"start": 6007,
"end": 6011,
"ctxt": 0
}
}
},
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 6013,
"end": 6018,
"ctxt": 0
},
"value": "foo",
"raw": "'foo'"
}
}
],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 6031,
"end": 6048,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 6031,
"end": 6047,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 6031,
"end": 6034,
"ctxt": 0
},
"value": "ff3",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "NullLiteral",
"span": {
"start": 6035,
"end": 6039,
"ctxt": 0
}
}
},
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 6041,
"end": 6046,
"ctxt": 0
},
"value": "foo",
"raw": "'foo'"
}
}
],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 6049,
"end": 6066,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 6049,
"end": 6065,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 6049,
"end": 6052,
"ctxt": 0
},
"value": "ff4",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "NullLiteral",
"span": {
"start": 6053,
"end": 6057,
"ctxt": 0
}
}
},
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 6059,
"end": 6064,
"ctxt": 0
},
"value": "foo",
"raw": "'foo'"
}
}
],
"typeArguments": null
}
},
{
"type": "TsTypeAliasDeclaration",
"span": {
"start": 6100,
"end": 6138,
"ctxt": 0
},
"declare": false,
"id": {
"type": "Identifier",
"span": {
"start": 6105,
"end": 6108,
"ctxt": 0
},
"value": "Foo",
"optional": false
},
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 6111,
"end": 6137,
"ctxt": 0
},
"members": [
{
"type": "TsIndexSignature",
"params": [
{
"type": "Identifier",
"span": {
"start": 6114,
"end": 6125,
"ctxt": 0
},
"value": "key",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 6117,
"end": 6125,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 6119,
"end": 6125,
"ctxt": 0
},
"kind": "string"
}
}
}
],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 6126,
"end": 6135,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 6128,
"end": 6135,
"ctxt": 0
},
"kind": "unknown"
}
},
"readonly": false,
"static": false,
"span": {
"start": 6113,
"end": 6135,
"ctxt": 0
}
}
]
}
},
{
"type": "TsTypeAliasDeclaration",
"span": {
"start": 6139,
"end": 6174,
"ctxt": 0
},
"declare": false,
"id": {
"type": "Identifier",
"span": {
"start": 6144,
"end": 6155,
"ctxt": 0
},
"value": "NullableFoo",
"optional": false
},
"typeParams": null,
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 6158,
"end": 6173,
"ctxt": 0
},
"types": [
{
"type": "TsTypeReference",
"span": {
"start": 6158,
"end": 6161,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 6158,
"end": 6161,
"ctxt": 0
},
"value": "Foo",
"optional": false
},
"typeParams": null
},
{
"type": "TsKeywordType",
"span": {
"start": 6164,
"end": 6173,
"ctxt": 0
},
"kind": "undefined"
}
]
}
},
{
"type": "TsTypeAliasDeclaration",
"span": {
"start": 6176,
"end": 6233,
"ctxt": 0
},
"declare": false,
"id": {
"type": "Identifier",
"span": {
"start": 6181,
"end": 6184,
"ctxt": 0
},
"value": "Bar",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 6184,
"end": 6207,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 6185,
"end": 6206,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 6185,
"end": 6186,
"ctxt": 0
},
"value": "T",
"optional": false
},
"in": false,
"out": false,
"const": false,
"constraint": {
"type": "TsTypeReference",
"span": {
"start": 6195,
"end": 6206,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 6195,
"end": 6206,
"ctxt": 0
},
"value": "NullableFoo",
"optional": false
},
"typeParams": null
},
"default": null
}
]
},
"typeAnnotation": {
"type": "TsIndexedAccessType",
"span": {
"start": 6210,
"end": 6232,
"ctxt": 0
},
"readonly": false,
"objectType": {
"type": "TsTypeReference",
"span": {
"start": 6210,
"end": 6224,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 6210,
"end": 6221,
"ctxt": 0
},
"value": "NonNullable",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 6221,
"end": 6224,
"ctxt": 0
},
"params": [
{
"type": "TsTypeReference",
"span": {
"start": 6222,
"end": 6223,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 6222,
"end": 6223,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
]
}
},
"indexType": {
"type": "TsKeywordType",
"span": {
"start": 6225,
"end": 6231,
"ctxt": 0
},
"kind": "string"
}
}
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 6283,
"end": 6286,
"ctxt": 0
},
"value": "fx0",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 6290,
"end": 6312,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 6290,
"end": 6312,
"ctxt": 0
},
"value": "value",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 6295,
"end": 6312,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsIntersectionType",
"span": {
"start": 6297,
"end": 6312,
"ctxt": 0
},
"types": [
{
"type": "TsTypeReference",
"span": {
"start": 6297,
"end": 6298,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 6297,
"end": 6298,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
},
{
"type": "TsParenthesizedType",
"span": {
"start": 6301,
"end": 6312,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 6302,
"end": 6311,
"ctxt": 0
},
"types": [
{
"type": "TsTypeLiteral",
"span": {
"start": 6302,
"end": 6304,
"ctxt": 0
},
"members": []
},
{
"type": "TsKeywordType",
"span": {
"start": 6307,
"end": 6311,
"ctxt": 0
},
"kind": "null"
}
]
}
}
]
}
}
}
}
],
"decorators": [],
"span": {
"start": 6274,
"end": 6425,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 6314,
"end": 6425,
"ctxt": 0
},
"stmts": [
{
"type": "IfStatement",
"span": {
"start": 6320,
"end": 6423,
"ctxt": 0
},
"test": {
"type": "BinaryExpression",
"span": {
"start": 6324,
"end": 6336,
"ctxt": 0
},
"operator": "===",
"left": {
"type": "Identifier",
"span": {
"start": 6324,
"end": 6329,
"ctxt": 0
},
"value": "value",
"optional": false
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 6334,
"end": 6336,
"ctxt": 0
},
"value": 42.0,
"raw": "42"
}
},
"consequent": {
"type": "BlockStatement",
"span": {
"start": 6338,
"end": 6371,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 6348,
"end": 6354,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 6348,
"end": 6353,
"ctxt": 0
},
"value": "value",
"optional": false
}
}
]
},
"alternate": {
"type": "BlockStatement",
"span": {
"start": 6381,
"end": 6423,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 6391,
"end": 6397,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 6391,
"end": 6396,
"ctxt": 0
},
"value": "value",
"optional": false
}
}
]
}
}
]
},
"generator": false,
"async": false,
"typeParameters": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 6286,
"end": 6289,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 6287,
"end": 6288,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 6287,
"end": 6288,
"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": 6436,
"end": 6439,
"ctxt": 0
},
"value": "fx1",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 6459,
"end": 6481,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 6459,
"end": 6481,
"ctxt": 0
},
"value": "value",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 6464,
"end": 6481,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsIntersectionType",
"span": {
"start": 6466,
"end": 6481,
"ctxt": 0
},
"types": [
{
"type": "TsTypeReference",
"span": {
"start": 6466,
"end": 6467,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 6466,
"end": 6467,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
},
{
"type": "TsParenthesizedType",
"span": {
"start": 6470,
"end": 6481,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 6471,
"end": 6480,
"ctxt": 0
},
"types": [
{
"type": "TsTypeLiteral",
"span": {
"start": 6471,
"end": 6473,
"ctxt": 0
},
"members": []
},
{
"type": "TsKeywordType",
"span": {
"start": 6476,
"end": 6480,
"ctxt": 0
},
"kind": "null"
}
]
}
}
]
}
}
}
}
],
"decorators": [],
"span": {
"start": 6427,
"end": 6594,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 6483,
"end": 6594,
"ctxt": 0
},
"stmts": [
{
"type": "IfStatement",
"span": {
"start": 6489,
"end": 6592,
"ctxt": 0
},
"test": {
"type": "BinaryExpression",
"span": {
"start": 6493,
"end": 6505,
"ctxt": 0
},
"operator": "===",
"left": {
"type": "Identifier",
"span": {
"start": 6493,
"end": 6498,
"ctxt": 0
},
"value": "value",
"optional": false
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 6503,
"end": 6505,
"ctxt": 0
},
"value": 42.0,
"raw": "42"
}
},
"consequent": {
"type": "BlockStatement",
"span": {
"start": 6507,
"end": 6540,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 6517,
"end": 6523,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 6517,
"end": 6522,
"ctxt": 0
},
"value": "value",
"optional": false
}
}
]
},
"alternate": {
"type": "BlockStatement",
"span": {
"start": 6550,
"end": 6592,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 6560,
"end": 6566,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 6560,
"end": 6565,
"ctxt": 0
},
"value": "value",
"optional": false
}
}
]
}
}
]
},
"generator": false,
"async": false,
"typeParameters": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 6439,
"end": 6458,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 6440,
"end": 6457,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 6440,
"end": 6441,
"ctxt": 0
},
"value": "T",
"optional": false
},
"in": false,
"out": false,
"const": false,
"constraint": {
"type": "TsKeywordType",
"span": {
"start": 6450,
"end": 6457,
"ctxt": 0
},
"kind": "unknown"
},
"default": null
}
]
},
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 6605,
"end": 6608,
"ctxt": 0
},
"value": "fx2",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 6623,
"end": 6645,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 6623,
"end": 6645,
"ctxt": 0
},
"value": "value",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 6628,
"end": 6645,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsIntersectionType",
"span": {
"start": 6630,
"end": 6645,
"ctxt": 0
},
"types": [
{
"type": "TsTypeReference",
"span": {
"start": 6630,
"end": 6631,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 6630,
"end": 6631,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
},
{
"type": "TsParenthesizedType",
"span": {
"start": 6634,
"end": 6645,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 6635,
"end": 6644,
"ctxt": 0
},
"types": [
{
"type": "TsTypeLiteral",
"span": {
"start": 6635,
"end": 6637,
"ctxt": 0
},
"members": []
},
{
"type": "TsKeywordType",
"span": {
"start": 6640,
"end": 6644,
"ctxt": 0
},
"kind": "null"
}
]
}
}
]
}
}
}
}
],
"decorators": [],
"span": {
"start": 6596,
"end": 6758,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 6647,
"end": 6758,
"ctxt": 0
},
"stmts": [
{
"type": "IfStatement",
"span": {
"start": 6653,
"end": 6756,
"ctxt": 0
},
"test": {
"type": "BinaryExpression",
"span": {
"start": 6657,
"end": 6669,
"ctxt": 0
},
"operator": "===",
"left": {
"type": "Identifier",
"span": {
"start": 6657,
"end": 6662,
"ctxt": 0
},
"value": "value",
"optional": false
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 6667,
"end": 6669,
"ctxt": 0
},
"value": 42.0,
"raw": "42"
}
},
"consequent": {
"type": "BlockStatement",
"span": {
"start": 6671,
"end": 6704,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 6681,
"end": 6687,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 6681,
"end": 6686,
"ctxt": 0
},
"value": "value",
"optional": false
}
}
]
},
"alternate": {
"type": "BlockStatement",
"span": {
"start": 6714,
"end": 6756,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 6724,
"end": 6730,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 6724,
"end": 6729,
"ctxt": 0
},
"value": "value",
"optional": false
}
}
]
}
}
]
},
"generator": false,
"async": false,
"typeParameters": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 6608,
"end": 6622,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 6609,
"end": 6621,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 6609,
"end": 6610,
"ctxt": 0
},
"value": "T",
"optional": false
},
"in": false,
"out": false,
"const": false,
"constraint": {
"type": "TsTypeLiteral",
"span": {
"start": 6619,
"end": 6621,
"ctxt": 0
},
"members": []
},
"default": null
}
]
},
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 6769,
"end": 6772,
"ctxt": 0
},
"value": "fx3",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 6799,
"end": 6821,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 6799,
"end": 6821,
"ctxt": 0
},
"value": "value",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 6804,
"end": 6821,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsIntersectionType",
"span": {
"start": 6806,
"end": 6821,
"ctxt": 0
},
"types": [
{
"type": "TsTypeReference",
"span": {
"start": 6806,
"end": 6807,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 6806,
"end": 6807,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
},
{
"type": "TsParenthesizedType",
"span": {
"start": 6810,
"end": 6821,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 6811,
"end": 6820,
"ctxt": 0
},
"types": [
{
"type": "TsTypeLiteral",
"span": {
"start": 6811,
"end": 6813,
"ctxt": 0
},
"members": []
},
{
"type": "TsKeywordType",
"span": {
"start": 6816,
"end": 6820,
"ctxt": 0
},
"kind": "null"
}
]
}
}
]
}
}
}
}
],
"decorators": [],
"span": {
"start": 6760,
"end": 6934,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 6823,
"end": 6934,
"ctxt": 0
},
"stmts": [
{
"type": "IfStatement",
"span": {
"start": 6829,
"end": 6932,
"ctxt": 0
},
"test": {
"type": "BinaryExpression",
"span": {
"start": 6833,
"end": 6845,
"ctxt": 0
},
"operator": "===",
"left": {
"type": "Identifier",
"span": {
"start": 6833,
"end": 6838,
"ctxt": 0
},
"value": "value",
"optional": false
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 6843,
"end": 6845,
"ctxt": 0
},
"value": 42.0,
"raw": "42"
}
},
"consequent": {
"type": "BlockStatement",
"span": {
"start": 6847,
"end": 6880,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 6857,
"end": 6863,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 6857,
"end": 6862,
"ctxt": 0
},
"value": "value",
"optional": false
}
}
]
},
"alternate": {
"type": "BlockStatement",
"span": {
"start": 6890,
"end": 6932,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 6900,
"end": 6906,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 6900,
"end": 6905,
"ctxt": 0
},
"value": "value",
"optional": false
}
}
]
}
}
]
},
"generator": false,
"async": false,
"typeParameters": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 6772,
"end": 6798,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 6773,
"end": 6797,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 6773,
"end": 6774,
"ctxt": 0
},
"value": "T",
"optional": false
},
"in": false,
"out": false,
"const": false,
"constraint": {
"type": "TsUnionType",
"span": {
"start": 6783,
"end": 6797,
"ctxt": 0
},
"types": [
{
"type": "TsTypeLiteral",
"span": {
"start": 6783,
"end": 6785,
"ctxt": 0
},
"members": []
},
{
"type": "TsKeywordType",
"span": {
"start": 6788,
"end": 6797,
"ctxt": 0
},
"kind": "undefined"
}
]
},
"default": null
}
]
},
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 6945,
"end": 6948,
"ctxt": 0
},
"value": "fx4",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 6970,
"end": 6992,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 6970,
"end": 6992,
"ctxt": 0
},
"value": "value",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 6975,
"end": 6992,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsIntersectionType",
"span": {
"start": 6977,
"end": 6992,
"ctxt": 0
},
"types": [
{
"type": "TsTypeReference",
"span": {
"start": 6977,
"end": 6978,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 6977,
"end": 6978,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
},
{
"type": "TsParenthesizedType",
"span": {
"start": 6981,
"end": 6992,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 6982,
"end": 6991,
"ctxt": 0
},
"types": [
{
"type": "TsTypeLiteral",
"span": {
"start": 6982,
"end": 6984,
"ctxt": 0
},
"members": []
},
{
"type": "TsKeywordType",
"span": {
"start": 6987,
"end": 6991,
"ctxt": 0
},
"kind": "null"
}
]
}
}
]
}
}
}
}
],
"decorators": [],
"span": {
"start": 6936,
"end": 7105,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 6994,
"end": 7105,
"ctxt": 0
},
"stmts": [
{
"type": "IfStatement",
"span": {
"start": 7000,
"end": 7103,
"ctxt": 0
},
"test": {
"type": "BinaryExpression",
"span": {
"start": 7004,
"end": 7016,
"ctxt": 0
},
"operator": "===",
"left": {
"type": "Identifier",
"span": {
"start": 7004,
"end": 7009,
"ctxt": 0
},
"value": "value",
"optional": false
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 7014,
"end": 7016,
"ctxt": 0
},
"value": 42.0,
"raw": "42"
}
},
"consequent": {
"type": "BlockStatement",
"span": {
"start": 7018,
"end": 7051,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 7028,
"end": 7034,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 7028,
"end": 7033,
"ctxt": 0
},
"value": "value",
"optional": false
}
}
]
},
"alternate": {
"type": "BlockStatement",
"span": {
"start": 7061,
"end": 7103,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 7071,
"end": 7077,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 7071,
"end": 7076,
"ctxt": 0
},
"value": "value",
"optional": false
}
}
]
}
}
]
},
"generator": false,
"async": false,
"typeParameters": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 6948,
"end": 6969,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 6949,
"end": 6968,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 6949,
"end": 6950,
"ctxt": 0
},
"value": "T",
"optional": false
},
"in": false,
"out": false,
"const": false,
"constraint": {
"type": "TsUnionType",
"span": {
"start": 6959,
"end": 6968,
"ctxt": 0
},
"types": [
{
"type": "TsTypeLiteral",
"span": {
"start": 6959,
"end": 6961,
"ctxt": 0
},
"members": []
},
{
"type": "TsKeywordType",
"span": {
"start": 6964,
"end": 6968,
"ctxt": 0
},
"kind": "null"
}
]
},
"default": null
}
]
},
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 7116,
"end": 7119,
"ctxt": 0
},
"value": "fx5",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 7153,
"end": 7175,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 7153,
"end": 7175,
"ctxt": 0
},
"value": "value",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 7158,
"end": 7175,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsIntersectionType",
"span": {
"start": 7160,
"end": 7175,
"ctxt": 0
},
"types": [
{
"type": "TsTypeReference",
"span": {
"start": 7160,
"end": 7161,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 7160,
"end": 7161,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
},
{
"type": "TsParenthesizedType",
"span": {
"start": 7164,
"end": 7175,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 7165,
"end": 7174,
"ctxt": 0
},
"types": [
{
"type": "TsTypeLiteral",
"span": {
"start": 7165,
"end": 7167,
"ctxt": 0
},
"members": []
},
{
"type": "TsKeywordType",
"span": {
"start": 7170,
"end": 7174,
"ctxt": 0
},
"kind": "null"
}
]
}
}
]
}
}
}
}
],
"decorators": [],
"span": {
"start": 7107,
"end": 7288,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 7177,
"end": 7288,
"ctxt": 0
},
"stmts": [
{
"type": "IfStatement",
"span": {
"start": 7183,
"end": 7286,
"ctxt": 0
},
"test": {
"type": "BinaryExpression",
"span": {
"start": 7187,
"end": 7199,
"ctxt": 0
},
"operator": "===",
"left": {
"type": "Identifier",
"span": {
"start": 7187,
"end": 7192,
"ctxt": 0
},
"value": "value",
"optional": false
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 7197,
"end": 7199,
"ctxt": 0
},
"value": 42.0,
"raw": "42"
}
},
"consequent": {
"type": "BlockStatement",
"span": {
"start": 7201,
"end": 7234,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 7211,
"end": 7217,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 7211,
"end": 7216,
"ctxt": 0
},
"value": "value",
"optional": false
}
}
]
},
"alternate": {
"type": "BlockStatement",
"span": {
"start": 7244,
"end": 7286,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 7254,
"end": 7260,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 7254,
"end": 7259,
"ctxt": 0
},
"value": "value",
"optional": false
}
}
]
}
}
]
},
"generator": false,
"async": false,
"typeParameters": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 7119,
"end": 7152,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 7120,
"end": 7151,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 7120,
"end": 7121,
"ctxt": 0
},
"value": "T",
"optional": false
},
"in": false,
"out": false,
"const": false,
"constraint": {
"type": "TsUnionType",
"span": {
"start": 7130,
"end": 7151,
"ctxt": 0
},
"types": [
{
"type": "TsTypeLiteral",
"span": {
"start": 7130,
"end": 7132,
"ctxt": 0
},
"members": []
},
{
"type": "TsKeywordType",
"span": {
"start": 7135,
"end": 7139,
"ctxt": 0
},
"kind": "null"
},
{
"type": "TsKeywordType",
"span": {
"start": 7142,
"end": 7151,
"ctxt": 0
},
"kind": "undefined"
}
]
},
"default": null
}
]
},
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 7327,
"end": 7331,
"ctxt": 0
},
"value": "fx10",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 7332,
"end": 7350,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 7332,
"end": 7350,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 7333,
"end": 7350,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 7335,
"end": 7350,
"ctxt": 0
},
"types": [
{
"type": "TsKeywordType",
"span": {
"start": 7335,
"end": 7341,
"ctxt": 0
},
"kind": "string"
},
{
"type": "TsKeywordType",
"span": {
"start": 7344,
"end": 7350,
"ctxt": 0
},
"kind": "number"
}
]
}
}
}
},
{
"type": "Parameter",
"span": {
"start": 7352,
"end": 7361,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 7352,
"end": 7361,
"ctxt": 0
},
"value": "y",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 7353,
"end": 7361,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 7355,
"end": 7361,
"ctxt": 0
},
"kind": "number"
}
}
}
}
],
"decorators": [],
"span": {
"start": 7318,
"end": 7572,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 7363,
"end": 7572,
"ctxt": 0
},
"stmts": [
{
"type": "IfStatement",
"span": {
"start": 7369,
"end": 7467,
"ctxt": 0
},
"test": {
"type": "BinaryExpression",
"span": {
"start": 7373,
"end": 7379,
"ctxt": 0
},
"operator": "==",
"left": {
"type": "Identifier",
"span": {
"start": 7373,
"end": 7374,
"ctxt": 0
},
"value": "x",
"optional": false
},
"right": {
"type": "Identifier",
"span": {
"start": 7378,
"end": 7379,
"ctxt": 0
},
"value": "y",
"optional": false
}
},
"consequent": {
"type": "BlockStatement",
"span": {
"start": 7381,
"end": 7419,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 7391,
"end": 7393,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 7391,
"end": 7392,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
]
},
"alternate": {
"type": "BlockStatement",
"span": {
"start": 7429,
"end": 7467,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 7439,
"end": 7441,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 7439,
"end": 7440,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
]
}
},
{
"type": "IfStatement",
"span": {
"start": 7472,
"end": 7570,
"ctxt": 0
},
"test": {
"type": "BinaryExpression",
"span": {
"start": 7476,
"end": 7482,
"ctxt": 0
},
"operator": "!=",
"left": {
"type": "Identifier",
"span": {
"start": 7476,
"end": 7477,
"ctxt": 0
},
"value": "x",
"optional": false
},
"right": {
"type": "Identifier",
"span": {
"start": 7481,
"end": 7482,
"ctxt": 0
},
"value": "y",
"optional": false
}
},
"consequent": {
"type": "BlockStatement",
"span": {
"start": 7484,
"end": 7522,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 7494,
"end": 7496,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 7494,
"end": 7495,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
]
},
"alternate": {
"type": "BlockStatement",
"span": {
"start": 7532,
"end": 7570,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 7542,
"end": 7544,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 7542,
"end": 7543,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
]
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 7606,
"end": 7614,
"ctxt": 0
},
"value": "SendBlob",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 7615,
"end": 7632,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 7615,
"end": 7632,
"ctxt": 0
},
"value": "encoding",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 7623,
"end": 7632,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 7625,
"end": 7632,
"ctxt": 0
},
"kind": "unknown"
}
}
}
}
],
"decorators": [],
"span": {
"start": 7597,
"end": 7751,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 7634,
"end": 7751,
"ctxt": 0
},
"stmts": [
{
"type": "IfStatement",
"span": {
"start": 7640,
"end": 7735,
"ctxt": 0
},
"test": {
"type": "BinaryExpression",
"span": {
"start": 7644,
"end": 7689,
"ctxt": 0
},
"operator": "&&",
"left": {
"type": "BinaryExpression",
"span": {
"start": 7644,
"end": 7666,
"ctxt": 0
},
"operator": "!==",
"left": {
"type": "Identifier",
"span": {
"start": 7644,
"end": 7652,
"ctxt": 0
},
"value": "encoding",
"optional": false
},
"right": {
"type": "Identifier",
"span": {
"start": 7657,
"end": 7666,
"ctxt": 0
},
"value": "undefined",
"optional": false
}
},
"right": {
"type": "BinaryExpression",
"span": {
"start": 7670,
"end": 7689,
"ctxt": 0
},
"operator": "!==",
"left": {
"type": "Identifier",
"span": {
"start": 7670,
"end": 7678,
"ctxt": 0
},
"value": "encoding",
"optional": false
},
"right": {
"type": "StringLiteral",
"span": {
"start": 7683,
"end": 7689,
"ctxt": 0
},
"value": "utf8",
"raw": "'utf8'"
}
}
},
"consequent": {
"type": "BlockStatement",
"span": {
"start": 7691,
"end": 7735,
"ctxt": 0
},
"stmts": [
{
"type": "ThrowStatement",
"span": {
"start": 7701,
"end": 7729,
"ctxt": 0
},
"argument": {
"type": "NewExpression",
"span": {
"start": 7707,
"end": 7728,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 7711,
"end": 7716,
"ctxt": 0
},
"value": "Error",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 7717,
"end": 7727,
"ctxt": 0
},
"value": "encoding",
"raw": "'encoding'"
}
}
],
"typeArguments": null
}
}
]
},
"alternate": null
},
{
"type": "ExpressionStatement",
"span": {
"start": 7740,
"end": 7749,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 7740,
"end": 7748,
"ctxt": 0
},
"value": "encoding",
"optional": false
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "EmptyStatement",
"span": {
"start": 7751,
"end": 7752,
"ctxt": 0
}
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 7763,
"end": 7775,
"ctxt": 0
},
"value": "doSomething1",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 7795,
"end": 7803,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 7795,
"end": 7803,
"ctxt": 0
},
"value": "value",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 7800,
"end": 7803,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 7802,
"end": 7803,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 7802,
"end": 7803,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
}
}
}
],
"decorators": [],
"span": {
"start": 7754,
"end": 7964,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 7808,
"end": 7964,
"ctxt": 0
},
"stmts": [
{
"type": "IfStatement",
"span": {
"start": 7814,
"end": 7868,
"ctxt": 0
},
"test": {
"type": "BinaryExpression",
"span": {
"start": 7818,
"end": 7837,
"ctxt": 0
},
"operator": "===",
"left": {
"type": "Identifier",
"span": {
"start": 7818,
"end": 7823,
"ctxt": 0
},
"value": "value",
"optional": false
},
"right": {
"type": "Identifier",
"span": {
"start": 7828,
"end": 7837,
"ctxt": 0
},
"value": "undefined",
"optional": false
}
},
"consequent": {
"type": "BlockStatement",
"span": {
"start": 7839,
"end": 7868,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 7849,
"end": 7862,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 7856,
"end": 7861,
"ctxt": 0
},
"value": "value",
"optional": false
}
}
]
},
"alternate": null
},
{
"type": "IfStatement",
"span": {
"start": 7873,
"end": 7944,
"ctxt": 0
},
"test": {
"type": "BinaryExpression",
"span": {
"start": 7877,
"end": 7889,
"ctxt": 0
},
"operator": "===",
"left": {
"type": "Identifier",
"span": {
"start": 7877,
"end": 7882,
"ctxt": 0
},
"value": "value",
"optional": false
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 7887,
"end": 7889,
"ctxt": 0
},
"value": 42.0,
"raw": "42"
}
},
"consequent": {
"type": "BlockStatement",
"span": {
"start": 7891,
"end": 7944,
"ctxt": 0
},
"stmts": [
{
"type": "ThrowStatement",
"span": {
"start": 7901,
"end": 7938,
"ctxt": 0
},
"argument": {
"type": "CallExpression",
"span": {
"start": 7907,
"end": 7937,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 7907,
"end": 7912,
"ctxt": 0
},
"value": "Error",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 7913,
"end": 7936,
"ctxt": 0
},
"value": "Meaning of life value",
"raw": "'Meaning of life value'"
}
}
],
"typeArguments": null
}
}
]
},
"alternate": null
},
{
"type": "ReturnStatement",
"span": {
"start": 7949,
"end": 7962,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 7956,
"end": 7961,
"ctxt": 0
},
"value": "value",
"optional": false
}
}
]
},
"generator": false,
"async": false,
"typeParameters": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 7775,
"end": 7794,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 7776,
"end": 7793,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 7776,
"end": 7777,
"ctxt": 0
},
"value": "T",
"optional": false
},
"in": false,
"out": false,
"const": false,
"constraint": {
"type": "TsKeywordType",
"span": {
"start": 7786,
"end": 7793,
"ctxt": 0
},
"kind": "unknown"
},
"default": null
}
]
},
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 7804,
"end": 7807,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 7806,
"end": 7807,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 7806,
"end": 7807,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
}
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 7975,
"end": 7987,
"ctxt": 0
},
"value": "doSomething2",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 7988,
"end": 8002,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 7988,
"end": 8002,
"ctxt": 0
},
"value": "value",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 7993,
"end": 8002,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 7995,
"end": 8002,
"ctxt": 0
},
"kind": "unknown"
}
}
}
}
],
"decorators": [],
"span": {
"start": 7966,
"end": 8111,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 8010,
"end": 8111,
"ctxt": 0
},
"stmts": [
{
"type": "IfStatement",
"span": {
"start": 8016,
"end": 8064,
"ctxt": 0
},
"test": {
"type": "BinaryExpression",
"span": {
"start": 8020,
"end": 8039,
"ctxt": 0
},
"operator": "===",
"left": {
"type": "Identifier",
"span": {
"start": 8020,
"end": 8025,
"ctxt": 0
},
"value": "value",
"optional": false
},
"right": {
"type": "Identifier",
"span": {
"start": 8030,
"end": 8039,
"ctxt": 0
},
"value": "undefined",
"optional": false
}
},
"consequent": {
"type": "BlockStatement",
"span": {
"start": 8041,
"end": 8064,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 8051,
"end": 8058,
"ctxt": 0
},
"argument": null
}
]
},
"alternate": null
},
{
"type": "IfStatement",
"span": {
"start": 8069,
"end": 8109,
"ctxt": 0
},
"test": {
"type": "BinaryExpression",
"span": {
"start": 8073,
"end": 8085,
"ctxt": 0
},
"operator": "===",
"left": {
"type": "Identifier",
"span": {
"start": 8073,
"end": 8078,
"ctxt": 0
},
"value": "value",
"optional": false
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 8083,
"end": 8085,
"ctxt": 0
},
"value": 42.0,
"raw": "42"
}
},
"consequent": {
"type": "BlockStatement",
"span": {
"start": 8087,
"end": 8109,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 8097,
"end": 8103,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 8097,
"end": 8102,
"ctxt": 0
},
"value": "value",
"optional": false
}
}
]
},
"alternate": null
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 8003,
"end": 8009,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 8005,
"end": 8009,
"ctxt": 0
},
"kind": "void"
}
}
},
{
"type": "TsTypeAliasDeclaration",
"span": {
"start": 8135,
"end": 8175,
"ctxt": 0
},
"declare": false,
"id": {
"type": "Identifier",
"span": {
"start": 8140,
"end": 8145,
"ctxt": 0
},
"value": "TypeA",
"optional": false
},
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 8148,
"end": 8175,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 8154,
"end": 8161,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 8154,
"end": 8155,
"ctxt": 0
},
"value": "A",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 8155,
"end": 8160,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsLiteralType",
"span": {
"start": 8157,
"end": 8160,
"ctxt": 0
},
"literal": {
"type": "StringLiteral",
"span": {
"start": 8157,
"end": 8160,
"ctxt": 0
},
"value": "A",
"raw": "'A'"
}
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 8166,
"end": 8173,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 8166,
"end": 8167,
"ctxt": 0
},
"value": "B",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 8167,
"end": 8172,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsLiteralType",
"span": {
"start": 8169,
"end": 8172,
"ctxt": 0
},
"literal": {
"type": "StringLiteral",
"span": {
"start": 8169,
"end": 8172,
"ctxt": 0
},
"value": "B",
"raw": "'B'"
}
}
},
"typeParams": null
}
]
}
},
{
"type": "TsTypeAliasDeclaration",
"span": {
"start": 8177,
"end": 8229,
"ctxt": 0
},
"declare": false,
"id": {
"type": "Identifier",
"span": {
"start": 8182,
"end": 8187,
"ctxt": 0
},
"value": "TypeB",
"optional": false
},
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 8190,
"end": 8229,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 8196,
"end": 8203,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 8196,
"end": 8197,
"ctxt": 0
},
"value": "A",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 8197,
"end": 8202,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsLiteralType",
"span": {
"start": 8199,
"end": 8202,
"ctxt": 0
},
"literal": {
"type": "StringLiteral",
"span": {
"start": 8199,
"end": 8202,
"ctxt": 0
},
"value": "A",
"raw": "'A'"
}
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 8208,
"end": 8215,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 8208,
"end": 8209,
"ctxt": 0
},
"value": "B",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 8209,
"end": 8214,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsLiteralType",
"span": {
"start": 8211,
"end": 8214,
"ctxt": 0
},
"literal": {
"type": "StringLiteral",
"span": {
"start": 8211,
"end": 8214,
"ctxt": 0
},
"value": "B",
"raw": "'B'"
}
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 8220,
"end": 8227,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 8220,
"end": 8221,
"ctxt": 0
},
"value": "C",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 8221,
"end": 8226,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsLiteralType",
"span": {
"start": 8223,
"end": 8226,
"ctxt": 0
},
"literal": {
"type": "StringLiteral",
"span": {
"start": 8223,
"end": 8226,
"ctxt": 0
},
"value": "C",
"raw": "'C'"
}
}
},
"typeParams": null
}
]
}
},
{
"type": "TsTypeAliasDeclaration",
"span": {
"start": 8231,
"end": 8320,
"ctxt": 0
},
"declare": false,
"id": {
"type": "Identifier",
"span": {
"start": 8236,
"end": 8237,
"ctxt": 0
},
"value": "R",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 8237,
"end": 8260,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 8238,
"end": 8259,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 8238,
"end": 8239,
"ctxt": 0
},
"value": "T",
"optional": false
},
"in": false,
"out": false,
"const": false,
"constraint": {
"type": "TsTypeOperator",
"span": {
"start": 8248,
"end": 8259,
"ctxt": 0
},
"op": "keyof",
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 8254,
"end": 8259,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 8254,
"end": 8259,
"ctxt": 0
},
"value": "TypeA",
"optional": false
},
"typeParams": null
}
},
"default": null
}
]
},
"typeAnnotation": {
"type": "TsConditionalType",
"span": {
"start": 8267,
"end": 8319,
"ctxt": 0
},
"checkType": {
"type": "TsTypeReference",
"span": {
"start": 8267,
"end": 8268,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 8267,
"end": 8268,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
},
"extendsType": {
"type": "TsTypeOperator",
"span": {
"start": 8277,
"end": 8288,
"ctxt": 0
},
"op": "keyof",
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 8283,
"end": 8288,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 8283,
"end": 8288,
"ctxt": 0
},
"value": "TypeB",
"optional": false
},
"typeParams": null
}
},
"trueType": {
"type": "TsTupleType",
"span": {
"start": 8291,
"end": 8311,
"ctxt": 0
},
"elemTypes": [
{
"type": "TsTupleElement",
"span": {
"start": 8292,
"end": 8300,
"ctxt": 0
},
"label": null,
"ty": {
"type": "TsIndexedAccessType",
"span": {
"start": 8292,
"end": 8300,
"ctxt": 0
},
"readonly": false,
"objectType": {
"type": "TsTypeReference",
"span": {
"start": 8292,
"end": 8297,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 8292,
"end": 8297,
"ctxt": 0
},
"value": "TypeA",
"optional": false
},
"typeParams": null
},
"indexType": {
"type": "TsTypeReference",
"span": {
"start": 8298,
"end": 8299,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 8298,
"end": 8299,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
}
},
{
"type": "TsTupleElement",
"span": {
"start": 8302,
"end": 8310,
"ctxt": 0
},
"label": null,
"ty": {
"type": "TsIndexedAccessType",
"span": {
"start": 8302,
"end": 8310,
"ctxt": 0
},
"readonly": false,
"objectType": {
"type": "TsTypeReference",
"span": {
"start": 8302,
"end": 8307,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 8302,
"end": 8307,
"ctxt": 0
},
"value": "TypeB",
"optional": false
},
"typeParams": null
},
"indexType": {
"type": "TsTypeReference",
"span": {
"start": 8308,
"end": 8309,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 8308,
"end": 8309,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
}
}
]
},
"falseType": {
"type": "TsKeywordType",
"span": {
"start": 8314,
"end": 8319,
"ctxt": 0
},
"kind": "never"
}
}
},
{
"type": "TsTypeAliasDeclaration",
"span": {
"start": 8322,
"end": 8444,
"ctxt": 0
},
"declare": false,
"id": {
"type": "Identifier",
"span": {
"start": 8327,
"end": 8329,
"ctxt": 0
},
"value": "R2",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 8329,
"end": 8352,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 8330,
"end": 8351,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 8330,
"end": 8331,
"ctxt": 0
},
"value": "T",
"optional": false
},
"in": false,
"out": false,
"const": false,
"constraint": {
"type": "TsTypeReference",
"span": {
"start": 8340,
"end": 8351,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 8340,
"end": 8351,
"ctxt": 0
},
"value": "PropertyKey",
"optional": false
},
"typeParams": null
},
"default": null
}
]
},
"typeAnnotation": {
"type": "TsConditionalType",
"span": {
"start": 8359,
"end": 8443,
"ctxt": 0
},
"checkType": {
"type": "TsTypeReference",
"span": {
"start": 8359,
"end": 8360,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 8359,
"end": 8360,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
},
"extendsType": {
"type": "TsTypeOperator",
"span": {
"start": 8369,
"end": 8380,
"ctxt": 0
},
"op": "keyof",
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 8375,
"end": 8380,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 8375,
"end": 8380,
"ctxt": 0
},
"value": "TypeA",
"optional": false
},
"typeParams": null
}
},
"trueType": {
"type": "TsConditionalType",
"span": {
"start": 8383,
"end": 8435,
"ctxt": 0
},
"checkType": {
"type": "TsTypeReference",
"span": {
"start": 8383,
"end": 8384,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 8383,
"end": 8384,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
},
"extendsType": {
"type": "TsTypeOperator",
"span": {
"start": 8393,
"end": 8404,
"ctxt": 0
},
"op": "keyof",
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 8399,
"end": 8404,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 8399,
"end": 8404,
"ctxt": 0
},
"value": "TypeB",
"optional": false
},
"typeParams": null
}
},
"trueType": {
"type": "TsTupleType",
"span": {
"start": 8407,
"end": 8427,
"ctxt": 0
},
"elemTypes": [
{
"type": "TsTupleElement",
"span": {
"start": 8408,
"end": 8416,
"ctxt": 0
},
"label": null,
"ty": {
"type": "TsIndexedAccessType",
"span": {
"start": 8408,
"end": 8416,
"ctxt": 0
},
"readonly": false,
"objectType": {
"type": "TsTypeReference",
"span": {
"start": 8408,
"end": 8413,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 8408,
"end": 8413,
"ctxt": 0
},
"value": "TypeA",
"optional": false
},
"typeParams": null
},
"indexType": {
"type": "TsTypeReference",
"span": {
"start": 8414,
"end": 8415,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 8414,
"end": 8415,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
}
},
{
"type": "TsTupleElement",
"span": {
"start": 8418,
"end": 8426,
"ctxt": 0
},
"label": null,
"ty": {
"type": "TsIndexedAccessType",
"span": {
"start": 8418,
"end": 8426,
"ctxt": 0
},
"readonly": false,
"objectType": {
"type": "TsTypeReference",
"span": {
"start": 8418,
"end": 8423,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 8418,
"end": 8423,
"ctxt": 0
},
"value": "TypeB",
"optional": false
},
"typeParams": null
},
"indexType": {
"type": "TsTypeReference",
"span": {
"start": 8424,
"end": 8425,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 8424,
"end": 8425,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
}
}
]
},
"falseType": {
"type": "TsKeywordType",
"span": {
"start": 8430,
"end": 8435,
"ctxt": 0
},
"kind": "never"
}
},
"falseType": {
"type": "TsKeywordType",
"span": {
"start": 8438,
"end": 8443,
"ctxt": 0
},
"kind": "never"
}
}
},
{
"type": "TsTypeAliasDeclaration",
"span": {
"start": 8468,
"end": 8488,
"ctxt": 0
},
"declare": false,
"id": {
"type": "Identifier",
"span": {
"start": 8473,
"end": 8475,
"ctxt": 0
},
"value": "AB",
"optional": false
},
"typeParams": null,
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 8478,
"end": 8487,
"ctxt": 0
},
"types": [
{
"type": "TsLiteralType",
"span": {
"start": 8478,
"end": 8481,
"ctxt": 0
},
"literal": {
"type": "StringLiteral",
"span": {
"start": 8478,
"end": 8481,
"ctxt": 0
},
"value": "A",
"raw": "\"A\""
}
},
{
"type": "TsLiteralType",
"span": {
"start": 8484,
"end": 8487,
"ctxt": 0
},
"literal": {
"type": "StringLiteral",
"span": {
"start": 8484,
"end": 8487,
"ctxt": 0
},
"value": "B",
"raw": "\"B\""
}
}
]
}
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 8499,
"end": 8500,
"ctxt": 0
},
"value": "x",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 8518,
"end": 8537,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 8518,
"end": 8537,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 8519,
"end": 8537,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsIntersectionType",
"span": {
"start": 8521,
"end": 8537,
"ctxt": 0
},
"types": [
{
"type": "TsTypeReference",
"span": {
"start": 8521,
"end": 8525,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 8521,
"end": 8525,
"ctxt": 0
},
"value": "T_AB",
"optional": false
},
"typeParams": null
},
{
"type": "TsKeywordType",
"span": {
"start": 8528,
"end": 8537,
"ctxt": 0
},
"kind": "undefined"
}
]
}
}
}
},
{
"type": "Parameter",
"span": {
"start": 8539,
"end": 8545,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 8539,
"end": 8545,
"ctxt": 0
},
"value": "y",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 8540,
"end": 8545,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 8542,
"end": 8545,
"ctxt": 0
},
"kind": "any"
}
}
}
}
],
"decorators": [],
"span": {
"start": 8490,
"end": 8593,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 8547,
"end": 8593,
"ctxt": 0
},
"stmts": [
{
"type": "VariableDeclaration",
"span": {
"start": 8553,
"end": 8591,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 8557,
"end": 8590,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 8557,
"end": 8559,
"ctxt": 0
},
"value": "r2",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 8559,
"end": 8566,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 8561,
"end": 8566,
"ctxt": 0
},
"kind": "never"
}
}
},
"init": {
"type": "TsAsExpression",
"span": {
"start": 8569,
"end": 8590,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 8569,
"end": 8570,
"ctxt": 0
},
"value": "y",
"optional": false
},
"typeAnnotation": {
"type": "TsIntersectionType",
"span": {
"start": 8574,
"end": 8590,
"ctxt": 0
},
"types": [
{
"type": "TsTypeReference",
"span": {
"start": 8574,
"end": 8578,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 8574,
"end": 8578,
"ctxt": 0
},
"value": "T_AB",
"optional": false
},
"typeParams": null
},
{
"type": "TsKeywordType",
"span": {
"start": 8581,
"end": 8590,
"ctxt": 0
},
"kind": "undefined"
}
]
}
},
"definite": false
}
]
}
]
},
"generator": false,
"async": false,
"typeParameters": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 8500,
"end": 8517,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 8501,
"end": 8516,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 8501,
"end": 8505,
"ctxt": 0
},
"value": "T_AB",
"optional": false
},
"in": false,
"out": false,
"const": false,
"constraint": {
"type": "TsTypeReference",
"span": {
"start": 8514,
"end": 8516,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 8514,
"end": 8516,
"ctxt": 0
},
"value": "AB",
"optional": false
},
"typeParams": null
},
"default": null
}
]
},
"returnType": null
},
{
"type": "TsTypeAliasDeclaration",
"span": {
"start": 8618,
"end": 8637,
"ctxt": 0
},
"declare": false,
"id": {
"type": "Identifier",
"span": {
"start": 8623,
"end": 8627,
"ctxt": 0
},
"value": "Left",
"optional": false
},
"typeParams": null,
"typeAnnotation": {
"type": "TsLiteralType",
"span": {
"start": 8630,
"end": 8636,
"ctxt": 0
},
"literal": {
"type": "StringLiteral",
"span": {
"start": 8630,
"end": 8636,
"ctxt": 0
},
"value": "left",
"raw": "'left'"
}
}
},
{
"type": "TsTypeAliasDeclaration",
"span": {
"start": 8638,
"end": 8680,
"ctxt": 0
},
"declare": false,
"id": {
"type": "Identifier",
"span": {
"start": 8643,
"end": 8648,
"ctxt": 0
},
"value": "Right",
"optional": false
},
"typeParams": null,
"typeAnnotation": {
"type": "TsIntersectionType",
"span": {
"start": 8651,
"end": 8679,
"ctxt": 0
},
"types": [
{
"type": "TsLiteralType",
"span": {
"start": 8651,
"end": 8658,
"ctxt": 0
},
"literal": {
"type": "StringLiteral",
"span": {
"start": 8651,
"end": 8658,
"ctxt": 0
},
"value": "right",
"raw": "'right'"
}
},
{
"type": "TsTypeLiteral",
"span": {
"start": 8661,
"end": 8679,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 8663,
"end": 8677,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 8663,
"end": 8668,
"ctxt": 0
},
"value": "right",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 8668,
"end": 8677,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsLiteralType",
"span": {
"start": 8670,
"end": 8677,
"ctxt": 0
},
"literal": {
"type": "StringLiteral",
"span": {
"start": 8670,
"end": 8677,
"ctxt": 0
},
"value": "right",
"raw": "'right'"
}
}
},
"typeParams": null
}
]
}
]
}
},
{
"type": "TsTypeAliasDeclaration",
"span": {
"start": 8681,
"end": 8708,
"ctxt": 0
},
"declare": false,
"id": {
"type": "Identifier",
"span": {
"start": 8686,
"end": 8692,
"ctxt": 0
},
"value": "Either",
"optional": false
},
"typeParams": null,
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 8695,
"end": 8707,
"ctxt": 0
},
"types": [
{
"type": "TsTypeReference",
"span": {
"start": 8695,
"end": 8699,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 8695,
"end": 8699,
"ctxt": 0
},
"value": "Left",
"optional": false
},
"typeParams": null
},
{
"type": "TsTypeReference",
"span": {
"start": 8702,
"end": 8707,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 8702,
"end": 8707,
"ctxt": 0
},
"value": "Right",
"optional": false
},
"typeParams": null
}
]
}
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 8719,
"end": 8730,
"ctxt": 0
},
"value": "assertNever",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 8731,
"end": 8739,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 8731,
"end": 8739,
"ctxt": 0
},
"value": "v",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 8732,
"end": 8739,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 8734,
"end": 8739,
"ctxt": 0
},
"kind": "never"
}
}
}
}
],
"decorators": [],
"span": {
"start": 8710,
"end": 8781,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 8748,
"end": 8781,
"ctxt": 0
},
"stmts": [
{
"type": "ThrowStatement",
"span": {
"start": 8754,
"end": 8779,
"ctxt": 0
},
"argument": {
"type": "NewExpression",
"span": {
"start": 8760,
"end": 8778,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 8764,
"end": 8769,
"ctxt": 0
},
"value": "Error",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 8770,
"end": 8777,
"ctxt": 0
},
"value": "never",
"raw": "'never'"
}
}
],
"typeArguments": null
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 8740,
"end": 8747,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 8742,
"end": 8747,
"ctxt": 0
},
"kind": "never"
}
}
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 8792,
"end": 8796,
"ctxt": 0
},
"value": "fx20",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 8797,
"end": 8810,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 8797,
"end": 8810,
"ctxt": 0
},
"value": "value",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 8802,
"end": 8810,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 8804,
"end": 8810,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 8804,
"end": 8810,
"ctxt": 0
},
"value": "Either",
"optional": false
},
"typeParams": null
}
}
}
}
],
"decorators": [],
"span": {
"start": 8783,
"end": 9005,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 8812,
"end": 9005,
"ctxt": 0
},
"stmts": [
{
"type": "IfStatement",
"span": {
"start": 8818,
"end": 9003,
"ctxt": 0
},
"test": {
"type": "BinaryExpression",
"span": {
"start": 8822,
"end": 8838,
"ctxt": 0
},
"operator": "===",
"left": {
"type": "Identifier",
"span": {
"start": 8822,
"end": 8827,
"ctxt": 0
},
"value": "value",
"optional": false
},
"right": {
"type": "StringLiteral",
"span": {
"start": 8832,
"end": 8838,
"ctxt": 0
},
"value": "left",
"raw": "'left'"
}
},
"consequent": {
"type": "BlockStatement",
"span": {
"start": 8840,
"end": 8882,
"ctxt": 0
},
"stmts": [
{
"type": "VariableDeclaration",
"span": {
"start": 8850,
"end": 8876,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 8856,
"end": 8875,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 8856,
"end": 8859,
"ctxt": 0
},
"value": "foo",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 8859,
"end": 8867,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsLiteralType",
"span": {
"start": 8861,
"end": 8867,
"ctxt": 0
},
"literal": {
"type": "StringLiteral",
"span": {
"start": 8861,
"end": 8867,
"ctxt": 0
},
"value": "left",
"raw": "'left'"
}
}
}
},
"init": {
"type": "Identifier",
"span": {
"start": 8870,
"end": 8875,
"ctxt": 0
},
"value": "value",
"optional": false
},
"definite": false
}
]
}
]
},
"alternate": {
"type": "IfStatement",
"span": {
"start": 8892,
"end": 9003,
"ctxt": 0
},
"test": {
"type": "BinaryExpression",
"span": {
"start": 8896,
"end": 8913,
"ctxt": 0
},
"operator": "===",
"left": {
"type": "Identifier",
"span": {
"start": 8896,
"end": 8901,
"ctxt": 0
},
"value": "value",
"optional": false
},
"right": {
"type": "StringLiteral",
"span": {
"start": 8906,
"end": 8913,
"ctxt": 0
},
"value": "right",
"raw": "'right'"
}
},
"consequent": {
"type": "BlockStatement",
"span": {
"start": 8915,
"end": 8958,
"ctxt": 0
},
"stmts": [
{
"type": "VariableDeclaration",
"span": {
"start": 8925,
"end": 8952,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 8931,
"end": 8951,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 8931,
"end": 8934,
"ctxt": 0
},
"value": "bar",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 8934,
"end": 8943,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsLiteralType",
"span": {
"start": 8936,
"end": 8943,
"ctxt": 0
},
"literal": {
"type": "StringLiteral",
"span": {
"start": 8936,
"end": 8943,
"ctxt": 0
},
"value": "right",
"raw": "'right'"
}
}
}
},
"init": {
"type": "Identifier",
"span": {
"start": 8946,
"end": 8951,
"ctxt": 0
},
"value": "value",
"optional": false
},
"definite": false
}
]
}
]
},
"alternate": {
"type": "BlockStatement",
"span": {
"start": 8968,
"end": 9003,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 8978,
"end": 8997,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 8978,
"end": 8996,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 8978,
"end": 8989,
"ctxt": 0
},
"value": "assertNever",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 8990,
"end": 8995,
"ctxt": 0
},
"value": "value",
"optional": false
}
}
],
"typeArguments": null
}
}
]
}
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
}
],
"interpreter": null
}