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

207 lines
4.4 KiB
JSON

{
"type": "Module",
"span": {
"start": 113,
"end": 273,
"ctxt": 0
},
"body": [
{
"type": "ExportDefaultDeclaration",
"span": {
"start": 113,
"end": 140,
"ctxt": 0
},
"decl": {
"type": "ClassExpression",
"identifier": {
"type": "Identifier",
"span": {
"start": 134,
"end": 137,
"ctxt": 0
},
"value": "Foo",
"optional": false
},
"span": {
"start": 128,
"end": 140,
"ctxt": 0
},
"decorators": [],
"body": [],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
}
},
{
"type": "ImportDeclaration",
"span": {
"start": 165,
"end": 203,
"ctxt": 0
},
"specifiers": [
{
"type": "ImportSpecifier",
"span": {
"start": 173,
"end": 188,
"ctxt": 0
},
"local": {
"type": "Identifier",
"span": {
"start": 184,
"end": 188,
"ctxt": 0
},
"value": "Fooa",
"optional": false
},
"imported": {
"type": "Identifier",
"span": {
"start": 173,
"end": 180,
"ctxt": 0
},
"value": "default",
"optional": false
},
"isTypeOnly": false
}
],
"source": {
"type": "StringLiteral",
"span": {
"start": 195,
"end": 202,
"ctxt": 0
},
"value": "./cls",
"raw": "\"./cls\""
},
"typeOnly": false,
"asserts": null
},
{
"type": "ExportDeclaration",
"span": {
"start": 205,
"end": 233,
"ctxt": 0
},
"declaration": {
"type": "VariableDeclaration",
"span": {
"start": 212,
"end": 233,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 218,
"end": 232,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 218,
"end": 219,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "NewExpression",
"span": {
"start": 222,
"end": 232,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 226,
"end": 230,
"ctxt": 0
},
"value": "Fooa",
"optional": false
},
"arguments": [],
"typeArguments": null
},
"definite": false
}
]
}
},
{
"type": "ExportNamedDeclaration",
"span": {
"start": 235,
"end": 273,
"ctxt": 0
},
"specifiers": [
{
"type": "ExportSpecifier",
"span": {
"start": 243,
"end": 258,
"ctxt": 0
},
"orig": {
"type": "Identifier",
"span": {
"start": 243,
"end": 250,
"ctxt": 0
},
"value": "default",
"optional": false
},
"exported": {
"type": "Identifier",
"span": {
"start": 254,
"end": 258,
"ctxt": 0
},
"value": "Foob",
"optional": false
},
"isTypeOnly": false
}
],
"source": {
"type": "StringLiteral",
"span": {
"start": 265,
"end": 272,
"ctxt": 0
},
"value": "./cls",
"raw": "\"./cls\""
},
"typeOnly": false,
"asserts": null
}
],
"interpreter": null
}