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

192 lines
4.0 KiB
JSON
Raw Normal View History

{
"type": "Module",
"span": {
"start": 39,
"end": 154,
"ctxt": 0
},
"body": [
{
"type": "ExportDefaultDeclaration",
"span": {
"start": 39,
"end": 72,
"ctxt": 0
},
"decl": {
"type": "FunctionExpression",
"identifier": {
"type": "Identifier",
"span": {
"start": 63,
"end": 66,
"ctxt": 0
},
"value": "Foo",
"optional": false
},
"params": [],
"decorators": [],
"span": {
"start": 54,
"end": 72,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 69,
"end": 72,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
}
},
{
"type": "TsModuleDeclaration",
"span": {
"start": 74,
"end": 109,
"ctxt": 0
},
"declare": false,
"global": false,
"id": {
"type": "Identifier",
"span": {
"start": 84,
"end": 87,
"ctxt": 0
},
"value": "Foo",
"optional": false
},
"body": {
"type": "TsModuleBlock",
"span": {
"start": 88,
"end": 109,
"ctxt": 0
},
"body": [
{
"type": "ExportDeclaration",
"span": {
"start": 94,
"end": 107,
"ctxt": 0
},
"declaration": {
"type": "VariableDeclaration",
"span": {
"start": 101,
"end": 107,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 105,
"end": 106,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 105,
"end": 106,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
},
"init": null,
"definite": false
}
]
}
}
]
}
},
{
"type": "TsInterfaceDeclaration",
"span": {
"start": 111,
"end": 128,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 121,
"end": 124,
"ctxt": 0
},
"value": "Foo",
"optional": false
},
"declare": false,
"typeParams": null,
"extends": [],
"body": {
"type": "TsInterfaceBody",
"span": {
"start": 125,
"end": 128,
"ctxt": 0
},
"body": []
}
},
{
"type": "ExportDeclaration",
"span": {
"start": 130,
"end": 154,
"ctxt": 0
},
"declaration": {
"type": "TsInterfaceDeclaration",
"span": {
"start": 137,
"end": 154,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 147,
"end": 150,
"ctxt": 0
},
"value": "Foo",
"optional": false
},
"declare": false,
"typeParams": null,
"extends": [],
"body": {
"type": "TsInterfaceBody",
"span": {
"start": 151,
"end": 154,
"ctxt": 0
},
"body": []
}
}
}
],
"interpreter": null
}