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

1996 lines
50 KiB
JSON

{
"type": "Module",
"span": {
"start": 70,
"end": 987,
"ctxt": 0
},
"body": [
{
"type": "ImportDeclaration",
"span": {
"start": 70,
"end": 106,
"ctxt": 0
},
"specifiers": [
{
"type": "ImportSpecifier",
"span": {
"start": 79,
"end": 88,
"ctxt": 0
},
"local": {
"type": "Identifier",
"span": {
"start": 79,
"end": 88,
"ctxt": 0
},
"value": "MyPromise",
"optional": false
},
"imported": null,
"isTypeOnly": false
}
],
"source": {
"type": "StringLiteral",
"span": {
"start": 96,
"end": 105,
"ctxt": 0
},
"value": "missing",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
},
"typeOnly": false,
"asserts": null
},
{
"type": "VariableDeclaration",
"span": {
"start": 108,
"end": 139,
"ctxt": 0
},
"kind": "var",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 120,
"end": 138,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 120,
"end": 121,
"ctxt": 0
},
"value": "p",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 121,
"end": 138,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 123,
"end": 138,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 123,
"end": 130,
"ctxt": 0
},
"value": "Promise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 130,
"end": 138,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 131,
"end": 137,
"ctxt": 0
},
"kind": "number"
}
]
}
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 140,
"end": 174,
"ctxt": 0
},
"kind": "var",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 152,
"end": 173,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 152,
"end": 154,
"ctxt": 0
},
"value": "mp",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 154,
"end": 173,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 156,
"end": 173,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 156,
"end": 165,
"ctxt": 0
},
"value": "MyPromise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 165,
"end": 173,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 166,
"end": 172,
"ctxt": 0
},
"kind": "number"
}
]
}
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 191,
"end": 193,
"ctxt": 0
},
"value": "f0",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 176,
"end": 199,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 196,
"end": 199,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": true,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 215,
"end": 217,
"ctxt": 0
},
"value": "f1",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 200,
"end": 238,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 235,
"end": 238,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": true,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 219,
"end": 234,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 221,
"end": 234,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 221,
"end": 228,
"ctxt": 0
},
"value": "Promise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 228,
"end": 234,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 229,
"end": 233,
"ctxt": 0
},
"kind": "void"
}
]
}
}
}
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 254,
"end": 256,
"ctxt": 0
},
"value": "f3",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 239,
"end": 279,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 276,
"end": 279,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": true,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 258,
"end": 275,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 260,
"end": 275,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 260,
"end": 269,
"ctxt": 0
},
"value": "MyPromise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 269,
"end": 275,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 270,
"end": 274,
"ctxt": 0
},
"kind": "void"
}
]
}
}
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 281,
"end": 310,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 285,
"end": 310,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 285,
"end": 287,
"ctxt": 0
},
"value": "f4",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "FunctionExpression",
"identifier": null,
"params": [],
"decorators": [],
"span": {
"start": 290,
"end": 310,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 307,
"end": 310,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": true,
"typeParameters": null,
"returnType": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 311,
"end": 355,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 315,
"end": 355,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 315,
"end": 317,
"ctxt": 0
},
"value": "f5",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "FunctionExpression",
"identifier": null,
"params": [],
"decorators": [],
"span": {
"start": 320,
"end": 355,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 352,
"end": 355,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": true,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 336,
"end": 351,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 338,
"end": 351,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 338,
"end": 345,
"ctxt": 0
},
"value": "Promise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 345,
"end": 351,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 346,
"end": 350,
"ctxt": 0
},
"kind": "void"
}
]
}
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 356,
"end": 402,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 360,
"end": 402,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 360,
"end": 362,
"ctxt": 0
},
"value": "f6",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "FunctionExpression",
"identifier": null,
"params": [],
"decorators": [],
"span": {
"start": 365,
"end": 402,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 399,
"end": 402,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": true,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 381,
"end": 398,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 383,
"end": 398,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 383,
"end": 392,
"ctxt": 0
},
"value": "MyPromise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 392,
"end": 398,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 393,
"end": 397,
"ctxt": 0
},
"kind": "void"
}
]
}
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 404,
"end": 429,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 408,
"end": 428,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 408,
"end": 410,
"ctxt": 0
},
"value": "f7",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrowFunctionExpression",
"span": {
"start": 413,
"end": 428,
"ctxt": 0
},
"params": [],
"body": {
"type": "BlockStatement",
"span": {
"start": 425,
"end": 428,
"ctxt": 0
},
"stmts": []
},
"async": true,
"generator": false,
"typeParameters": null,
"returnType": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 430,
"end": 470,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 434,
"end": 469,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 434,
"end": 436,
"ctxt": 0
},
"value": "f8",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrowFunctionExpression",
"span": {
"start": 439,
"end": 469,
"ctxt": 0
},
"params": [],
"body": {
"type": "BlockStatement",
"span": {
"start": 466,
"end": 469,
"ctxt": 0
},
"stmts": []
},
"async": true,
"generator": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 447,
"end": 462,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 449,
"end": 462,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 449,
"end": 456,
"ctxt": 0
},
"value": "Promise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 456,
"end": 462,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 457,
"end": 461,
"ctxt": 0
},
"kind": "void"
}
]
}
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 471,
"end": 513,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 475,
"end": 512,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 475,
"end": 477,
"ctxt": 0
},
"value": "f9",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrowFunctionExpression",
"span": {
"start": 480,
"end": 512,
"ctxt": 0
},
"params": [],
"body": {
"type": "BlockStatement",
"span": {
"start": 509,
"end": 512,
"ctxt": 0
},
"stmts": []
},
"async": true,
"generator": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 488,
"end": 505,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 490,
"end": 505,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 490,
"end": 499,
"ctxt": 0
},
"value": "MyPromise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 499,
"end": 505,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 500,
"end": 504,
"ctxt": 0
},
"kind": "void"
}
]
}
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 514,
"end": 538,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 518,
"end": 537,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 518,
"end": 521,
"ctxt": 0
},
"value": "f10",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrowFunctionExpression",
"span": {
"start": 524,
"end": 537,
"ctxt": 0
},
"params": [],
"body": {
"type": "Identifier",
"span": {
"start": 536,
"end": 537,
"ctxt": 0
},
"value": "p",
"optional": false
},
"async": true,
"generator": false,
"typeParameters": null,
"returnType": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 539,
"end": 564,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 543,
"end": 563,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 543,
"end": 546,
"ctxt": 0
},
"value": "f11",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrowFunctionExpression",
"span": {
"start": 549,
"end": 563,
"ctxt": 0
},
"params": [],
"body": {
"type": "Identifier",
"span": {
"start": 561,
"end": 563,
"ctxt": 0
},
"value": "mp",
"optional": false
},
"async": true,
"generator": false,
"typeParameters": null,
"returnType": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 565,
"end": 607,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 569,
"end": 606,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 569,
"end": 572,
"ctxt": 0
},
"value": "f12",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrowFunctionExpression",
"span": {
"start": 575,
"end": 606,
"ctxt": 0
},
"params": [],
"body": {
"type": "Identifier",
"span": {
"start": 604,
"end": 606,
"ctxt": 0
},
"value": "mp",
"optional": false
},
"async": true,
"generator": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 583,
"end": 600,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 585,
"end": 600,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 585,
"end": 592,
"ctxt": 0
},
"value": "Promise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 592,
"end": 600,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 593,
"end": 599,
"ctxt": 0
},
"kind": "number"
}
]
}
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 608,
"end": 651,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 612,
"end": 650,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 612,
"end": 615,
"ctxt": 0
},
"value": "f13",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrowFunctionExpression",
"span": {
"start": 618,
"end": 650,
"ctxt": 0
},
"params": [],
"body": {
"type": "Identifier",
"span": {
"start": 649,
"end": 650,
"ctxt": 0
},
"value": "p",
"optional": false
},
"async": true,
"generator": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 626,
"end": 645,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 628,
"end": 645,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 628,
"end": 637,
"ctxt": 0
},
"value": "MyPromise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 637,
"end": 645,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 638,
"end": 644,
"ctxt": 0
},
"kind": "number"
}
]
}
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 653,
"end": 747,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 657,
"end": 746,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 657,
"end": 658,
"ctxt": 0
},
"value": "o",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 661,
"end": 746,
"ctxt": 0
},
"properties": [
{
"type": "MethodProperty",
"key": {
"type": "Identifier",
"span": {
"start": 670,
"end": 672,
"ctxt": 0
},
"value": "m1",
"optional": false
},
"params": [],
"decorators": [],
"span": {
"start": 664,
"end": 678,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 675,
"end": 678,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": true,
"typeParameters": null,
"returnType": null
},
{
"type": "MethodProperty",
"key": {
"type": "Identifier",
"span": {
"start": 687,
"end": 689,
"ctxt": 0
},
"value": "m2",
"optional": false
},
"params": [],
"decorators": [],
"span": {
"start": 681,
"end": 710,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 707,
"end": 710,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": true,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 691,
"end": 706,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 693,
"end": 706,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 693,
"end": 700,
"ctxt": 0
},
"value": "Promise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 700,
"end": 706,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 701,
"end": 705,
"ctxt": 0
},
"kind": "void"
}
]
}
}
}
},
{
"type": "MethodProperty",
"key": {
"type": "Identifier",
"span": {
"start": 719,
"end": 721,
"ctxt": 0
},
"value": "m3",
"optional": false
},
"params": [],
"decorators": [],
"span": {
"start": 713,
"end": 744,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 741,
"end": 744,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": true,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 723,
"end": 740,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 725,
"end": 740,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 725,
"end": 734,
"ctxt": 0
},
"value": "MyPromise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 734,
"end": 740,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 735,
"end": 739,
"ctxt": 0
},
"kind": "void"
}
]
}
}
}
}
]
},
"definite": false
}
]
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 755,
"end": 756,
"ctxt": 0
},
"value": "C",
"optional": false
},
"declare": false,
"span": {
"start": 749,
"end": 941,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassMethod",
"span": {
"start": 760,
"end": 774,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 766,
"end": 768,
"ctxt": 0
},
"value": "m1",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 760,
"end": 774,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 771,
"end": 774,
"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": 776,
"end": 805,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 782,
"end": 784,
"ctxt": 0
},
"value": "m2",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 776,
"end": 805,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 802,
"end": 805,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": true,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 786,
"end": 801,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 788,
"end": 801,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 788,
"end": 795,
"ctxt": 0
},
"value": "Promise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 795,
"end": 801,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 796,
"end": 800,
"ctxt": 0
},
"kind": "void"
}
]
}
}
}
},
"kind": "method",
"isStatic": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 807,
"end": 838,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 813,
"end": 815,
"ctxt": 0
},
"value": "m3",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 807,
"end": 838,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 835,
"end": 838,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": true,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 817,
"end": 834,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 819,
"end": 834,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 819,
"end": 828,
"ctxt": 0
},
"value": "MyPromise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 828,
"end": 834,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 829,
"end": 833,
"ctxt": 0
},
"kind": "void"
}
]
}
}
}
},
"kind": "method",
"isStatic": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 840,
"end": 861,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 853,
"end": 855,
"ctxt": 0
},
"value": "m4",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 840,
"end": 861,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 858,
"end": 861,
"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": 863,
"end": 899,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 876,
"end": 878,
"ctxt": 0
},
"value": "m5",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 863,
"end": 899,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 896,
"end": 899,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": true,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 880,
"end": 895,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 882,
"end": 895,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 882,
"end": 889,
"ctxt": 0
},
"value": "Promise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 889,
"end": 895,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 890,
"end": 894,
"ctxt": 0
},
"kind": "void"
}
]
}
}
}
},
"kind": "method",
"isStatic": true,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 901,
"end": 939,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 914,
"end": 916,
"ctxt": 0
},
"value": "m6",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 901,
"end": 939,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 936,
"end": 939,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": true,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 918,
"end": 935,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 920,
"end": 935,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 920,
"end": 929,
"ctxt": 0
},
"value": "MyPromise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 929,
"end": 935,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 930,
"end": 934,
"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": 943,
"end": 987,
"ctxt": 0
},
"declare": false,
"global": false,
"id": {
"type": "Identifier",
"span": {
"start": 950,
"end": 951,
"ctxt": 0
},
"value": "M",
"optional": false
},
"body": {
"type": "TsModuleBlock",
"span": {
"start": 952,
"end": 987,
"ctxt": 0
},
"body": [
{
"type": "ExportDeclaration",
"span": {
"start": 955,
"end": 985,
"ctxt": 0
},
"declaration": {
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 977,
"end": 979,
"ctxt": 0
},
"value": "f1",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 962,
"end": 985,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 982,
"end": 985,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": true,
"typeParameters": null,
"returnType": null
}
}
]
}
}
],
"interpreter": null
}