{ "type": "Module", "span": { "start": 40, "end": 226, "ctxt": 0 }, "body": [ { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 49, "end": 52, "ctxt": 0 }, "value": "foo", "optional": false }, "declare": false, "params": [], "decorators": [], "span": { "start": 40, "end": 74, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 55, "end": 74, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 58, "end": 72, "ctxt": 0 }, "argument": { "type": "StringLiteral", "span": { "start": 65, "end": 71, "ctxt": 0 }, "value": "test", "raw": "\"test\"" } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, { "type": "TsModuleDeclaration", "span": { "start": 75, "end": 114, "ctxt": 0 }, "declare": false, "global": false, "id": { "type": "Identifier", "span": { "start": 82, "end": 85, "ctxt": 0 }, "value": "foo", "optional": false }, "body": { "type": "TsModuleBlock", "span": { "start": 86, "end": 114, "ctxt": 0 }, "body": [ { "type": "ExportDeclaration", "span": { "start": 89, "end": 112, "ctxt": 0 }, "declaration": { "type": "VariableDeclaration", "span": { "start": 96, "end": 112, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 100, "end": 111, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 100, "end": 106, "ctxt": 0 }, "value": "answer", "optional": false, "typeAnnotation": null }, "init": { "type": "NumericLiteral", "span": { "start": 109, "end": 111, "ctxt": 0 }, "value": 42.0, "raw": "42" }, "definite": false } ] } } ] } }, { "type": "TsExportAssignment", "span": { "start": 115, "end": 128, "ctxt": 0 }, "expression": { "type": "Identifier", "span": { "start": 124, "end": 127, "ctxt": 0 }, "value": "foo", "optional": false } }, { "type": "TsImportEqualsDeclaration", "span": { "start": 153, "end": 185, "ctxt": 0 }, "isExport": false, "isTypeOnly": false, "id": { "type": "Identifier", "span": { "start": 160, "end": 163, "ctxt": 0 }, "value": "foo", "optional": false }, "moduleRef": { "type": "TsExternalModuleReference", "span": { "start": 166, "end": 184, "ctxt": 0 }, "expression": { "type": "StringLiteral", "span": { "start": 174, "end": 183, "ctxt": 0 }, "value": "./foo_0", "raw": "\"./foo_0\"" } } }, { "type": "IfStatement", "span": { "start": 186, "end": 226, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 189, "end": 206, "ctxt": 0 }, "operator": "===", "left": { "type": "MemberExpression", "span": { "start": 189, "end": 199, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 189, "end": 192, "ctxt": 0 }, "value": "foo", "optional": false }, "property": { "type": "Identifier", "span": { "start": 193, "end": 199, "ctxt": 0 }, "value": "answer", "optional": false } }, "right": { "type": "NumericLiteral", "span": { "start": 204, "end": 206, "ctxt": 0 }, "value": 42.0, "raw": "42" } }, "consequent": { "type": "BlockStatement", "span": { "start": 207, "end": 226, "ctxt": 0 }, "stmts": [ { "type": "VariableDeclaration", "span": { "start": 210, "end": 224, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 214, "end": 223, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 214, "end": 215, "ctxt": 0 }, "value": "x", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 218, "end": 223, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 218, "end": 221, "ctxt": 0 }, "value": "foo", "optional": false }, "arguments": [], "typeArguments": null }, "definite": false } ] } ] }, "alternate": null } ], "interpreter": null }