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

2533 lines
65 KiB
JSON

{
"type": "Script",
"span": {
"start": 61,
"end": 1123,
"ctxt": 0
},
"body": [
{
"type": "ForStatement",
"span": {
"start": 61,
"end": 87,
"ctxt": 0
},
"init": {
"type": "VariableDeclaration",
"span": {
"start": 66,
"end": 79,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 70,
"end": 79,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 70,
"end": 71,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 71,
"end": 79,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 73,
"end": 79,
"ctxt": 0
},
"kind": "number"
}
}
},
"init": null,
"definite": false
}
]
},
"test": null,
"update": null,
"body": {
"type": "BlockStatement",
"span": {
"start": 84,
"end": 87,
"ctxt": 0
},
"stmts": []
}
},
{
"type": "ForStatement",
"span": {
"start": 88,
"end": 110,
"ctxt": 0
},
"init": {
"type": "VariableDeclaration",
"span": {
"start": 93,
"end": 102,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 97,
"end": 102,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 97,
"end": 98,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "NumericLiteral",
"span": {
"start": 101,
"end": 102,
"ctxt": 0
},
"value": 2.0
},
"definite": false
}
]
},
"test": null,
"update": null,
"body": {
"type": "BlockStatement",
"span": {
"start": 107,
"end": 110,
"ctxt": 0
},
"stmts": []
}
},
{
"type": "ForStatement",
"span": {
"start": 112,
"end": 150,
"ctxt": 0
},
"init": {
"type": "VariableDeclaration",
"span": {
"start": 117,
"end": 142,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 121,
"end": 142,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 121,
"end": 122,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "TsTypeAssertion",
"span": {
"start": 125,
"end": 142,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 133,
"end": 142,
"ctxt": 0
},
"value": "undefined",
"optional": false
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 126,
"end": 132,
"ctxt": 0
},
"kind": "number"
}
},
"definite": false
}
]
},
"test": null,
"update": null,
"body": {
"type": "BlockStatement",
"span": {
"start": 147,
"end": 150,
"ctxt": 0
},
"stmts": []
}
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 225,
"end": 234,
"ctxt": 0
},
"value": "declSpace",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 216,
"end": 284,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 237,
"end": 284,
"ctxt": 0
},
"stmts": [
{
"type": "ForStatement",
"span": {
"start": 243,
"end": 282,
"ctxt": 0
},
"init": {
"type": "VariableDeclaration",
"span": {
"start": 248,
"end": 274,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 252,
"end": 274,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 252,
"end": 253,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "StringLiteral",
"span": {
"start": 256,
"end": 274,
"ctxt": 0
},
"value": "this is a string",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
},
"definite": false
}
]
},
"test": null,
"update": null,
"body": {
"type": "BlockStatement",
"span": {
"start": 279,
"end": 282,
"ctxt": 0
},
"stmts": []
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "TsInterfaceDeclaration",
"span": {
"start": 285,
"end": 326,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 295,
"end": 300,
"ctxt": 0
},
"value": "Point",
"optional": false
},
"declare": false,
"typeParams": null,
"extends": [],
"body": {
"type": "TsInterfaceBody",
"span": {
"start": 301,
"end": 326,
"ctxt": 0
},
"body": [
{
"type": "TsPropertySignature",
"span": {
"start": 303,
"end": 313,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 303,
"end": 304,
"ctxt": 0
},
"value": "x",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 304,
"end": 312,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 306,
"end": 312,
"ctxt": 0
},
"kind": "number"
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 314,
"end": 324,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 314,
"end": 315,
"ctxt": 0
},
"value": "y",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 315,
"end": 323,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 317,
"end": 323,
"ctxt": 0
},
"kind": "number"
}
},
"typeParams": null
}
]
}
},
{
"type": "ForStatement",
"span": {
"start": 328,
"end": 353,
"ctxt": 0
},
"init": {
"type": "VariableDeclaration",
"span": {
"start": 333,
"end": 345,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 337,
"end": 345,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 337,
"end": 338,
"ctxt": 0
},
"value": "p",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 338,
"end": 345,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 340,
"end": 345,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 340,
"end": 345,
"ctxt": 0
},
"value": "Point",
"optional": false
},
"typeParams": null
}
}
},
"init": null,
"definite": false
}
]
},
"test": null,
"update": null,
"body": {
"type": "BlockStatement",
"span": {
"start": 350,
"end": 353,
"ctxt": 0
},
"stmts": []
}
},
{
"type": "ForStatement",
"span": {
"start": 354,
"end": 389,
"ctxt": 0
},
"init": {
"type": "VariableDeclaration",
"span": {
"start": 359,
"end": 381,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 363,
"end": 381,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 363,
"end": 364,
"ctxt": 0
},
"value": "p",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 367,
"end": 381,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 369,
"end": 370,
"ctxt": 0
},
"value": "x",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 372,
"end": 373,
"ctxt": 0
},
"value": 1.0
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 375,
"end": 376,
"ctxt": 0
},
"value": "y",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 378,
"end": 379,
"ctxt": 0
},
"value": 2.0
}
}
]
},
"definite": false
}
]
},
"test": null,
"update": null,
"body": {
"type": "BlockStatement",
"span": {
"start": 386,
"end": 389,
"ctxt": 0
},
"stmts": []
}
},
{
"type": "ForStatement",
"span": {
"start": 390,
"end": 440,
"ctxt": 0
},
"init": {
"type": "VariableDeclaration",
"span": {
"start": 395,
"end": 432,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 399,
"end": 432,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 399,
"end": 400,
"ctxt": 0
},
"value": "p",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 400,
"end": 407,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 402,
"end": 407,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 402,
"end": 407,
"ctxt": 0
},
"value": "Point",
"optional": false
},
"typeParams": null
}
}
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 410,
"end": 432,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 412,
"end": 413,
"ctxt": 0
},
"value": "x",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 415,
"end": 416,
"ctxt": 0
},
"value": 0.0
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 418,
"end": 419,
"ctxt": 0
},
"value": "y",
"optional": false
},
"value": {
"type": "Identifier",
"span": {
"start": 421,
"end": 430,
"ctxt": 0
},
"value": "undefined",
"optional": false
}
}
]
},
"definite": false
}
]
},
"test": null,
"update": null,
"body": {
"type": "BlockStatement",
"span": {
"start": 437,
"end": 440,
"ctxt": 0
},
"stmts": []
}
},
{
"type": "ForStatement",
"span": {
"start": 441,
"end": 492,
"ctxt": 0
},
"init": {
"type": "VariableDeclaration",
"span": {
"start": 446,
"end": 484,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 450,
"end": 484,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 450,
"end": 451,
"ctxt": 0
},
"value": "p",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 454,
"end": 484,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 456,
"end": 457,
"ctxt": 0
},
"value": "x",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 459,
"end": 460,
"ctxt": 0
},
"value": 1.0
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 462,
"end": 463,
"ctxt": 0
},
"value": "y",
"optional": false
},
"value": {
"type": "TsTypeAssertion",
"span": {
"start": 465,
"end": 482,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 473,
"end": 482,
"ctxt": 0
},
"value": "undefined",
"optional": false
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 466,
"end": 472,
"ctxt": 0
},
"kind": "number"
}
}
}
]
},
"definite": false
}
]
},
"test": null,
"update": null,
"body": {
"type": "BlockStatement",
"span": {
"start": 489,
"end": 492,
"ctxt": 0
},
"stmts": []
}
},
{
"type": "ForStatement",
"span": {
"start": 493,
"end": 555,
"ctxt": 0
},
"init": {
"type": "VariableDeclaration",
"span": {
"start": 498,
"end": 547,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 502,
"end": 547,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 502,
"end": 503,
"ctxt": 0
},
"value": "p",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 503,
"end": 530,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 505,
"end": 530,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 507,
"end": 517,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 507,
"end": 508,
"ctxt": 0
},
"value": "x",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 508,
"end": 516,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 510,
"end": 516,
"ctxt": 0
},
"kind": "number"
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 518,
"end": 528,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 518,
"end": 519,
"ctxt": 0
},
"value": "y",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 519,
"end": 527,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 521,
"end": 527,
"ctxt": 0
},
"kind": "number"
}
},
"typeParams": null
}
]
}
}
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 533,
"end": 547,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 535,
"end": 536,
"ctxt": 0
},
"value": "x",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 538,
"end": 539,
"ctxt": 0
},
"value": 1.0
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 541,
"end": 542,
"ctxt": 0
},
"value": "y",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 544,
"end": 545,
"ctxt": 0
},
"value": 2.0
}
}
]
},
"definite": false
}
]
},
"test": null,
"update": null,
"body": {
"type": "BlockStatement",
"span": {
"start": 552,
"end": 555,
"ctxt": 0
},
"stmts": []
}
},
{
"type": "ForStatement",
"span": {
"start": 556,
"end": 626,
"ctxt": 0
},
"init": {
"type": "VariableDeclaration",
"span": {
"start": 561,
"end": 618,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 565,
"end": 618,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 565,
"end": 566,
"ctxt": 0
},
"value": "p",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "TsTypeAssertion",
"span": {
"start": 569,
"end": 618,
"ctxt": 0
},
"expression": {
"type": "ObjectExpression",
"span": {
"start": 596,
"end": 618,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 598,
"end": 599,
"ctxt": 0
},
"value": "x",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 601,
"end": 602,
"ctxt": 0
},
"value": 0.0
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 604,
"end": 605,
"ctxt": 0
},
"value": "y",
"optional": false
},
"value": {
"type": "Identifier",
"span": {
"start": 607,
"end": 616,
"ctxt": 0
},
"value": "undefined",
"optional": false
}
}
]
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 570,
"end": 595,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 572,
"end": 582,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 572,
"end": 573,
"ctxt": 0
},
"value": "x",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 573,
"end": 581,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 575,
"end": 581,
"ctxt": 0
},
"kind": "number"
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 583,
"end": 593,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 583,
"end": 584,
"ctxt": 0
},
"value": "y",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 584,
"end": 592,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 586,
"end": 592,
"ctxt": 0
},
"kind": "number"
}
},
"typeParams": null
}
]
}
},
"definite": false
}
]
},
"test": null,
"update": null,
"body": {
"type": "BlockStatement",
"span": {
"start": 623,
"end": 626,
"ctxt": 0
},
"stmts": []
}
},
{
"type": "ForStatement",
"span": {
"start": 627,
"end": 655,
"ctxt": 0
},
"init": {
"type": "VariableDeclaration",
"span": {
"start": 632,
"end": 647,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 636,
"end": 647,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 636,
"end": 637,
"ctxt": 0
},
"value": "p",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 637,
"end": 647,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeQuery",
"span": {
"start": 639,
"end": 647,
"ctxt": 0
},
"exprName": {
"type": "Identifier",
"span": {
"start": 646,
"end": 647,
"ctxt": 0
},
"value": "p",
"optional": false
},
"typeArguments": null
}
}
},
"init": null,
"definite": false
}
]
},
"test": null,
"update": null,
"body": {
"type": "BlockStatement",
"span": {
"start": 652,
"end": 655,
"ctxt": 0
},
"stmts": []
}
},
{
"type": "ForStatement",
"span": {
"start": 657,
"end": 714,
"ctxt": 0
},
"init": {
"type": "VariableDeclaration",
"span": {
"start": 662,
"end": 706,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 666,
"end": 706,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 666,
"end": 668,
"ctxt": 0
},
"value": "fn",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "FunctionExpression",
"identifier": null,
"params": [
{
"type": "Parameter",
"span": {
"start": 681,
"end": 690,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 681,
"end": 690,
"ctxt": 0
},
"value": "s",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 682,
"end": 690,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 684,
"end": 690,
"ctxt": 0
},
"kind": "string"
}
}
}
}
],
"decorators": [],
"span": {
"start": 671,
"end": 706,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 692,
"end": 706,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 694,
"end": 704,
"ctxt": 0
},
"argument": {
"type": "NumericLiteral",
"span": {
"start": 701,
"end": 703,
"ctxt": 0
},
"value": 42.0
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"definite": false
}
]
},
"test": null,
"update": null,
"body": {
"type": "BlockStatement",
"span": {
"start": 711,
"end": 714,
"ctxt": 0
},
"stmts": []
}
},
{
"type": "ForStatement",
"span": {
"start": 715,
"end": 753,
"ctxt": 0
},
"init": {
"type": "VariableDeclaration",
"span": {
"start": 720,
"end": 745,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 724,
"end": 745,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 724,
"end": 726,
"ctxt": 0
},
"value": "fn",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrowFunctionExpression",
"span": {
"start": 729,
"end": 745,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 730,
"end": 739,
"ctxt": 0
},
"value": "s",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 731,
"end": 739,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 733,
"end": 739,
"ctxt": 0
},
"kind": "string"
}
}
}
],
"body": {
"type": "NumericLiteral",
"span": {
"start": 744,
"end": 745,
"ctxt": 0
},
"value": 3.0
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
},
"definite": false
}
]
},
"test": null,
"update": null,
"body": {
"type": "BlockStatement",
"span": {
"start": 750,
"end": 753,
"ctxt": 0
},
"stmts": []
}
},
{
"type": "ForStatement",
"span": {
"start": 754,
"end": 796,
"ctxt": 0
},
"init": {
"type": "VariableDeclaration",
"span": {
"start": 759,
"end": 788,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 763,
"end": 788,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 763,
"end": 765,
"ctxt": 0
},
"value": "fn",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 765,
"end": 788,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsFunctionType",
"span": {
"start": 767,
"end": 788,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 768,
"end": 777,
"ctxt": 0
},
"value": "s",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 769,
"end": 777,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 771,
"end": 777,
"ctxt": 0
},
"kind": "string"
}
}
}
],
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 779,
"end": 788,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 782,
"end": 788,
"ctxt": 0
},
"kind": "number"
}
}
}
}
},
"init": null,
"definite": false
}
]
},
"test": null,
"update": null,
"body": {
"type": "BlockStatement",
"span": {
"start": 793,
"end": 796,
"ctxt": 0
},
"stmts": []
}
},
{
"type": "ForStatement",
"span": {
"start": 797,
"end": 841,
"ctxt": 0
},
"init": {
"type": "VariableDeclaration",
"span": {
"start": 802,
"end": 833,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 806,
"end": 833,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 806,
"end": 808,
"ctxt": 0
},
"value": "fn",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 808,
"end": 833,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 810,
"end": 833,
"ctxt": 0
},
"members": [
{
"type": "TsCallSignatureDeclaration",
"span": {
"start": 812,
"end": 831,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 813,
"end": 822,
"ctxt": 0
},
"value": "s",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 814,
"end": 822,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 816,
"end": 822,
"ctxt": 0
},
"kind": "string"
}
}
}
],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 823,
"end": 831,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 825,
"end": 831,
"ctxt": 0
},
"kind": "number"
}
},
"typeParams": null
}
]
}
}
},
"init": null,
"definite": false
}
]
},
"test": null,
"update": null,
"body": {
"type": "BlockStatement",
"span": {
"start": 838,
"end": 841,
"ctxt": 0
},
"stmts": []
}
},
{
"type": "ForStatement",
"span": {
"start": 842,
"end": 892,
"ctxt": 0
},
"init": {
"type": "VariableDeclaration",
"span": {
"start": 847,
"end": 884,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 851,
"end": 884,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 851,
"end": 853,
"ctxt": 0
},
"value": "fn",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "TsTypeAssertion",
"span": {
"start": 856,
"end": 884,
"ctxt": 0
},
"expression": {
"type": "NullLiteral",
"span": {
"start": 880,
"end": 884,
"ctxt": 0
}
},
"typeAnnotation": {
"type": "TsFunctionType",
"span": {
"start": 857,
"end": 878,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 858,
"end": 867,
"ctxt": 0
},
"value": "s",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 859,
"end": 867,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 861,
"end": 867,
"ctxt": 0
},
"kind": "string"
}
}
}
],
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 869,
"end": 878,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 872,
"end": 878,
"ctxt": 0
},
"kind": "number"
}
}
}
},
"definite": false
}
]
},
"test": null,
"update": null,
"body": {
"type": "BlockStatement",
"span": {
"start": 889,
"end": 892,
"ctxt": 0
},
"stmts": []
}
},
{
"type": "ForStatement",
"span": {
"start": 893,
"end": 923,
"ctxt": 0
},
"init": {
"type": "VariableDeclaration",
"span": {
"start": 898,
"end": 915,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 902,
"end": 915,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 902,
"end": 904,
"ctxt": 0
},
"value": "fn",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 904,
"end": 915,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeQuery",
"span": {
"start": 906,
"end": 915,
"ctxt": 0
},
"exprName": {
"type": "Identifier",
"span": {
"start": 913,
"end": 915,
"ctxt": 0
},
"value": "fn",
"optional": false
},
"typeArguments": null
}
}
},
"init": null,
"definite": false
}
]
},
"test": null,
"update": null,
"body": {
"type": "BlockStatement",
"span": {
"start": 920,
"end": 923,
"ctxt": 0
},
"stmts": []
}
},
{
"type": "ForStatement",
"span": {
"start": 925,
"end": 953,
"ctxt": 0
},
"init": {
"type": "VariableDeclaration",
"span": {
"start": 930,
"end": 945,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 934,
"end": 945,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 934,
"end": 935,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 935,
"end": 945,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsArrayType",
"span": {
"start": 937,
"end": 945,
"ctxt": 0
},
"elemType": {
"type": "TsKeywordType",
"span": {
"start": 937,
"end": 943,
"ctxt": 0
},
"kind": "string"
}
}
}
},
"init": null,
"definite": false
}
]
},
"test": null,
"update": null,
"body": {
"type": "BlockStatement",
"span": {
"start": 950,
"end": 953,
"ctxt": 0
},
"stmts": []
}
},
{
"type": "ForStatement",
"span": {
"start": 954,
"end": 985,
"ctxt": 0
},
"init": {
"type": "VariableDeclaration",
"span": {
"start": 959,
"end": 977,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 963,
"end": 977,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 963,
"end": 964,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 967,
"end": 977,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 968,
"end": 971,
"ctxt": 0
},
"value": "a",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
},
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 973,
"end": 976,
"ctxt": 0
},
"value": "b",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
]
},
"definite": false
}
]
},
"test": null,
"update": null,
"body": {
"type": "BlockStatement",
"span": {
"start": 982,
"end": 985,
"ctxt": 0
},
"stmts": []
}
},
{
"type": "ForStatement",
"span": {
"start": 986,
"end": 1019,
"ctxt": 0
},
"init": {
"type": "VariableDeclaration",
"span": {
"start": 991,
"end": 1011,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 995,
"end": 1011,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 995,
"end": 996,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "TsTypeAssertion",
"span": {
"start": 999,
"end": 1011,
"ctxt": 0
},
"expression": {
"type": "ArrayExpression",
"span": {
"start": 1009,
"end": 1011,
"ctxt": 0
},
"elements": []
},
"typeAnnotation": {
"type": "TsArrayType",
"span": {
"start": 1000,
"end": 1008,
"ctxt": 0
},
"elemType": {
"type": "TsKeywordType",
"span": {
"start": 1000,
"end": 1006,
"ctxt": 0
},
"kind": "string"
}
}
},
"definite": false
}
]
},
"test": null,
"update": null,
"body": {
"type": "BlockStatement",
"span": {
"start": 1016,
"end": 1019,
"ctxt": 0
},
"stmts": []
}
},
{
"type": "ForStatement",
"span": {
"start": 1020,
"end": 1053,
"ctxt": 0
},
"init": {
"type": "VariableDeclaration",
"span": {
"start": 1025,
"end": 1045,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1029,
"end": 1045,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1029,
"end": 1030,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1030,
"end": 1040,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsArrayType",
"span": {
"start": 1032,
"end": 1040,
"ctxt": 0
},
"elemType": {
"type": "TsKeywordType",
"span": {
"start": 1032,
"end": 1038,
"ctxt": 0
},
"kind": "string"
}
}
}
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 1043,
"end": 1045,
"ctxt": 0
},
"elements": []
},
"definite": false
}
]
},
"test": null,
"update": null,
"body": {
"type": "BlockStatement",
"span": {
"start": 1050,
"end": 1053,
"ctxt": 0
},
"stmts": []
}
},
{
"type": "ForStatement",
"span": {
"start": 1054,
"end": 1094,
"ctxt": 0
},
"init": {
"type": "VariableDeclaration",
"span": {
"start": 1059,
"end": 1086,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1063,
"end": 1086,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1063,
"end": 1064,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "NewExpression",
"span": {
"start": 1067,
"end": 1086,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 1071,
"end": 1076,
"ctxt": 0
},
"value": "Array",
"optional": false
},
"arguments": [],
"typeArguments": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 1076,
"end": 1084,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 1077,
"end": 1083,
"ctxt": 0
},
"kind": "string"
}
]
}
},
"definite": false
}
]
},
"test": null,
"update": null,
"body": {
"type": "BlockStatement",
"span": {
"start": 1091,
"end": 1094,
"ctxt": 0
},
"stmts": []
}
},
{
"type": "ForStatement",
"span": {
"start": 1095,
"end": 1123,
"ctxt": 0
},
"init": {
"type": "VariableDeclaration",
"span": {
"start": 1100,
"end": 1115,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1104,
"end": 1115,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1104,
"end": 1105,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1105,
"end": 1115,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeQuery",
"span": {
"start": 1107,
"end": 1115,
"ctxt": 0
},
"exprName": {
"type": "Identifier",
"span": {
"start": 1114,
"end": 1115,
"ctxt": 0
},
"value": "a",
"optional": false
},
"typeArguments": null
}
}
},
"init": null,
"definite": false
}
]
},
"test": null,
"update": null,
"body": {
"type": "BlockStatement",
"span": {
"start": 1120,
"end": 1123,
"ctxt": 0
},
"stmts": []
}
}
],
"interpreter": null
}