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

87 lines
1.7 KiB
JSON

{
"type": "Module",
"span": {
"start": 76,
"end": 111,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 76,
"end": 90,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 82,
"end": 89,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 82,
"end": 85,
"ctxt": 0
},
"value": "foo",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "NumericLiteral",
"span": {
"start": 88,
"end": 89,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
},
"definite": false
}
]
},
{
"type": "ExportNamedDeclaration",
"span": {
"start": 91,
"end": 111,
"ctxt": 0
},
"specifiers": [
{
"type": "ExportSpecifier",
"span": {
"start": 100,
"end": 108,
"ctxt": 0
},
"orig": {
"type": "Identifier",
"span": {
"start": 105,
"end": 108,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"exported": null,
"isTypeOnly": true
}
],
"source": null,
"typeOnly": false,
"asserts": null
}
],
"interpreter": null
}