swc/crates/swc_ecma_parser/tests/tsc/multipleDefaultExports02.json
2022-03-22 07:54:08 +00:00

162 lines
3.2 KiB
JSON

{
"type": "Module",
"span": {
"start": 58,
"end": 186,
"ctxt": 0
},
"body": [
{
"type": "ExportDefaultDeclaration",
"span": {
"start": 58,
"end": 92,
"ctxt": 0
},
"decl": {
"type": "FunctionExpression",
"identifier": {
"type": "Identifier",
"span": {
"start": 82,
"end": 85,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"params": [],
"decorators": [],
"span": {
"start": 73,
"end": 92,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 88,
"end": 92,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
}
},
{
"type": "ExportDefaultDeclaration",
"span": {
"start": 94,
"end": 128,
"ctxt": 0
},
"decl": {
"type": "FunctionExpression",
"identifier": {
"type": "Identifier",
"span": {
"start": 118,
"end": 121,
"ctxt": 0
},
"value": "bar",
"optional": false
},
"params": [],
"decorators": [],
"span": {
"start": 109,
"end": 128,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 124,
"end": 128,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
}
},
{
"type": "ImportDeclaration",
"span": {
"start": 150,
"end": 175,
"ctxt": 0
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"span": {
"start": 157,
"end": 163,
"ctxt": 0
},
"local": {
"type": "Identifier",
"span": {
"start": 157,
"end": 163,
"ctxt": 0
},
"value": "Entity",
"optional": false
}
}
],
"source": {
"type": "StringLiteral",
"span": {
"start": 169,
"end": 175,
"ctxt": 0
},
"value": "./m1",
"raw": "\"./m1\""
},
"typeOnly": false,
"asserts": null
},
{
"type": "ExpressionStatement",
"span": {
"start": 177,
"end": 186,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 177,
"end": 185,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 177,
"end": 183,
"ctxt": 0
},
"value": "Entity",
"optional": false
},
"arguments": [],
"typeArguments": null
}
}
],
"interpreter": null
}