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

1992 lines
50 KiB
JSON

{
"type": "Module",
"span": {
"start": 46,
"end": 964,
"ctxt": 0
},
"body": [
{
"type": "ImportDeclaration",
"span": {
"start": 46,
"end": 82,
"ctxt": 0
},
"specifiers": [
{
"type": "ImportSpecifier",
"span": {
"start": 55,
"end": 64,
"ctxt": 0
},
"local": {
"type": "Identifier",
"span": {
"start": 55,
"end": 64,
"ctxt": 0
},
"value": "MyPromise",
"optional": false
},
"imported": null,
"isTypeOnly": false
}
],
"source": {
"type": "StringLiteral",
"span": {
"start": 72,
"end": 81,
"ctxt": 0
},
"value": "missing",
"raw": "\"missing\""
},
"typeOnly": false,
"asserts": null
},
{
"type": "VariableDeclaration",
"span": {
"start": 84,
"end": 115,
"ctxt": 0
},
"kind": "var",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 96,
"end": 114,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 96,
"end": 97,
"ctxt": 0
},
"value": "p",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 97,
"end": 114,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 99,
"end": 114,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 99,
"end": 106,
"ctxt": 0
},
"value": "Promise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 106,
"end": 114,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 107,
"end": 113,
"ctxt": 0
},
"kind": "number"
}
]
}
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 116,
"end": 150,
"ctxt": 0
},
"kind": "var",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 128,
"end": 149,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 128,
"end": 130,
"ctxt": 0
},
"value": "mp",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 130,
"end": 149,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 132,
"end": 149,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 132,
"end": 141,
"ctxt": 0
},
"value": "MyPromise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 141,
"end": 149,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 142,
"end": 148,
"ctxt": 0
},
"kind": "number"
}
]
}
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 167,
"end": 169,
"ctxt": 0
},
"value": "f0",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 152,
"end": 175,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 172,
"end": 175,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": true,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 191,
"end": 193,
"ctxt": 0
},
"value": "f1",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 176,
"end": 214,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 211,
"end": 214,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": true,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 195,
"end": 210,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 197,
"end": 210,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 197,
"end": 204,
"ctxt": 0
},
"value": "Promise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 204,
"end": 210,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 205,
"end": 209,
"ctxt": 0
},
"kind": "void"
}
]
}
}
}
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 230,
"end": 232,
"ctxt": 0
},
"value": "f3",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 215,
"end": 255,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 252,
"end": 255,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": true,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 234,
"end": 251,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 236,
"end": 251,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 236,
"end": 245,
"ctxt": 0
},
"value": "MyPromise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 245,
"end": 251,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 246,
"end": 250,
"ctxt": 0
},
"kind": "void"
}
]
}
}
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 257,
"end": 286,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 261,
"end": 286,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 261,
"end": 263,
"ctxt": 0
},
"value": "f4",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "FunctionExpression",
"identifier": null,
"params": [],
"decorators": [],
"span": {
"start": 266,
"end": 286,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 283,
"end": 286,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": true,
"typeParameters": null,
"returnType": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 287,
"end": 331,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 291,
"end": 331,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 291,
"end": 293,
"ctxt": 0
},
"value": "f5",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "FunctionExpression",
"identifier": null,
"params": [],
"decorators": [],
"span": {
"start": 296,
"end": 331,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 328,
"end": 331,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": true,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 312,
"end": 327,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 314,
"end": 327,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 314,
"end": 321,
"ctxt": 0
},
"value": "Promise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 321,
"end": 327,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 322,
"end": 326,
"ctxt": 0
},
"kind": "void"
}
]
}
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 332,
"end": 378,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 336,
"end": 378,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 336,
"end": 338,
"ctxt": 0
},
"value": "f6",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "FunctionExpression",
"identifier": null,
"params": [],
"decorators": [],
"span": {
"start": 341,
"end": 378,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 375,
"end": 378,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": true,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 357,
"end": 374,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 359,
"end": 374,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 359,
"end": 368,
"ctxt": 0
},
"value": "MyPromise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 368,
"end": 374,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 369,
"end": 373,
"ctxt": 0
},
"kind": "void"
}
]
}
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 380,
"end": 405,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 384,
"end": 404,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 384,
"end": 386,
"ctxt": 0
},
"value": "f7",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrowFunctionExpression",
"span": {
"start": 389,
"end": 404,
"ctxt": 0
},
"params": [],
"body": {
"type": "BlockStatement",
"span": {
"start": 401,
"end": 404,
"ctxt": 0
},
"stmts": []
},
"async": true,
"generator": false,
"typeParameters": null,
"returnType": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 406,
"end": 446,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 410,
"end": 445,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 410,
"end": 412,
"ctxt": 0
},
"value": "f8",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrowFunctionExpression",
"span": {
"start": 415,
"end": 445,
"ctxt": 0
},
"params": [],
"body": {
"type": "BlockStatement",
"span": {
"start": 442,
"end": 445,
"ctxt": 0
},
"stmts": []
},
"async": true,
"generator": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 423,
"end": 438,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 425,
"end": 438,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 425,
"end": 432,
"ctxt": 0
},
"value": "Promise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 432,
"end": 438,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 433,
"end": 437,
"ctxt": 0
},
"kind": "void"
}
]
}
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 447,
"end": 489,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 451,
"end": 488,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 451,
"end": 453,
"ctxt": 0
},
"value": "f9",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrowFunctionExpression",
"span": {
"start": 456,
"end": 488,
"ctxt": 0
},
"params": [],
"body": {
"type": "BlockStatement",
"span": {
"start": 485,
"end": 488,
"ctxt": 0
},
"stmts": []
},
"async": true,
"generator": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 464,
"end": 481,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 466,
"end": 481,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 466,
"end": 475,
"ctxt": 0
},
"value": "MyPromise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 475,
"end": 481,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 476,
"end": 480,
"ctxt": 0
},
"kind": "void"
}
]
}
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 491,
"end": 515,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 495,
"end": 514,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 495,
"end": 498,
"ctxt": 0
},
"value": "f10",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrowFunctionExpression",
"span": {
"start": 501,
"end": 514,
"ctxt": 0
},
"params": [],
"body": {
"type": "Identifier",
"span": {
"start": 513,
"end": 514,
"ctxt": 0
},
"value": "p",
"optional": false
},
"async": true,
"generator": false,
"typeParameters": null,
"returnType": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 516,
"end": 541,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 520,
"end": 540,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 520,
"end": 523,
"ctxt": 0
},
"value": "f11",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrowFunctionExpression",
"span": {
"start": 526,
"end": 540,
"ctxt": 0
},
"params": [],
"body": {
"type": "Identifier",
"span": {
"start": 538,
"end": 540,
"ctxt": 0
},
"value": "mp",
"optional": false
},
"async": true,
"generator": false,
"typeParameters": null,
"returnType": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 542,
"end": 584,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 546,
"end": 583,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 546,
"end": 549,
"ctxt": 0
},
"value": "f12",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrowFunctionExpression",
"span": {
"start": 552,
"end": 583,
"ctxt": 0
},
"params": [],
"body": {
"type": "Identifier",
"span": {
"start": 581,
"end": 583,
"ctxt": 0
},
"value": "mp",
"optional": false
},
"async": true,
"generator": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 560,
"end": 577,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 562,
"end": 577,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 562,
"end": 569,
"ctxt": 0
},
"value": "Promise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 569,
"end": 577,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 570,
"end": 576,
"ctxt": 0
},
"kind": "number"
}
]
}
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 585,
"end": 628,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 589,
"end": 627,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 589,
"end": 592,
"ctxt": 0
},
"value": "f13",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrowFunctionExpression",
"span": {
"start": 595,
"end": 627,
"ctxt": 0
},
"params": [],
"body": {
"type": "Identifier",
"span": {
"start": 626,
"end": 627,
"ctxt": 0
},
"value": "p",
"optional": false
},
"async": true,
"generator": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 603,
"end": 622,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 605,
"end": 622,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 605,
"end": 614,
"ctxt": 0
},
"value": "MyPromise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 614,
"end": 622,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 615,
"end": 621,
"ctxt": 0
},
"kind": "number"
}
]
}
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 630,
"end": 724,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 634,
"end": 723,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 634,
"end": 635,
"ctxt": 0
},
"value": "o",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 638,
"end": 723,
"ctxt": 0
},
"properties": [
{
"type": "MethodProperty",
"key": {
"type": "Identifier",
"span": {
"start": 647,
"end": 649,
"ctxt": 0
},
"value": "m1",
"optional": false
},
"params": [],
"decorators": [],
"span": {
"start": 641,
"end": 655,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 652,
"end": 655,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": true,
"typeParameters": null,
"returnType": null
},
{
"type": "MethodProperty",
"key": {
"type": "Identifier",
"span": {
"start": 664,
"end": 666,
"ctxt": 0
},
"value": "m2",
"optional": false
},
"params": [],
"decorators": [],
"span": {
"start": 658,
"end": 687,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 684,
"end": 687,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": true,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 668,
"end": 683,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 670,
"end": 683,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 670,
"end": 677,
"ctxt": 0
},
"value": "Promise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 677,
"end": 683,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 678,
"end": 682,
"ctxt": 0
},
"kind": "void"
}
]
}
}
}
},
{
"type": "MethodProperty",
"key": {
"type": "Identifier",
"span": {
"start": 696,
"end": 698,
"ctxt": 0
},
"value": "m3",
"optional": false
},
"params": [],
"decorators": [],
"span": {
"start": 690,
"end": 721,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 718,
"end": 721,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": true,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 700,
"end": 717,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 702,
"end": 717,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 702,
"end": 711,
"ctxt": 0
},
"value": "MyPromise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 711,
"end": 717,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 712,
"end": 716,
"ctxt": 0
},
"kind": "void"
}
]
}
}
}
}
]
},
"definite": false
}
]
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 732,
"end": 733,
"ctxt": 0
},
"value": "C",
"optional": false
},
"declare": false,
"span": {
"start": 726,
"end": 918,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassMethod",
"span": {
"start": 737,
"end": 751,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 743,
"end": 745,
"ctxt": 0
},
"value": "m1",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 737,
"end": 751,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 748,
"end": 751,
"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": 753,
"end": 782,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 759,
"end": 761,
"ctxt": 0
},
"value": "m2",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 753,
"end": 782,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 779,
"end": 782,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": true,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 763,
"end": 778,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 765,
"end": 778,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 765,
"end": 772,
"ctxt": 0
},
"value": "Promise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 772,
"end": 778,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 773,
"end": 777,
"ctxt": 0
},
"kind": "void"
}
]
}
}
}
},
"kind": "method",
"isStatic": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 784,
"end": 815,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 790,
"end": 792,
"ctxt": 0
},
"value": "m3",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 784,
"end": 815,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 812,
"end": 815,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": true,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 794,
"end": 811,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 796,
"end": 811,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 796,
"end": 805,
"ctxt": 0
},
"value": "MyPromise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 805,
"end": 811,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 806,
"end": 810,
"ctxt": 0
},
"kind": "void"
}
]
}
}
}
},
"kind": "method",
"isStatic": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 817,
"end": 838,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 830,
"end": 832,
"ctxt": 0
},
"value": "m4",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 817,
"end": 838,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 835,
"end": 838,
"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": 840,
"end": 876,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 853,
"end": 855,
"ctxt": 0
},
"value": "m5",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 840,
"end": 876,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 873,
"end": 876,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": true,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 857,
"end": 872,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 859,
"end": 872,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 859,
"end": 866,
"ctxt": 0
},
"value": "Promise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 866,
"end": 872,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 867,
"end": 871,
"ctxt": 0
},
"kind": "void"
}
]
}
}
}
},
"kind": "method",
"isStatic": true,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 878,
"end": 916,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 891,
"end": 893,
"ctxt": 0
},
"value": "m6",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 878,
"end": 916,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 913,
"end": 916,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": true,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 895,
"end": 912,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 897,
"end": 912,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 897,
"end": 906,
"ctxt": 0
},
"value": "MyPromise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 906,
"end": 912,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 907,
"end": 911,
"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": 920,
"end": 964,
"ctxt": 0
},
"declare": false,
"global": false,
"id": {
"type": "Identifier",
"span": {
"start": 927,
"end": 928,
"ctxt": 0
},
"value": "M",
"optional": false
},
"body": {
"type": "TsModuleBlock",
"span": {
"start": 929,
"end": 964,
"ctxt": 0
},
"body": [
{
"type": "ExportDeclaration",
"span": {
"start": 932,
"end": 962,
"ctxt": 0
},
"declaration": {
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 954,
"end": 956,
"ctxt": 0
},
"value": "f1",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 939,
"end": 962,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 959,
"end": 962,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": true,
"typeParameters": null,
"returnType": null
}
}
]
}
}
],
"interpreter": null
}