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

190 lines
3.8 KiB
JSON

{
"type": "Module",
"span": {
"start": 39,
"end": 157,
"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": "B",
"optional": false
},
"imported": null,
"isTypeOnly": false
}
],
"source": {
"type": "StringLiteral",
"span": {
"start": 62,
"end": 67,
"ctxt": 0
},
"value": "./b",
"raw": "'./b'"
},
"typeOnly": true,
"asserts": null
},
{
"type": "ExportDeclaration",
"span": {
"start": 69,
"end": 87,
"ctxt": 0
},
"declaration": {
"type": "TsTypeAliasDeclaration",
"span": {
"start": 76,
"end": 87,
"ctxt": 0
},
"declare": false,
"id": {
"type": "Identifier",
"span": {
"start": 81,
"end": 82,
"ctxt": 0
},
"value": "A",
"optional": false
},
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 85,
"end": 86,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 85,
"end": 86,
"ctxt": 0
},
"value": "B",
"optional": false
},
"typeParams": null
}
}
},
{
"type": "ImportDeclaration",
"span": {
"start": 109,
"end": 138,
"ctxt": 0
},
"specifiers": [
{
"type": "ImportSpecifier",
"span": {
"start": 123,
"end": 124,
"ctxt": 0
},
"local": {
"type": "Identifier",
"span": {
"start": 123,
"end": 124,
"ctxt": 0
},
"value": "A",
"optional": false
},
"imported": null,
"isTypeOnly": false
}
],
"source": {
"type": "StringLiteral",
"span": {
"start": 132,
"end": 137,
"ctxt": 0
},
"value": "./a",
"raw": "'./a'"
},
"typeOnly": true,
"asserts": null
},
{
"type": "ExportDeclaration",
"span": {
"start": 139,
"end": 157,
"ctxt": 0
},
"declaration": {
"type": "TsTypeAliasDeclaration",
"span": {
"start": 146,
"end": 157,
"ctxt": 0
},
"declare": false,
"id": {
"type": "Identifier",
"span": {
"start": 151,
"end": 152,
"ctxt": 0
},
"value": "B",
"optional": false
},
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 155,
"end": 156,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 155,
"end": 156,
"ctxt": 0
},
"value": "A",
"optional": false
},
"typeParams": null
}
}
}
],
"interpreter": null
}