swc/crates/swc_ecma_parser/tests/tsc/exportNamespace3.json
Donny/강동윤 4d3fcb86e4
feat(es/ast): Support import attributes proposal (#7868)
**Related issue:**

 - Closes #7179
2023-08-28 00:29:45 +00:00

216 lines
4.3 KiB
JSON

{
"type": "Module",
"span": {
"start": 20,
"end": 189,
"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,
"with": null
},
{
"type": "ExportNamedDeclaration",
"span": {
"start": 108,
"end": 133,
"ctxt": 0
},
"specifiers": [
{
"type": "ExportNamespaceSpecifier",
"span": {
"start": 115,
"end": 121,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 120,
"end": 121,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
],
"source": {
"type": "StringLiteral",
"span": {
"start": 127,
"end": 132,
"ctxt": 0
},
"value": "./b",
"raw": "'./b'"
},
"typeOnly": false,
"with": null
},
{
"type": "ImportDeclaration",
"span": {
"start": 154,
"end": 178,
"ctxt": 0
},
"specifiers": [
{
"type": "ImportSpecifier",
"span": {
"start": 163,
"end": 164,
"ctxt": 0
},
"local": {
"type": "Identifier",
"span": {
"start": 163,
"end": 164,
"ctxt": 0
},
"value": "a",
"optional": false
},
"imported": null,
"isTypeOnly": false
}
],
"source": {
"type": "StringLiteral",
"span": {
"start": 172,
"end": 177,
"ctxt": 0
},
"value": "./c",
"raw": "'./c'"
},
"typeOnly": false,
"with": null
},
{
"type": "ExpressionStatement",
"span": {
"start": 179,
"end": 189,
"ctxt": 0
},
"expression": {
"type": "NewExpression",
"span": {
"start": 179,
"end": 188,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 183,
"end": 186,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 183,
"end": 184,
"ctxt": 0
},
"value": "a",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 185,
"end": 186,
"ctxt": 0
},
"value": "A",
"optional": false
}
},
"arguments": [],
"typeArguments": null
}
}
],
"interpreter": null
}