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

198 lines
4.0 KiB
JSON
Raw Normal View History

{
"type": "Module",
"span": {
"start": 38,
"end": 156,
"ctxt": 0
},
"body": [
{
"type": "ImportDeclaration",
"span": {
"start": 38,
"end": 67,
"ctxt": 0
},
"specifiers": [
{
"type": "ImportSpecifier",
"span": {
"start": 52,
"end": 53,
"ctxt": 0
},
"local": {
"type": "Identifier",
"span": {
"start": 52,
"end": 53,
"ctxt": 0
},
"value": "B",
"optional": false
},
"imported": null,
"isTypeOnly": false
}
],
"source": {
"type": "StringLiteral",
"span": {
"start": 61,
"end": 66,
"ctxt": 0
},
"value": "./b",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
},
"typeOnly": true,
"asserts": null
},
{
"type": "ExportDeclaration",
"span": {
"start": 68,
"end": 86,
"ctxt": 0
},
"declaration": {
"type": "TsTypeAliasDeclaration",
"span": {
"start": 75,
"end": 86,
"ctxt": 0
},
"declare": false,
"id": {
"type": "Identifier",
"span": {
"start": 80,
"end": 81,
"ctxt": 0
},
"value": "A",
"optional": false
},
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 84,
"end": 85,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 84,
"end": 85,
"ctxt": 0
},
"value": "B",
"optional": false
},
"typeParams": null
}
}
},
{
"type": "ImportDeclaration",
"span": {
"start": 108,
"end": 137,
"ctxt": 0
},
"specifiers": [
{
"type": "ImportSpecifier",
"span": {
"start": 122,
"end": 123,
"ctxt": 0
},
"local": {
"type": "Identifier",
"span": {
"start": 122,
"end": 123,
"ctxt": 0
},
"value": "A",
"optional": false
},
"imported": null,
"isTypeOnly": false
}
],
"source": {
"type": "StringLiteral",
"span": {
"start": 131,
"end": 136,
"ctxt": 0
},
"value": "./a",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
},
"typeOnly": true,
"asserts": null
},
{
"type": "ExportDeclaration",
"span": {
"start": 138,
"end": 156,
"ctxt": 0
},
"declaration": {
"type": "TsTypeAliasDeclaration",
"span": {
"start": 145,
"end": 156,
"ctxt": 0
},
"declare": false,
"id": {
"type": "Identifier",
"span": {
"start": 150,
"end": 151,
"ctxt": 0
},
"value": "B",
"optional": false
},
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 154,
"end": 155,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 154,
"end": 155,
"ctxt": 0
},
"value": "A",
"optional": false
},
"typeParams": null
}
}
}
],
"interpreter": null
}