{ "type": "Module", "span": { "start": 57, "end": 260, "ctxt": 0 }, "body": [ { "type": "ExportDeclaration", "span": { "start": 57, "end": 106, "ctxt": 0 }, "declaration": { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 70, "end": 71, "ctxt": 0 }, "value": "B", "optional": false }, "declare": false, "span": { "start": 64, "end": 106, "ctxt": 0 }, "decorators": [], "body": [ { "type": "ClassMethod", "span": { "start": 78, "end": 104, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 78, "end": 83, "ctxt": 0 }, "value": "print", "optional": false }, "function": { "params": [], "decorators": [], "span": { "start": 78, "end": 104, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 86, "end": 104, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 88, "end": 103, "ctxt": 0 }, "argument": { "type": "StringLiteral", "span": { "start": 95, "end": 103, "ctxt": 0 }, "value": "I am B", "raw": "\"I am B\"" } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, "kind": "method", "isStatic": false, "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false } ], "superClass": null, "isAbstract": false, "typeParams": null, "superTypeParams": null, "implements": [] } }, { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 136, "end": 139, "ctxt": 0 }, "value": "foo", "optional": false }, "declare": false, "params": [ { "type": "Parameter", "span": { "start": 140, "end": 155, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 140, "end": 155, "ctxt": 0 }, "value": "x", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 141, "end": 155, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 143, "end": 155, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 143, "end": 150, "ctxt": 0 }, "value": "Promise", "optional": false }, "typeParams": { "type": "TsTypeParameterInstantiation", "span": { "start": 150, "end": 155, "ctxt": 0 }, "params": [ { "type": "TsKeywordType", "span": { "start": 151, "end": 154, "ctxt": 0 }, "kind": "any" } ] } } } } } ], "decorators": [], "span": { "start": 127, "end": 239, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 157, "end": 239, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 163, "end": 237, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 163, "end": 237, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 163, "end": 169, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 163, "end": 164, "ctxt": 0 }, "value": "x", "optional": false }, "property": { "type": "Identifier", "span": { "start": 165, "end": 169, "ctxt": 0 }, "value": "then", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "ArrowFunctionExpression", "span": { "start": 170, "end": 236, "ctxt": 0 }, "params": [ { "type": "Identifier", "span": { "start": 170, "end": 175, "ctxt": 0 }, "value": "value", "optional": false, "typeAnnotation": null } ], "body": { "type": "BlockStatement", "span": { "start": 179, "end": 236, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 189, "end": 211, "ctxt": 0 }, "kind": "let", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 193, "end": 210, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 193, "end": 194, "ctxt": 0 }, "value": "b", "optional": false, "typeAnnotation": null }, "init": { "type": "NewExpression", "span": { "start": 197, "end": 210, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 201, "end": 208, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 201, "end": 206, "ctxt": 0 }, "value": "value", "optional": false }, "property": { "type": "Identifier", "span": { "start": 207, "end": 208, "ctxt": 0 }, "value": "B", "optional": false } }, "arguments": [], "typeArguments": null }, "definite": false } ] }, { "type": "ExpressionStatement", "span": { "start": 220, "end": 230, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 220, "end": 229, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 220, "end": 227, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 220, "end": 221, "ctxt": 0 }, "value": "b", "optional": false }, "property": { "type": "Identifier", "span": { "start": 222, "end": 227, "ctxt": 0 }, "value": "print", "optional": false } }, "arguments": [], "typeArguments": null } } ] }, "async": false, "generator": false, "typeParameters": null, "returnType": null } } ], "typeArguments": null } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, { "type": "ExpressionStatement", "span": { "start": 241, "end": 260, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 241, "end": 259, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 241, "end": 244, "ctxt": 0 }, "value": "foo", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "CallExpression", "span": { "start": 245, "end": 258, "ctxt": 0 }, "callee": { "type": "Import", "span": { "start": 245, "end": 251, "ctxt": 0 } }, "arguments": [ { "spread": null, "expression": { "type": "StringLiteral", "span": { "start": 252, "end": 257, "ctxt": 0 }, "value": "./0", "raw": "\"./0\"" } } ], "typeArguments": null } } ], "typeArguments": null } } ], "interpreter": null }