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

177 lines
3.4 KiB
JSON

{
"type": "Module",
"span": {
"start": 20,
"end": 182,
"ctxt": 0
},
"body": [
{
"type": "ExportDeclaration",
"span": {
"start": 20,
"end": 37,
"ctxt": 0
},
"declaration": {
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 33,
"end": 34,
"ctxt": 0
},
"value": "A",
"optional": false
},
"declare": false,
"span": {
"start": 27,
"end": 37,
"ctxt": 0
},
"decorators": [],
"body": [],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
}
},
{
"type": "ExportNamedDeclaration",
"span": {
"start": 58,
"end": 87,
"ctxt": 0
},
"specifiers": [
{
"type": "ExportSpecifier",
"span": {
"start": 72,
"end": 73,
"ctxt": 0
},
"orig": {
"type": "Identifier",
"span": {
"start": 72,
"end": 73,
"ctxt": 0
},
"value": "A",
"optional": false
},
"exported": null,
"isTypeOnly": false
}
],
"source": {
"type": "StringLiteral",
"span": {
"start": 81,
"end": 86,
"ctxt": 0
},
"value": "./a",
"raw": "'./a'"
},
"typeOnly": true,
"asserts": null
},
{
"type": "ExportAllDeclaration",
"span": {
"start": 108,
"end": 128,
"ctxt": 0
},
"source": {
"type": "StringLiteral",
"span": {
"start": 122,
"end": 127,
"ctxt": 0
},
"value": "./b",
"raw": "'./b'"
},
"asserts": null
},
{
"type": "ImportDeclaration",
"span": {
"start": 149,
"end": 173,
"ctxt": 0
},
"specifiers": [
{
"type": "ImportSpecifier",
"span": {
"start": 158,
"end": 159,
"ctxt": 0
},
"local": {
"type": "Identifier",
"span": {
"start": 158,
"end": 159,
"ctxt": 0
},
"value": "A",
"optional": false
},
"imported": null,
"isTypeOnly": false
}
],
"source": {
"type": "StringLiteral",
"span": {
"start": 167,
"end": 172,
"ctxt": 0
},
"value": "./c",
"raw": "'./c'"
},
"typeOnly": false,
"asserts": null
},
{
"type": "ExpressionStatement",
"span": {
"start": 174,
"end": 182,
"ctxt": 0
},
"expression": {
"type": "NewExpression",
"span": {
"start": 174,
"end": 181,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 178,
"end": 179,
"ctxt": 0
},
"value": "A",
"optional": false
},
"arguments": [],
"typeArguments": null
}
}
],
"interpreter": null
}