{ "type": "Module", "span": { "start": 216, "end": 1074, "ctxt": 0 }, "body": [ { "type": "VariableDeclaration", "span": { "start": 216, "end": 259, "ctxt": 0 }, "kind": "const", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 222, "end": 258, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 222, "end": 229, "ctxt": 0 }, "value": "myTypes", "optional": false, "typeAnnotation": null }, "init": { "type": "ObjectExpression", "span": { "start": 232, "end": 258, "ctxt": 0 }, "properties": [] }, "definite": false } ] }, { "type": "ExportNamedDeclaration", "span": { "start": 516, "end": 533, "ctxt": 0 }, "specifiers": [ { "type": "ExportSpecifier", "span": { "start": 524, "end": 531, "ctxt": 0 }, "orig": { "type": "Identifier", "span": { "start": 524, "end": 531, "ctxt": 0 }, "value": "myTypes", "optional": false }, "exported": null, "isTypeOnly": false } ], "source": null, "typeOnly": false, "asserts": null }, { "type": "ImportDeclaration", "span": { "start": 557, "end": 591, "ctxt": 0 }, "specifiers": [ { "type": "ImportSpecifier", "span": { "start": 565, "end": 572, "ctxt": 0 }, "local": { "type": "Identifier", "span": { "start": 565, "end": 572, "ctxt": 0 }, "value": "myTypes", "optional": false }, "imported": null, "isTypeOnly": false } ], "source": { "type": "StringLiteral", "span": { "start": 579, "end": 590, "ctxt": 0 }, "value": "./file.js", "hasEscape": false, "kind": { "type": "normal", "containsQuote": true } }, "typeOnly": false, "asserts": null }, { "type": "VariableDeclaration", "span": { "start": 666, "end": 713, "ctxt": 0 }, "kind": "const", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 672, "end": 712, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 672, "end": 683, "ctxt": 0 }, "value": "testFnTypes", "optional": false, "typeAnnotation": null }, "init": { "type": "ObjectExpression", "span": { "start": 686, "end": 712, "ctxt": 0 }, "properties": [] }, "definite": false } ] }, { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 923, "end": 929, "ctxt": 0 }, "value": "testFn", "optional": false }, "declare": false, "params": [ { "type": "Parameter", "span": { "start": 930, "end": 935, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 930, "end": 935, "ctxt": 0 }, "value": "input", "optional": false, "typeAnnotation": null } } ], "decorators": [], "span": { "start": 914, "end": 1043, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 937, "end": 1043, "ctxt": 0 }, "stmts": [ { "type": "IfStatement", "span": { "start": 943, "end": 1041, "ctxt": 0 }, "test": { "type": "BinaryExpression", "span": { "start": 947, "end": 972, "ctxt": 0 }, "operator": "===", "left": { "type": "UnaryExpression", "span": { "start": 947, "end": 959, "ctxt": 0 }, "operator": "typeof", "argument": { "type": "Identifier", "span": { "start": 954, "end": 959, "ctxt": 0 }, "value": "input", "optional": false } }, "right": { "type": "StringLiteral", "span": { "start": 964, "end": 972, "ctxt": 0 }, "value": "number", "hasEscape": false, "kind": { "type": "normal", "containsQuote": true } } }, "consequent": { "type": "BlockStatement", "span": { "start": 974, "end": 1007, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 984, "end": 1001, "ctxt": 0 }, "argument": { "type": "BinaryExpression", "span": { "start": 991, "end": 1000, "ctxt": 0 }, "operator": "*", "left": { "type": "NumericLiteral", "span": { "start": 991, "end": 992, "ctxt": 0 }, "value": 2.0 }, "right": { "type": "Identifier", "span": { "start": 995, "end": 1000, "ctxt": 0 }, "value": "input", "optional": false } } } ] }, "alternate": { "type": "BlockStatement", "span": { "start": 1013, "end": 1041, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 1023, "end": 1035, "ctxt": 0 }, "argument": { "type": "NullLiteral", "span": { "start": 1030, "end": 1034, "ctxt": 0 } } } ] } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, { "type": "ExportNamedDeclaration", "span": { "start": 1045, "end": 1074, "ctxt": 0 }, "specifiers": [ { "type": "ExportSpecifier", "span": { "start": 1053, "end": 1059, "ctxt": 0 }, "orig": { "type": "Identifier", "span": { "start": 1053, "end": 1059, "ctxt": 0 }, "value": "testFn", "optional": false }, "exported": null, "isTypeOnly": false }, { "type": "ExportSpecifier", "span": { "start": 1061, "end": 1072, "ctxt": 0 }, "orig": { "type": "Identifier", "span": { "start": 1061, "end": 1072, "ctxt": 0 }, "value": "testFnTypes", "optional": false }, "exported": null, "isTypeOnly": false } ], "source": null, "typeOnly": false, "asserts": null } ], "interpreter": null }