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

2214 lines
55 KiB
JSON

{
"type": "Script",
"span": {
"start": 17,
"end": 1050,
"ctxt": 0
},
"body": [
{
"type": "TsTypeAliasDeclaration",
"span": {
"start": 17,
"end": 48,
"ctxt": 0
},
"declare": false,
"id": {
"type": "Identifier",
"span": {
"start": 22,
"end": 31,
"ctxt": 0
},
"value": "MyPromise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 31,
"end": 34,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 32,
"end": 33,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 32,
"end": 33,
"ctxt": 0
},
"value": "T",
"optional": false
},
"in": false,
"out": false,
"constraint": null,
"default": null
}
]
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 37,
"end": 47,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 37,
"end": 44,
"ctxt": 0
},
"value": "Promise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 44,
"end": 47,
"ctxt": 0
},
"params": [
{
"type": "TsTypeReference",
"span": {
"start": 45,
"end": 46,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 45,
"end": 46,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
]
}
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 49,
"end": 87,
"ctxt": 0
},
"kind": "var",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 61,
"end": 86,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 61,
"end": 70,
"ctxt": 0
},
"value": "MyPromise",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 70,
"end": 86,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeQuery",
"span": {
"start": 72,
"end": 86,
"ctxt": 0
},
"exprName": {
"type": "Identifier",
"span": {
"start": 79,
"end": 86,
"ctxt": 0
},
"value": "Promise",
"optional": false
},
"typeArguments": null
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 88,
"end": 119,
"ctxt": 0
},
"kind": "var",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 100,
"end": 118,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 100,
"end": 101,
"ctxt": 0
},
"value": "p",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 101,
"end": 118,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 103,
"end": 118,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 103,
"end": 110,
"ctxt": 0
},
"value": "Promise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 110,
"end": 118,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 111,
"end": 117,
"ctxt": 0
},
"kind": "number"
}
]
}
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 120,
"end": 154,
"ctxt": 0
},
"kind": "var",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 132,
"end": 153,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 132,
"end": 134,
"ctxt": 0
},
"value": "mp",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 134,
"end": 153,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 136,
"end": 153,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 136,
"end": 145,
"ctxt": 0
},
"value": "MyPromise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 145,
"end": 153,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 146,
"end": 152,
"ctxt": 0
},
"kind": "number"
}
]
}
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 171,
"end": 173,
"ctxt": 0
},
"value": "f0",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 156,
"end": 179,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 176,
"end": 179,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": true,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 195,
"end": 197,
"ctxt": 0
},
"value": "f1",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 180,
"end": 218,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 215,
"end": 218,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": true,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 199,
"end": 214,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 201,
"end": 214,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 201,
"end": 208,
"ctxt": 0
},
"value": "Promise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 208,
"end": 214,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 209,
"end": 213,
"ctxt": 0
},
"kind": "void"
}
]
}
}
}
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 234,
"end": 236,
"ctxt": 0
},
"value": "f3",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 219,
"end": 259,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 256,
"end": 259,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": true,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 238,
"end": 255,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 240,
"end": 255,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 240,
"end": 249,
"ctxt": 0
},
"value": "MyPromise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 249,
"end": 255,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 250,
"end": 254,
"ctxt": 0
},
"kind": "void"
}
]
}
}
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 261,
"end": 290,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 265,
"end": 290,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 265,
"end": 267,
"ctxt": 0
},
"value": "f4",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "FunctionExpression",
"identifier": null,
"params": [],
"decorators": [],
"span": {
"start": 270,
"end": 290,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 287,
"end": 290,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": true,
"typeParameters": null,
"returnType": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 291,
"end": 335,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 295,
"end": 335,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 295,
"end": 297,
"ctxt": 0
},
"value": "f5",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "FunctionExpression",
"identifier": null,
"params": [],
"decorators": [],
"span": {
"start": 300,
"end": 335,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 332,
"end": 335,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": true,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 316,
"end": 331,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 318,
"end": 331,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 318,
"end": 325,
"ctxt": 0
},
"value": "Promise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 325,
"end": 331,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 326,
"end": 330,
"ctxt": 0
},
"kind": "void"
}
]
}
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 336,
"end": 382,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 340,
"end": 382,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 340,
"end": 342,
"ctxt": 0
},
"value": "f6",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "FunctionExpression",
"identifier": null,
"params": [],
"decorators": [],
"span": {
"start": 345,
"end": 382,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 379,
"end": 382,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": true,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 361,
"end": 378,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 363,
"end": 378,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 363,
"end": 372,
"ctxt": 0
},
"value": "MyPromise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 372,
"end": 378,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 373,
"end": 377,
"ctxt": 0
},
"kind": "void"
}
]
}
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 384,
"end": 409,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 388,
"end": 408,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 388,
"end": 390,
"ctxt": 0
},
"value": "f7",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrowFunctionExpression",
"span": {
"start": 393,
"end": 408,
"ctxt": 0
},
"params": [],
"body": {
"type": "BlockStatement",
"span": {
"start": 405,
"end": 408,
"ctxt": 0
},
"stmts": []
},
"async": true,
"generator": false,
"typeParameters": null,
"returnType": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 410,
"end": 450,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 414,
"end": 449,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 414,
"end": 416,
"ctxt": 0
},
"value": "f8",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrowFunctionExpression",
"span": {
"start": 419,
"end": 449,
"ctxt": 0
},
"params": [],
"body": {
"type": "BlockStatement",
"span": {
"start": 446,
"end": 449,
"ctxt": 0
},
"stmts": []
},
"async": true,
"generator": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 427,
"end": 442,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 429,
"end": 442,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 429,
"end": 436,
"ctxt": 0
},
"value": "Promise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 436,
"end": 442,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 437,
"end": 441,
"ctxt": 0
},
"kind": "void"
}
]
}
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 451,
"end": 493,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 455,
"end": 492,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 455,
"end": 457,
"ctxt": 0
},
"value": "f9",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrowFunctionExpression",
"span": {
"start": 460,
"end": 492,
"ctxt": 0
},
"params": [],
"body": {
"type": "BlockStatement",
"span": {
"start": 489,
"end": 492,
"ctxt": 0
},
"stmts": []
},
"async": true,
"generator": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 468,
"end": 485,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 470,
"end": 485,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 470,
"end": 479,
"ctxt": 0
},
"value": "MyPromise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 479,
"end": 485,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 480,
"end": 484,
"ctxt": 0
},
"kind": "void"
}
]
}
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 494,
"end": 518,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 498,
"end": 517,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 498,
"end": 501,
"ctxt": 0
},
"value": "f10",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrowFunctionExpression",
"span": {
"start": 504,
"end": 517,
"ctxt": 0
},
"params": [],
"body": {
"type": "Identifier",
"span": {
"start": 516,
"end": 517,
"ctxt": 0
},
"value": "p",
"optional": false
},
"async": true,
"generator": false,
"typeParameters": null,
"returnType": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 519,
"end": 544,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 523,
"end": 543,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 523,
"end": 526,
"ctxt": 0
},
"value": "f11",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrowFunctionExpression",
"span": {
"start": 529,
"end": 543,
"ctxt": 0
},
"params": [],
"body": {
"type": "Identifier",
"span": {
"start": 541,
"end": 543,
"ctxt": 0
},
"value": "mp",
"optional": false
},
"async": true,
"generator": false,
"typeParameters": null,
"returnType": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 545,
"end": 587,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 549,
"end": 586,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 549,
"end": 552,
"ctxt": 0
},
"value": "f12",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrowFunctionExpression",
"span": {
"start": 555,
"end": 586,
"ctxt": 0
},
"params": [],
"body": {
"type": "Identifier",
"span": {
"start": 584,
"end": 586,
"ctxt": 0
},
"value": "mp",
"optional": false
},
"async": true,
"generator": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 563,
"end": 580,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 565,
"end": 580,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 565,
"end": 572,
"ctxt": 0
},
"value": "Promise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 572,
"end": 580,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 573,
"end": 579,
"ctxt": 0
},
"kind": "number"
}
]
}
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 588,
"end": 631,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 592,
"end": 630,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 592,
"end": 595,
"ctxt": 0
},
"value": "f13",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrowFunctionExpression",
"span": {
"start": 598,
"end": 630,
"ctxt": 0
},
"params": [],
"body": {
"type": "Identifier",
"span": {
"start": 629,
"end": 630,
"ctxt": 0
},
"value": "p",
"optional": false
},
"async": true,
"generator": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 606,
"end": 625,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 608,
"end": 625,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 608,
"end": 617,
"ctxt": 0
},
"value": "MyPromise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 617,
"end": 625,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 618,
"end": 624,
"ctxt": 0
},
"kind": "number"
}
]
}
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 633,
"end": 727,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 637,
"end": 726,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 637,
"end": 638,
"ctxt": 0
},
"value": "o",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 641,
"end": 726,
"ctxt": 0
},
"properties": [
{
"type": "MethodProperty",
"key": {
"type": "Identifier",
"span": {
"start": 650,
"end": 652,
"ctxt": 0
},
"value": "m1",
"optional": false
},
"params": [],
"decorators": [],
"span": {
"start": 644,
"end": 658,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 655,
"end": 658,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": true,
"typeParameters": null,
"returnType": null
},
{
"type": "MethodProperty",
"key": {
"type": "Identifier",
"span": {
"start": 667,
"end": 669,
"ctxt": 0
},
"value": "m2",
"optional": false
},
"params": [],
"decorators": [],
"span": {
"start": 661,
"end": 690,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 687,
"end": 690,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": true,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 671,
"end": 686,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 673,
"end": 686,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 673,
"end": 680,
"ctxt": 0
},
"value": "Promise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 680,
"end": 686,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 681,
"end": 685,
"ctxt": 0
},
"kind": "void"
}
]
}
}
}
},
{
"type": "MethodProperty",
"key": {
"type": "Identifier",
"span": {
"start": 699,
"end": 701,
"ctxt": 0
},
"value": "m3",
"optional": false
},
"params": [],
"decorators": [],
"span": {
"start": 693,
"end": 724,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 721,
"end": 724,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": true,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 703,
"end": 720,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 705,
"end": 720,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 705,
"end": 714,
"ctxt": 0
},
"value": "MyPromise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 714,
"end": 720,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 715,
"end": 719,
"ctxt": 0
},
"kind": "void"
}
]
}
}
}
}
]
},
"definite": false
}
]
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 735,
"end": 736,
"ctxt": 0
},
"value": "C",
"optional": false
},
"declare": false,
"span": {
"start": 729,
"end": 921,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassMethod",
"span": {
"start": 740,
"end": 754,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 746,
"end": 748,
"ctxt": 0
},
"value": "m1",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 740,
"end": 754,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 751,
"end": 754,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": true,
"typeParameters": null,
"returnType": null
},
"kind": "method",
"isStatic": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 756,
"end": 785,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 762,
"end": 764,
"ctxt": 0
},
"value": "m2",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 756,
"end": 785,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 782,
"end": 785,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": true,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 766,
"end": 781,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 768,
"end": 781,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 768,
"end": 775,
"ctxt": 0
},
"value": "Promise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 775,
"end": 781,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 776,
"end": 780,
"ctxt": 0
},
"kind": "void"
}
]
}
}
}
},
"kind": "method",
"isStatic": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 787,
"end": 818,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 793,
"end": 795,
"ctxt": 0
},
"value": "m3",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 787,
"end": 818,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 815,
"end": 818,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": true,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 797,
"end": 814,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 799,
"end": 814,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 799,
"end": 808,
"ctxt": 0
},
"value": "MyPromise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 808,
"end": 814,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 809,
"end": 813,
"ctxt": 0
},
"kind": "void"
}
]
}
}
}
},
"kind": "method",
"isStatic": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 820,
"end": 841,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 833,
"end": 835,
"ctxt": 0
},
"value": "m4",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 820,
"end": 841,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 838,
"end": 841,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": true,
"typeParameters": null,
"returnType": null
},
"kind": "method",
"isStatic": true,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 843,
"end": 879,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 856,
"end": 858,
"ctxt": 0
},
"value": "m5",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 843,
"end": 879,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 876,
"end": 879,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": true,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 860,
"end": 875,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 862,
"end": 875,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 862,
"end": 869,
"ctxt": 0
},
"value": "Promise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 869,
"end": 875,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 870,
"end": 874,
"ctxt": 0
},
"kind": "void"
}
]
}
}
}
},
"kind": "method",
"isStatic": true,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 881,
"end": 919,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 894,
"end": 896,
"ctxt": 0
},
"value": "m6",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 881,
"end": 919,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 916,
"end": 919,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": true,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 898,
"end": 915,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 900,
"end": 915,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 900,
"end": 909,
"ctxt": 0
},
"value": "MyPromise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 909,
"end": 915,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 910,
"end": 914,
"ctxt": 0
},
"kind": "void"
}
]
}
}
}
},
"kind": "method",
"isStatic": true,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
}
],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "TsModuleDeclaration",
"span": {
"start": 923,
"end": 967,
"ctxt": 0
},
"declare": false,
"global": false,
"id": {
"type": "Identifier",
"span": {
"start": 930,
"end": 931,
"ctxt": 0
},
"value": "M",
"optional": false
},
"body": {
"type": "TsModuleBlock",
"span": {
"start": 932,
"end": 967,
"ctxt": 0
},
"body": [
{
"type": "ExportDeclaration",
"span": {
"start": 935,
"end": 965,
"ctxt": 0
},
"declaration": {
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 957,
"end": 959,
"ctxt": 0
},
"value": "f1",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 942,
"end": 965,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 962,
"end": 965,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": true,
"typeParameters": null,
"returnType": null
}
}
]
}
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 984,
"end": 987,
"ctxt": 0
},
"value": "f14",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 969,
"end": 1050,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 990,
"end": 1050,
"ctxt": 0
},
"stmts": [
{
"type": "LabeledStatement",
"span": {
"start": 996,
"end": 1048,
"ctxt": 0
},
"label": {
"type": "Identifier",
"span": {
"start": 996,
"end": 1001,
"ctxt": 0
},
"value": "block",
"optional": false
},
"body": {
"type": "BlockStatement",
"span": {
"start": 1003,
"end": 1048,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 1013,
"end": 1021,
"ctxt": 0
},
"expression": {
"type": "AwaitExpression",
"span": {
"start": 1013,
"end": 1020,
"ctxt": 0
},
"argument": {
"type": "NumericLiteral",
"span": {
"start": 1019,
"end": 1020,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
},
{
"type": "BreakStatement",
"span": {
"start": 1030,
"end": 1042,
"ctxt": 0
},
"label": {
"type": "Identifier",
"span": {
"start": 1036,
"end": 1041,
"ctxt": 0
},
"value": "block",
"optional": false
}
}
]
}
}
]
},
"generator": false,
"async": true,
"typeParameters": null,
"returnType": null
}
],
"interpreter": null
}