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

98 lines
1.8 KiB
JSON

{
"type": "Module",
"span": {
"start": 37,
"end": 103,
"ctxt": 0
},
"body": [
{
"type": "TsImportEqualsDeclaration",
"span": {
"start": 37,
"end": 63,
"ctxt": 0
},
"declare": false,
"isExport": false,
"isTypeOnly": false,
"id": {
"type": "Identifier",
"span": {
"start": 44,
"end": 45,
"ctxt": 0
},
"value": "i",
"optional": false
},
"moduleRef": {
"type": "TsExternalModuleReference",
"span": {
"start": 48,
"end": 62,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 56,
"end": 61,
"ctxt": 0
},
"value": "mod",
"raw": "\"mod\""
}
}
},
{
"type": "TsModuleDeclaration",
"span": {
"start": 76,
"end": 91,
"ctxt": 0
},
"declare": false,
"global": false,
"id": {
"type": "Identifier",
"span": {
"start": 86,
"end": 87,
"ctxt": 0
},
"value": "N",
"optional": false
},
"body": {
"type": "TsModuleBlock",
"span": {
"start": 88,
"end": 91,
"ctxt": 0
},
"body": []
}
},
{
"type": "TsExportAssignment",
"span": {
"start": 92,
"end": 103,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 101,
"end": 102,
"ctxt": 0
},
"value": "N",
"optional": false
}
}
],
"interpreter": null
}