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

162 lines
3.2 KiB
JSON

{
"type": "Module",
"span": {
"start": 59,
"end": 187,
"ctxt": 0
},
"body": [
{
"type": "ExportDefaultDeclaration",
"span": {
"start": 59,
"end": 93,
"ctxt": 0
},
"decl": {
"type": "FunctionExpression",
"identifier": {
"type": "Identifier",
"span": {
"start": 83,
"end": 86,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"params": [],
"decorators": [],
"span": {
"start": 74,
"end": 93,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 89,
"end": 93,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
}
},
{
"type": "ExportDefaultDeclaration",
"span": {
"start": 95,
"end": 129,
"ctxt": 0
},
"decl": {
"type": "FunctionExpression",
"identifier": {
"type": "Identifier",
"span": {
"start": 119,
"end": 122,
"ctxt": 0
},
"value": "bar",
"optional": false
},
"params": [],
"decorators": [],
"span": {
"start": 110,
"end": 129,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 125,
"end": 129,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
}
},
{
"type": "ImportDeclaration",
"span": {
"start": 151,
"end": 176,
"ctxt": 0
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"span": {
"start": 158,
"end": 164,
"ctxt": 0
},
"local": {
"type": "Identifier",
"span": {
"start": 158,
"end": 164,
"ctxt": 0
},
"value": "Entity",
"optional": false
}
}
],
"source": {
"type": "StringLiteral",
"span": {
"start": 170,
"end": 176,
"ctxt": 0
},
"value": "./m1",
"raw": "\"./m1\""
},
"typeOnly": false,
"asserts": null
},
{
"type": "ExpressionStatement",
"span": {
"start": 178,
"end": 187,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 178,
"end": 186,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 178,
"end": 184,
"ctxt": 0
},
"value": "Entity",
"optional": false
},
"arguments": [],
"typeArguments": null
}
}
],
"interpreter": null
}