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

1670 lines
39 KiB
JSON

{
"type": "Script",
"span": {
"start": 1,
"end": 976,
"ctxt": 0
},
"body": [
{
"type": "TsModuleDeclaration",
"span": {
"start": 1,
"end": 74,
"ctxt": 0
},
"declare": false,
"global": false,
"id": {
"type": "Identifier",
"span": {
"start": 8,
"end": 9,
"ctxt": 0
},
"value": "M",
"optional": false
},
"body": {
"type": "TsModuleBlock",
"span": {
"start": 10,
"end": 74,
"ctxt": 0
},
"body": [
{
"type": "ExportDeclaration",
"span": {
"start": 16,
"end": 72,
"ctxt": 0
},
"declaration": {
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 32,
"end": 34,
"ctxt": 0
},
"value": "fn",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 35,
"end": 44,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 35,
"end": 44,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 36,
"end": 44,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 38,
"end": 44,
"ctxt": 0
},
"kind": "number"
}
}
}
}
],
"decorators": [],
"span": {
"start": 23,
"end": 72,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 46,
"end": 72,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 56,
"end": 66,
"ctxt": 0
},
"argument": {
"type": "StringLiteral",
"span": {
"start": 63,
"end": 65,
"ctxt": 0
},
"value": "",
"raw": "''"
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
}
}
]
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 76,
"end": 87,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 80,
"end": 86,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 80,
"end": 81,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 81,
"end": 86,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 83,
"end": 86,
"ctxt": 0
},
"kind": "any"
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "SwitchStatement",
"span": {
"start": 88,
"end": 439,
"ctxt": 0
},
"discriminant": {
"type": "Identifier",
"span": {
"start": 96,
"end": 97,
"ctxt": 0
},
"value": "x",
"optional": false
},
"cases": [
{
"type": "SwitchCase",
"span": {
"start": 105,
"end": 113,
"ctxt": 0
},
"test": {
"type": "StringLiteral",
"span": {
"start": 110,
"end": 112,
"ctxt": 0
},
"value": "",
"raw": "''"
},
"consequent": []
},
{
"type": "SwitchCase",
"span": {
"start": 118,
"end": 126,
"ctxt": 0
},
"test": {
"type": "NumericLiteral",
"span": {
"start": 123,
"end": 125,
"ctxt": 0
},
"value": 12.0,
"raw": "12"
},
"consequent": []
},
{
"type": "SwitchCase",
"span": {
"start": 131,
"end": 141,
"ctxt": 0
},
"test": {
"type": "BooleanLiteral",
"span": {
"start": 136,
"end": 140,
"ctxt": 0
},
"value": true
},
"consequent": []
},
{
"type": "SwitchCase",
"span": {
"start": 146,
"end": 156,
"ctxt": 0
},
"test": {
"type": "NullLiteral",
"span": {
"start": 151,
"end": 155,
"ctxt": 0
}
},
"consequent": []
},
{
"type": "SwitchCase",
"span": {
"start": 161,
"end": 176,
"ctxt": 0
},
"test": {
"type": "Identifier",
"span": {
"start": 166,
"end": 175,
"ctxt": 0
},
"value": "undefined",
"optional": false
},
"consequent": []
},
{
"type": "SwitchCase",
"span": {
"start": 181,
"end": 199,
"ctxt": 0
},
"test": {
"type": "NewExpression",
"span": {
"start": 186,
"end": 198,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 190,
"end": 194,
"ctxt": 0
},
"value": "Date",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 195,
"end": 197,
"ctxt": 0
},
"value": 12.0,
"raw": "12"
}
}
],
"typeArguments": null
},
"consequent": []
},
{
"type": "SwitchCase",
"span": {
"start": 204,
"end": 222,
"ctxt": 0
},
"test": {
"type": "NewExpression",
"span": {
"start": 209,
"end": 221,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 213,
"end": 219,
"ctxt": 0
},
"value": "Object",
"optional": false
},
"arguments": [],
"typeArguments": null
},
"consequent": []
},
{
"type": "SwitchCase",
"span": {
"start": 227,
"end": 240,
"ctxt": 0
},
"test": {
"type": "RegExpLiteral",
"span": {
"start": 232,
"end": 239,
"ctxt": 0
},
"pattern": "[a-z]",
"flags": ""
},
"consequent": []
},
{
"type": "SwitchCase",
"span": {
"start": 245,
"end": 252,
"ctxt": 0
},
"test": {
"type": "ArrayExpression",
"span": {
"start": 249,
"end": 251,
"ctxt": 0
},
"elements": []
},
"consequent": []
},
{
"type": "SwitchCase",
"span": {
"start": 257,
"end": 265,
"ctxt": 0
},
"test": {
"type": "ObjectExpression",
"span": {
"start": 262,
"end": 264,
"ctxt": 0
},
"properties": []
},
"consequent": []
},
{
"type": "SwitchCase",
"span": {
"start": 270,
"end": 286,
"ctxt": 0
},
"test": {
"type": "ObjectExpression",
"span": {
"start": 275,
"end": 285,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 277,
"end": 279,
"ctxt": 0
},
"value": "id",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 281,
"end": 283,
"ctxt": 0
},
"value": 12.0,
"raw": "12"
}
}
]
},
"consequent": []
},
{
"type": "SwitchCase",
"span": {
"start": 291,
"end": 301,
"ctxt": 0
},
"test": {
"type": "ArrayExpression",
"span": {
"start": 295,
"end": 300,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 296,
"end": 299,
"ctxt": 0
},
"value": "a",
"raw": "'a'"
}
}
]
},
"consequent": []
},
{
"type": "SwitchCase",
"span": {
"start": 306,
"end": 320,
"ctxt": 0
},
"test": {
"type": "UnaryExpression",
"span": {
"start": 311,
"end": 319,
"ctxt": 0
},
"operator": "typeof",
"argument": {
"type": "Identifier",
"span": {
"start": 318,
"end": 319,
"ctxt": 0
},
"value": "x",
"optional": false
}
},
"consequent": []
},
{
"type": "SwitchCase",
"span": {
"start": 325,
"end": 339,
"ctxt": 0
},
"test": {
"type": "UnaryExpression",
"span": {
"start": 330,
"end": 338,
"ctxt": 0
},
"operator": "typeof",
"argument": {
"type": "Identifier",
"span": {
"start": 337,
"end": 338,
"ctxt": 0
},
"value": "M",
"optional": false
}
},
"consequent": []
},
{
"type": "SwitchCase",
"span": {
"start": 344,
"end": 357,
"ctxt": 0
},
"test": {
"type": "CallExpression",
"span": {
"start": 349,
"end": 356,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 349,
"end": 353,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 349,
"end": 350,
"ctxt": 0
},
"value": "M",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 351,
"end": 353,
"ctxt": 0
},
"value": "fn",
"optional": false
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 354,
"end": 355,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
],
"typeArguments": null
},
"consequent": []
},
{
"type": "SwitchCase",
"span": {
"start": 362,
"end": 388,
"ctxt": 0
},
"test": {
"type": "ArrowFunctionExpression",
"span": {
"start": 367,
"end": 387,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 371,
"end": 380,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 372,
"end": 380,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 374,
"end": 380,
"ctxt": 0
},
"kind": "number"
}
}
}
],
"body": {
"type": "StringLiteral",
"span": {
"start": 385,
"end": 387,
"ctxt": 0
},
"value": "",
"raw": "''"
},
"async": false,
"generator": false,
"typeParameters": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 367,
"end": 370,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 368,
"end": 369,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 368,
"end": 369,
"ctxt": 0
},
"value": "T",
"optional": false
},
"in": false,
"out": false,
"const": false,
"constraint": null,
"default": null
}
]
},
"returnType": null
},
"consequent": []
},
{
"type": "SwitchCase",
"span": {
"start": 393,
"end": 424,
"ctxt": 0
},
"test": {
"type": "CallExpression",
"span": {
"start": 398,
"end": 423,
"ctxt": 0
},
"callee": {
"type": "ParenthesisExpression",
"span": {
"start": 398,
"end": 420,
"ctxt": 0
},
"expression": {
"type": "ArrowFunctionExpression",
"span": {
"start": 399,
"end": 419,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 403,
"end": 412,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 404,
"end": 412,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 406,
"end": 412,
"ctxt": 0
},
"kind": "number"
}
}
}
],
"body": {
"type": "StringLiteral",
"span": {
"start": 417,
"end": 419,
"ctxt": 0
},
"value": "",
"raw": "''"
},
"async": false,
"generator": false,
"typeParameters": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 399,
"end": 402,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 400,
"end": 401,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 400,
"end": 401,
"ctxt": 0
},
"value": "T",
"optional": false
},
"in": false,
"out": false,
"const": false,
"constraint": null,
"default": null
}
]
},
"returnType": null
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 421,
"end": 422,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
}
}
],
"typeArguments": null
},
"consequent": []
},
{
"type": "SwitchCase",
"span": {
"start": 429,
"end": 437,
"ctxt": 0
},
"test": null,
"consequent": []
}
]
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 527,
"end": 528,
"ctxt": 0
},
"value": "C",
"optional": false
},
"declare": false,
"span": {
"start": 521,
"end": 544,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 531,
"end": 542,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 531,
"end": 533,
"ctxt": 0
},
"value": "id",
"optional": false
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 533,
"end": 541,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 535,
"end": 541,
"ctxt": 0
},
"kind": "number"
}
},
"isStatic": false,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
}
],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 551,
"end": 552,
"ctxt": 0
},
"value": "D",
"optional": false
},
"declare": false,
"span": {
"start": 545,
"end": 579,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 565,
"end": 577,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 565,
"end": 569,
"ctxt": 0
},
"value": "name",
"optional": false
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 569,
"end": 577,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 571,
"end": 577,
"ctxt": 0
},
"kind": "string"
}
},
"isStatic": false,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
}
],
"superClass": {
"type": "Identifier",
"span": {
"start": 561,
"end": 562,
"ctxt": 0
},
"value": "C",
"optional": false
},
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "SwitchStatement",
"span": {
"start": 581,
"end": 668,
"ctxt": 0
},
"discriminant": {
"type": "NewExpression",
"span": {
"start": 589,
"end": 596,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 593,
"end": 594,
"ctxt": 0
},
"value": "C",
"optional": false
},
"arguments": [],
"typeArguments": null
},
"cases": [
{
"type": "SwitchCase",
"span": {
"start": 604,
"end": 617,
"ctxt": 0
},
"test": {
"type": "NewExpression",
"span": {
"start": 609,
"end": 616,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 613,
"end": 614,
"ctxt": 0
},
"value": "D",
"optional": false
},
"arguments": [],
"typeArguments": null
},
"consequent": []
},
{
"type": "SwitchCase",
"span": {
"start": 622,
"end": 648,
"ctxt": 0
},
"test": {
"type": "ObjectExpression",
"span": {
"start": 627,
"end": 647,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 629,
"end": 631,
"ctxt": 0
},
"value": "id",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 633,
"end": 635,
"ctxt": 0
},
"value": 12.0,
"raw": "12"
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 637,
"end": 641,
"ctxt": 0
},
"value": "name",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 643,
"end": 645,
"ctxt": 0
},
"value": "",
"raw": "''"
}
}
]
},
"consequent": []
},
{
"type": "SwitchCase",
"span": {
"start": 653,
"end": 666,
"ctxt": 0
},
"test": {
"type": "NewExpression",
"span": {
"start": 658,
"end": 665,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 662,
"end": 663,
"ctxt": 0
},
"value": "C",
"optional": false
},
"arguments": [],
"typeArguments": null
},
"consequent": []
}
]
},
{
"type": "SwitchStatement",
"span": {
"start": 670,
"end": 685,
"ctxt": 0
},
"discriminant": {
"type": "StringLiteral",
"span": {
"start": 678,
"end": 680,
"ctxt": 0
},
"value": "",
"raw": "''"
},
"cases": []
},
{
"type": "SwitchStatement",
"span": {
"start": 686,
"end": 701,
"ctxt": 0
},
"discriminant": {
"type": "NumericLiteral",
"span": {
"start": 694,
"end": 696,
"ctxt": 0
},
"value": 12.0,
"raw": "12"
},
"cases": []
},
{
"type": "SwitchStatement",
"span": {
"start": 702,
"end": 719,
"ctxt": 0
},
"discriminant": {
"type": "BooleanLiteral",
"span": {
"start": 710,
"end": 714,
"ctxt": 0
},
"value": true
},
"cases": []
},
{
"type": "SwitchStatement",
"span": {
"start": 720,
"end": 737,
"ctxt": 0
},
"discriminant": {
"type": "NullLiteral",
"span": {
"start": 728,
"end": 732,
"ctxt": 0
}
},
"cases": []
},
{
"type": "SwitchStatement",
"span": {
"start": 738,
"end": 760,
"ctxt": 0
},
"discriminant": {
"type": "Identifier",
"span": {
"start": 746,
"end": 755,
"ctxt": 0
},
"value": "undefined",
"optional": false
},
"cases": []
},
{
"type": "SwitchStatement",
"span": {
"start": 761,
"end": 786,
"ctxt": 0
},
"discriminant": {
"type": "NewExpression",
"span": {
"start": 769,
"end": 781,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 773,
"end": 777,
"ctxt": 0
},
"value": "Date",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 778,
"end": 780,
"ctxt": 0
},
"value": 12.0,
"raw": "12"
}
}
],
"typeArguments": null
},
"cases": []
},
{
"type": "SwitchStatement",
"span": {
"start": 787,
"end": 812,
"ctxt": 0
},
"discriminant": {
"type": "NewExpression",
"span": {
"start": 795,
"end": 807,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 799,
"end": 805,
"ctxt": 0
},
"value": "Object",
"optional": false
},
"arguments": [],
"typeArguments": null
},
"cases": []
},
{
"type": "SwitchStatement",
"span": {
"start": 813,
"end": 833,
"ctxt": 0
},
"discriminant": {
"type": "RegExpLiteral",
"span": {
"start": 821,
"end": 828,
"ctxt": 0
},
"pattern": "[a-z]",
"flags": ""
},
"cases": []
},
{
"type": "SwitchStatement",
"span": {
"start": 834,
"end": 849,
"ctxt": 0
},
"discriminant": {
"type": "ArrayExpression",
"span": {
"start": 842,
"end": 844,
"ctxt": 0
},
"elements": []
},
"cases": []
},
{
"type": "SwitchStatement",
"span": {
"start": 850,
"end": 865,
"ctxt": 0
},
"discriminant": {
"type": "ObjectExpression",
"span": {
"start": 858,
"end": 860,
"ctxt": 0
},
"properties": []
},
"cases": []
},
{
"type": "SwitchStatement",
"span": {
"start": 866,
"end": 889,
"ctxt": 0
},
"discriminant": {
"type": "ObjectExpression",
"span": {
"start": 874,
"end": 884,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 876,
"end": 878,
"ctxt": 0
},
"value": "id",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 880,
"end": 882,
"ctxt": 0
},
"value": 12.0,
"raw": "12"
}
}
]
},
"cases": []
},
{
"type": "SwitchStatement",
"span": {
"start": 890,
"end": 908,
"ctxt": 0
},
"discriminant": {
"type": "ArrayExpression",
"span": {
"start": 898,
"end": 903,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 899,
"end": 902,
"ctxt": 0
},
"value": "a",
"raw": "'a'"
}
}
]
},
"cases": []
},
{
"type": "SwitchStatement",
"span": {
"start": 909,
"end": 942,
"ctxt": 0
},
"discriminant": {
"type": "ArrowFunctionExpression",
"span": {
"start": 917,
"end": 937,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 921,
"end": 930,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 922,
"end": 930,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 924,
"end": 930,
"ctxt": 0
},
"kind": "number"
}
}
}
],
"body": {
"type": "StringLiteral",
"span": {
"start": 935,
"end": 937,
"ctxt": 0
},
"value": "",
"raw": "''"
},
"async": false,
"generator": false,
"typeParameters": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 917,
"end": 920,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 918,
"end": 919,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 918,
"end": 919,
"ctxt": 0
},
"value": "T",
"optional": false
},
"in": false,
"out": false,
"const": false,
"constraint": null,
"default": null
}
]
},
"returnType": null
},
"cases": []
},
{
"type": "SwitchStatement",
"span": {
"start": 943,
"end": 976,
"ctxt": 0
},
"discriminant": {
"type": "CallExpression",
"span": {
"start": 951,
"end": 971,
"ctxt": 0
},
"callee": {
"type": "ParenthesisExpression",
"span": {
"start": 951,
"end": 968,
"ctxt": 0
},
"expression": {
"type": "ArrowFunctionExpression",
"span": {
"start": 952,
"end": 967,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 956,
"end": 960,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 957,
"end": 960,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 959,
"end": 960,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 959,
"end": 960,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
}
}
],
"body": {
"type": "StringLiteral",
"span": {
"start": 965,
"end": 967,
"ctxt": 0
},
"value": "",
"raw": "''"
},
"async": false,
"generator": false,
"typeParameters": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 952,
"end": 955,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 953,
"end": 954,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 953,
"end": 954,
"ctxt": 0
},
"value": "T",
"optional": false
},
"in": false,
"out": false,
"const": false,
"constraint": null,
"default": null
}
]
},
"returnType": null
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 969,
"end": 970,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
],
"typeArguments": null
},
"cases": []
}
],
"interpreter": null
}