{ "type": "Module", "span": { "start": 85, "end": 479, "ctxt": 0 }, "body": [ { "type": "ExportDeclaration", "span": { "start": 85, "end": 134, "ctxt": 0 }, "declaration": { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 98, "end": 99, "ctxt": 0 }, "value": "B", "optional": false }, "declare": false, "span": { "start": 92, "end": 134, "ctxt": 0 }, "decorators": [], "body": [ { "type": "ClassMethod", "span": { "start": 106, "end": 132, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 106, "end": 111, "ctxt": 0 }, "value": "print", "optional": false }, "function": { "params": [], "decorators": [], "span": { "start": 106, "end": 132, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 114, "end": 132, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 116, "end": 131, "ctxt": 0 }, "argument": { "type": "StringLiteral", "span": { "start": 123, "end": 131, "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": "ExportDeclaration", "span": { "start": 136, "end": 174, "ctxt": 0 }, "declaration": { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 152, "end": 155, "ctxt": 0 }, "value": "foo", "optional": false }, "declare": false, "params": [], "decorators": [], "span": { "start": 143, "end": 174, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 158, "end": 174, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 160, "end": 172, "ctxt": 0 }, "argument": { "type": "StringLiteral", "span": { "start": 167, "end": 172, "ctxt": 0 }, "value": "foo", "raw": "\"foo\"" } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": null } }, { "type": "ExportDeclaration", "span": { "start": 195, "end": 240, "ctxt": 0 }, "declaration": { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 211, "end": 217, "ctxt": 0 }, "value": "backup", "optional": false }, "declare": false, "params": [], "decorators": [], "span": { "start": 202, "end": 240, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 220, "end": 240, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 222, "end": 238, "ctxt": 0 }, "argument": { "type": "StringLiteral", "span": { "start": 229, "end": 237, "ctxt": 0 }, "value": "backup", "raw": "\"backup\"" } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": null } }, { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 278, "end": 281, "ctxt": 0 }, "value": "bar", "optional": false }, "declare": true, "params": [], "decorators": [], "span": { "start": 261, "end": 293, "ctxt": 0 }, "body": null, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 283, "end": 292, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 285, "end": 292, "ctxt": 0 }, "kind": "boolean" } } }, { "type": "VariableDeclaration", "span": { "start": 294, "end": 336, "ctxt": 0 }, "kind": "const", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 300, "end": 335, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 300, "end": 307, "ctxt": 0 }, "value": "specify", "optional": false, "typeAnnotation": null }, "init": { "type": "ConditionalExpression", "span": { "start": 310, "end": 335, "ctxt": 0 }, "test": { "type": "CallExpression", "span": { "start": 310, "end": 315, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 310, "end": 313, "ctxt": 0 }, "value": "bar", "optional": false }, "arguments": [], "typeArguments": null }, "consequent": { "type": "StringLiteral", "span": { "start": 318, "end": 323, "ctxt": 0 }, "value": "./0", "raw": "\"./0\"" }, "alternate": { "type": "Identifier", "span": { "start": 326, "end": 335, "ctxt": 0 }, "value": "undefined", "optional": false } }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 337, "end": 368, "ctxt": 0 }, "kind": "let", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 341, "end": 367, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 341, "end": 349, "ctxt": 0 }, "value": "myModule", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 352, "end": 367, "ctxt": 0 }, "callee": { "type": "Import", "span": { "start": 352, "end": 358, "ctxt": 0 } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 359, "end": 366, "ctxt": 0 }, "value": "specify", "optional": false } } ], "typeArguments": null }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 369, "end": 403, "ctxt": 0 }, "kind": "let", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 373, "end": 402, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 373, "end": 382, "ctxt": 0 }, "value": "myModule1", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 385, "end": 402, "ctxt": 0 }, "callee": { "type": "Import", "span": { "start": 385, "end": 391, "ctxt": 0 } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 392, "end": 401, "ctxt": 0 }, "value": "undefined", "optional": false } } ], "typeArguments": null }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 404, "end": 449, "ctxt": 0 }, "kind": "let", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 408, "end": 448, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 408, "end": 417, "ctxt": 0 }, "value": "myModule2", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 420, "end": 448, "ctxt": 0 }, "callee": { "type": "Import", "span": { "start": 420, "end": 426, "ctxt": 0 } }, "arguments": [ { "spread": null, "expression": { "type": "ConditionalExpression", "span": { "start": 427, "end": 447, "ctxt": 0 }, "test": { "type": "CallExpression", "span": { "start": 427, "end": 432, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 427, "end": 430, "ctxt": 0 }, "value": "bar", "optional": false }, "arguments": [], "typeArguments": null }, "consequent": { "type": "StringLiteral", "span": { "start": 435, "end": 440, "ctxt": 0 }, "value": "./1", "raw": "\"./1\"" }, "alternate": { "type": "NullLiteral", "span": { "start": 443, "end": 447, "ctxt": 0 } } } } ], "typeArguments": null }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 450, "end": 479, "ctxt": 0 }, "kind": "let", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 454, "end": 478, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 454, "end": 463, "ctxt": 0 }, "value": "myModule3", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 466, "end": 478, "ctxt": 0 }, "callee": { "type": "Import", "span": { "start": 466, "end": 472, "ctxt": 0 } }, "arguments": [ { "spread": null, "expression": { "type": "NullLiteral", "span": { "start": 473, "end": 477, "ctxt": 0 } } } ], "typeArguments": null }, "definite": false } ] } ], "interpreter": null }