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

90 lines
1.8 KiB
JSON

{
"type": "Module",
"span": {
"start": 0,
"end": 76,
"ctxt": 0
},
"body": [
{
"type": "ExportDefaultExpression",
"span": {
"start": 0,
"end": 48,
"ctxt": 0
},
"expression": {
"type": "ObjectExpression",
"span": {
"start": 15,
"end": 47,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 21,
"end": 25,
"ctxt": 0
},
"value": "uhoh",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 27,
"end": 44,
"ctxt": 0
},
"value": "another default",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
]
}
},
{
"type": "ExportDefaultDeclaration",
"span": {
"start": 50,
"end": 76,
"ctxt": 0
},
"decl": {
"type": "ClassExpression",
"identifier": {
"type": "Identifier",
"span": {
"start": 71,
"end": 72,
"ctxt": 0
},
"value": "C",
"optional": false
},
"span": {
"start": 65,
"end": 76,
"ctxt": 0
},
"decorators": [],
"body": [],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
}
}
],
"interpreter": null
}