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

86 lines
1.7 KiB
JSON

{
"type": "Module",
"span": {
"start": 0,
"end": 59,
"ctxt": 0
},
"body": [
{
"type": "ExportDefaultDeclaration",
"span": {
"start": 0,
"end": 33,
"ctxt": 0
},
"decl": {
"type": "FunctionExpression",
"identifier": {
"type": "Identifier",
"span": {
"start": 24,
"end": 27,
"ctxt": 0
},
"value": "bar",
"optional": false
},
"params": [],
"decorators": [],
"span": {
"start": 15,
"end": 33,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 30,
"end": 33,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
}
},
{
"type": "ExportDefaultDeclaration",
"span": {
"start": 34,
"end": 59,
"ctxt": 0
},
"decl": {
"type": "ClassExpression",
"identifier": {
"type": "Identifier",
"span": {
"start": 55,
"end": 56,
"ctxt": 0
},
"value": "C",
"optional": false
},
"span": {
"start": 49,
"end": 59,
"ctxt": 0
},
"decorators": [],
"body": [],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
}
}
],
"interpreter": null
}