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

102 lines
1.9 KiB
JSON

{
"type": "Module",
"span": {
"start": 36,
"end": 102,
"ctxt": 0
},
"body": [
{
"type": "TsImportEqualsDeclaration",
"span": {
"start": 36,
"end": 62,
"ctxt": 0
},
"declare": false,
"isExport": false,
"isTypeOnly": false,
"id": {
"type": "Identifier",
"span": {
"start": 43,
"end": 44,
"ctxt": 0
},
"value": "i",
"optional": false
},
"moduleRef": {
"type": "TsExternalModuleReference",
"span": {
"start": 47,
"end": 61,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 55,
"end": 60,
"ctxt": 0
},
"value": "mod",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
},
{
"type": "TsModuleDeclaration",
"span": {
"start": 75,
"end": 90,
"ctxt": 0
},
"declare": false,
"global": false,
"id": {
"type": "Identifier",
"span": {
"start": 85,
"end": 86,
"ctxt": 0
},
"value": "N",
"optional": false
},
"body": {
"type": "TsModuleBlock",
"span": {
"start": 87,
"end": 90,
"ctxt": 0
},
"body": []
}
},
{
"type": "TsExportAssignment",
"span": {
"start": 91,
"end": 102,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 100,
"end": 101,
"ctxt": 0
},
"value": "N",
"optional": false
}
}
],
"interpreter": null
}