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

1992 lines
50 KiB
JSON

{
"type": "Module",
"span": {
"start": 43,
"end": 961,
"ctxt": 0
},
"body": [
{
"type": "ImportDeclaration",
"span": {
"start": 43,
"end": 79,
"ctxt": 0
},
"specifiers": [
{
"type": "ImportSpecifier",
"span": {
"start": 52,
"end": 61,
"ctxt": 0
},
"local": {
"type": "Identifier",
"span": {
"start": 52,
"end": 61,
"ctxt": 0
},
"value": "MyPromise",
"optional": false
},
"imported": null,
"isTypeOnly": false
}
],
"source": {
"type": "StringLiteral",
"span": {
"start": 69,
"end": 78,
"ctxt": 0
},
"value": "missing",
"raw": "\"missing\""
},
"typeOnly": false,
"asserts": null
},
{
"type": "VariableDeclaration",
"span": {
"start": 81,
"end": 112,
"ctxt": 0
},
"kind": "var",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 93,
"end": 111,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 93,
"end": 94,
"ctxt": 0
},
"value": "p",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 94,
"end": 111,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 96,
"end": 111,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 96,
"end": 103,
"ctxt": 0
},
"value": "Promise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 103,
"end": 111,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 104,
"end": 110,
"ctxt": 0
},
"kind": "number"
}
]
}
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 113,
"end": 147,
"ctxt": 0
},
"kind": "var",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 125,
"end": 146,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 125,
"end": 127,
"ctxt": 0
},
"value": "mp",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 127,
"end": 146,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 129,
"end": 146,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 129,
"end": 138,
"ctxt": 0
},
"value": "MyPromise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 138,
"end": 146,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 139,
"end": 145,
"ctxt": 0
},
"kind": "number"
}
]
}
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 164,
"end": 166,
"ctxt": 0
},
"value": "f0",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 149,
"end": 172,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 169,
"end": 172,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": true,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 188,
"end": 190,
"ctxt": 0
},
"value": "f1",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 173,
"end": 211,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 208,
"end": 211,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": true,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 192,
"end": 207,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 194,
"end": 207,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 194,
"end": 201,
"ctxt": 0
},
"value": "Promise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 201,
"end": 207,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 202,
"end": 206,
"ctxt": 0
},
"kind": "void"
}
]
}
}
}
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 227,
"end": 229,
"ctxt": 0
},
"value": "f3",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 212,
"end": 252,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 249,
"end": 252,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": true,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 231,
"end": 248,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 233,
"end": 248,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 233,
"end": 242,
"ctxt": 0
},
"value": "MyPromise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 242,
"end": 248,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 243,
"end": 247,
"ctxt": 0
},
"kind": "void"
}
]
}
}
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 254,
"end": 283,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 258,
"end": 283,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 258,
"end": 260,
"ctxt": 0
},
"value": "f4",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "FunctionExpression",
"identifier": null,
"params": [],
"decorators": [],
"span": {
"start": 263,
"end": 283,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 280,
"end": 283,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": true,
"typeParameters": null,
"returnType": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 284,
"end": 328,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 288,
"end": 328,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 288,
"end": 290,
"ctxt": 0
},
"value": "f5",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "FunctionExpression",
"identifier": null,
"params": [],
"decorators": [],
"span": {
"start": 293,
"end": 328,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 325,
"end": 328,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": true,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 309,
"end": 324,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 311,
"end": 324,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 311,
"end": 318,
"ctxt": 0
},
"value": "Promise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 318,
"end": 324,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 319,
"end": 323,
"ctxt": 0
},
"kind": "void"
}
]
}
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 329,
"end": 375,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 333,
"end": 375,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 333,
"end": 335,
"ctxt": 0
},
"value": "f6",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "FunctionExpression",
"identifier": null,
"params": [],
"decorators": [],
"span": {
"start": 338,
"end": 375,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 372,
"end": 375,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": true,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 354,
"end": 371,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 356,
"end": 371,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 356,
"end": 365,
"ctxt": 0
},
"value": "MyPromise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 365,
"end": 371,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 366,
"end": 370,
"ctxt": 0
},
"kind": "void"
}
]
}
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 377,
"end": 402,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 381,
"end": 401,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 381,
"end": 383,
"ctxt": 0
},
"value": "f7",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrowFunctionExpression",
"span": {
"start": 386,
"end": 401,
"ctxt": 0
},
"params": [],
"body": {
"type": "BlockStatement",
"span": {
"start": 398,
"end": 401,
"ctxt": 0
},
"stmts": []
},
"async": true,
"generator": false,
"typeParameters": null,
"returnType": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 403,
"end": 443,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 407,
"end": 442,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 407,
"end": 409,
"ctxt": 0
},
"value": "f8",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrowFunctionExpression",
"span": {
"start": 412,
"end": 442,
"ctxt": 0
},
"params": [],
"body": {
"type": "BlockStatement",
"span": {
"start": 439,
"end": 442,
"ctxt": 0
},
"stmts": []
},
"async": true,
"generator": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 420,
"end": 435,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 422,
"end": 435,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 422,
"end": 429,
"ctxt": 0
},
"value": "Promise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 429,
"end": 435,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 430,
"end": 434,
"ctxt": 0
},
"kind": "void"
}
]
}
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 444,
"end": 486,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 448,
"end": 485,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 448,
"end": 450,
"ctxt": 0
},
"value": "f9",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrowFunctionExpression",
"span": {
"start": 453,
"end": 485,
"ctxt": 0
},
"params": [],
"body": {
"type": "BlockStatement",
"span": {
"start": 482,
"end": 485,
"ctxt": 0
},
"stmts": []
},
"async": true,
"generator": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 461,
"end": 478,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 463,
"end": 478,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 463,
"end": 472,
"ctxt": 0
},
"value": "MyPromise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 472,
"end": 478,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 473,
"end": 477,
"ctxt": 0
},
"kind": "void"
}
]
}
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 488,
"end": 512,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 492,
"end": 511,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 492,
"end": 495,
"ctxt": 0
},
"value": "f10",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrowFunctionExpression",
"span": {
"start": 498,
"end": 511,
"ctxt": 0
},
"params": [],
"body": {
"type": "Identifier",
"span": {
"start": 510,
"end": 511,
"ctxt": 0
},
"value": "p",
"optional": false
},
"async": true,
"generator": false,
"typeParameters": null,
"returnType": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 513,
"end": 538,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 517,
"end": 537,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 517,
"end": 520,
"ctxt": 0
},
"value": "f11",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrowFunctionExpression",
"span": {
"start": 523,
"end": 537,
"ctxt": 0
},
"params": [],
"body": {
"type": "Identifier",
"span": {
"start": 535,
"end": 537,
"ctxt": 0
},
"value": "mp",
"optional": false
},
"async": true,
"generator": false,
"typeParameters": null,
"returnType": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 539,
"end": 581,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 543,
"end": 580,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 543,
"end": 546,
"ctxt": 0
},
"value": "f12",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrowFunctionExpression",
"span": {
"start": 549,
"end": 580,
"ctxt": 0
},
"params": [],
"body": {
"type": "Identifier",
"span": {
"start": 578,
"end": 580,
"ctxt": 0
},
"value": "mp",
"optional": false
},
"async": true,
"generator": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 557,
"end": 574,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 559,
"end": 574,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 559,
"end": 566,
"ctxt": 0
},
"value": "Promise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 566,
"end": 574,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 567,
"end": 573,
"ctxt": 0
},
"kind": "number"
}
]
}
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 582,
"end": 625,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 586,
"end": 624,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 586,
"end": 589,
"ctxt": 0
},
"value": "f13",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrowFunctionExpression",
"span": {
"start": 592,
"end": 624,
"ctxt": 0
},
"params": [],
"body": {
"type": "Identifier",
"span": {
"start": 623,
"end": 624,
"ctxt": 0
},
"value": "p",
"optional": false
},
"async": true,
"generator": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 600,
"end": 619,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 602,
"end": 619,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 602,
"end": 611,
"ctxt": 0
},
"value": "MyPromise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 611,
"end": 619,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 612,
"end": 618,
"ctxt": 0
},
"kind": "number"
}
]
}
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 627,
"end": 721,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 631,
"end": 720,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 631,
"end": 632,
"ctxt": 0
},
"value": "o",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 635,
"end": 720,
"ctxt": 0
},
"properties": [
{
"type": "MethodProperty",
"key": {
"type": "Identifier",
"span": {
"start": 644,
"end": 646,
"ctxt": 0
},
"value": "m1",
"optional": false
},
"params": [],
"decorators": [],
"span": {
"start": 638,
"end": 652,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 649,
"end": 652,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": true,
"typeParameters": null,
"returnType": null
},
{
"type": "MethodProperty",
"key": {
"type": "Identifier",
"span": {
"start": 661,
"end": 663,
"ctxt": 0
},
"value": "m2",
"optional": false
},
"params": [],
"decorators": [],
"span": {
"start": 655,
"end": 684,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 681,
"end": 684,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": true,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 665,
"end": 680,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 667,
"end": 680,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 667,
"end": 674,
"ctxt": 0
},
"value": "Promise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 674,
"end": 680,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 675,
"end": 679,
"ctxt": 0
},
"kind": "void"
}
]
}
}
}
},
{
"type": "MethodProperty",
"key": {
"type": "Identifier",
"span": {
"start": 693,
"end": 695,
"ctxt": 0
},
"value": "m3",
"optional": false
},
"params": [],
"decorators": [],
"span": {
"start": 687,
"end": 718,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 715,
"end": 718,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": true,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 697,
"end": 714,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 699,
"end": 714,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 699,
"end": 708,
"ctxt": 0
},
"value": "MyPromise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 708,
"end": 714,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 709,
"end": 713,
"ctxt": 0
},
"kind": "void"
}
]
}
}
}
}
]
},
"definite": false
}
]
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 729,
"end": 730,
"ctxt": 0
},
"value": "C",
"optional": false
},
"declare": false,
"span": {
"start": 723,
"end": 915,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassMethod",
"span": {
"start": 734,
"end": 748,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 740,
"end": 742,
"ctxt": 0
},
"value": "m1",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 734,
"end": 748,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 745,
"end": 748,
"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": 750,
"end": 779,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 756,
"end": 758,
"ctxt": 0
},
"value": "m2",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 750,
"end": 779,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 776,
"end": 779,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": true,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 760,
"end": 775,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 762,
"end": 775,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 762,
"end": 769,
"ctxt": 0
},
"value": "Promise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 769,
"end": 775,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 770,
"end": 774,
"ctxt": 0
},
"kind": "void"
}
]
}
}
}
},
"kind": "method",
"isStatic": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 781,
"end": 812,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 787,
"end": 789,
"ctxt": 0
},
"value": "m3",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 781,
"end": 812,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 809,
"end": 812,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": true,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 791,
"end": 808,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 793,
"end": 808,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 793,
"end": 802,
"ctxt": 0
},
"value": "MyPromise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 802,
"end": 808,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 803,
"end": 807,
"ctxt": 0
},
"kind": "void"
}
]
}
}
}
},
"kind": "method",
"isStatic": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 814,
"end": 835,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 827,
"end": 829,
"ctxt": 0
},
"value": "m4",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 814,
"end": 835,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 832,
"end": 835,
"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": 837,
"end": 873,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 850,
"end": 852,
"ctxt": 0
},
"value": "m5",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 837,
"end": 873,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 870,
"end": 873,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": true,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 854,
"end": 869,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 856,
"end": 869,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 856,
"end": 863,
"ctxt": 0
},
"value": "Promise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 863,
"end": 869,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 864,
"end": 868,
"ctxt": 0
},
"kind": "void"
}
]
}
}
}
},
"kind": "method",
"isStatic": true,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 875,
"end": 913,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 888,
"end": 890,
"ctxt": 0
},
"value": "m6",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 875,
"end": 913,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 910,
"end": 913,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": true,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 892,
"end": 909,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 894,
"end": 909,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 894,
"end": 903,
"ctxt": 0
},
"value": "MyPromise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 903,
"end": 909,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 904,
"end": 908,
"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": 917,
"end": 961,
"ctxt": 0
},
"declare": false,
"global": false,
"id": {
"type": "Identifier",
"span": {
"start": 924,
"end": 925,
"ctxt": 0
},
"value": "M",
"optional": false
},
"body": {
"type": "TsModuleBlock",
"span": {
"start": 926,
"end": 961,
"ctxt": 0
},
"body": [
{
"type": "ExportDeclaration",
"span": {
"start": 929,
"end": 959,
"ctxt": 0
},
"declaration": {
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 951,
"end": 953,
"ctxt": 0
},
"value": "f1",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 936,
"end": 959,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 956,
"end": 959,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": true,
"typeParameters": null,
"returnType": null
}
}
]
}
}
],
"interpreter": null
}