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

163 lines
3.4 KiB
JSON

{
"type": "Module",
"span": {
"start": 68,
"end": 207,
"ctxt": 0
},
"body": [
{
"type": "ExpressionStatement",
"span": {
"start": 68,
"end": 101,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 68,
"end": 100,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 68,
"end": 82,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 68,
"end": 74,
"ctxt": 0
},
"value": "module",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 75,
"end": 82,
"ctxt": 0
},
"value": "exports",
"optional": false
}
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 85,
"end": 100,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 89,
"end": 92,
"ctxt": 0
},
"value": "str",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 94,
"end": 97,
"ctxt": 0
},
"value": "x",
"raw": "'x'"
}
}
]
}
}
},
{
"type": "ImportDeclaration",
"span": {
"start": 135,
"end": 183,
"ctxt": 0
},
"specifiers": [
{
"type": "ImportNamespaceSpecifier",
"span": {
"start": 142,
"end": 158,
"ctxt": 0
},
"local": {
"type": "Identifier",
"span": {
"start": 147,
"end": 158,
"ctxt": 0
},
"value": "tsConstants",
"optional": false
}
}
],
"source": {
"type": "StringLiteral",
"span": {
"start": 164,
"end": 182,
"ctxt": 0
},
"value": "../lib/constants",
"raw": "\"../lib/constants\""
},
"typeOnly": false,
"asserts": null
},
{
"type": "ExportNamedDeclaration",
"span": {
"start": 184,
"end": 207,
"ctxt": 0
},
"specifiers": [
{
"type": "ExportSpecifier",
"span": {
"start": 193,
"end": 204,
"ctxt": 0
},
"orig": {
"type": "Identifier",
"span": {
"start": 193,
"end": 204,
"ctxt": 0
},
"value": "tsConstants",
"optional": false
},
"exported": null,
"isTypeOnly": false
}
],
"source": null,
"typeOnly": false,
"asserts": null
}
],
"interpreter": null
}