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

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

180 lines
3.6 KiB
JSON

{
"type": "Module",
"span": {
"start": 39,
"end": 167,
"ctxt": 0
},
"body": [
{
"type": "ImportDeclaration",
"span": {
"start": 39,
"end": 68,
"ctxt": 0
},
"specifiers": [
{
"type": "ImportSpecifier",
"span": {
"start": 53,
"end": 54,
"ctxt": 0
},
"local": {
"type": "Identifier",
"span": {
"start": 53,
"end": 54,
"ctxt": 0
},
"value": "A",
"optional": false
},
"imported": null,
"isTypeOnly": false
}
],
"source": {
"type": "StringLiteral",
"span": {
"start": 62,
"end": 67,
"ctxt": 0
},
"value": "./b",
"raw": "'./b'"
},
"typeOnly": true,
"with": null
},
{
"type": "ExportNamedDeclaration",
"span": {
"start": 69,
"end": 92,
"ctxt": 0
},
"specifiers": [
{
"type": "ExportSpecifier",
"span": {
"start": 83,
"end": 89,
"ctxt": 0
},
"orig": {
"type": "Identifier",
"span": {
"start": 83,
"end": 84,
"ctxt": 0
},
"value": "A",
"optional": false
},
"exported": {
"type": "Identifier",
"span": {
"start": 88,
"end": 89,
"ctxt": 0
},
"value": "B",
"optional": false
},
"isTypeOnly": false
}
],
"source": null,
"typeOnly": true,
"with": null
},
{
"type": "ImportDeclaration",
"span": {
"start": 114,
"end": 143,
"ctxt": 0
},
"specifiers": [
{
"type": "ImportSpecifier",
"span": {
"start": 128,
"end": 129,
"ctxt": 0
},
"local": {
"type": "Identifier",
"span": {
"start": 128,
"end": 129,
"ctxt": 0
},
"value": "B",
"optional": false
},
"imported": null,
"isTypeOnly": false
}
],
"source": {
"type": "StringLiteral",
"span": {
"start": 137,
"end": 142,
"ctxt": 0
},
"value": "./a",
"raw": "'./a'"
},
"typeOnly": true,
"with": null
},
{
"type": "ExportNamedDeclaration",
"span": {
"start": 144,
"end": 167,
"ctxt": 0
},
"specifiers": [
{
"type": "ExportSpecifier",
"span": {
"start": 158,
"end": 164,
"ctxt": 0
},
"orig": {
"type": "Identifier",
"span": {
"start": 158,
"end": 159,
"ctxt": 0
},
"value": "B",
"optional": false
},
"exported": {
"type": "Identifier",
"span": {
"start": 163,
"end": 164,
"ctxt": 0
},
"value": "A",
"optional": false
},
"isTypeOnly": false
}
],
"source": null,
"typeOnly": true,
"with": null
}
],
"interpreter": null
}