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

167 lines
3.8 KiB
JSON

{
"type": "Module",
"span": {
"start": 36,
"end": 125,
"ctxt": 0
},
"body": [
{
"type": "ExportDeclaration",
"span": {
"start": 36,
"end": 73,
"ctxt": 0
},
"declaration": {
"type": "TsModuleDeclaration",
"span": {
"start": 43,
"end": 73,
"ctxt": 0
},
"declare": false,
"global": false,
"id": {
"type": "Identifier",
"span": {
"start": 53,
"end": 54,
"ctxt": 0
},
"value": "N",
"optional": false
},
"body": {
"type": "TsModuleBlock",
"span": {
"start": 55,
"end": 73,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 61,
"end": 71,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 65,
"end": 70,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 65,
"end": 66,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "NumericLiteral",
"span": {
"start": 69,
"end": 70,
"ctxt": 0
},
"value": 0.0
},
"definite": false
}
]
}
]
}
}
},
{
"type": "ExportDeclaration",
"span": {
"start": 75,
"end": 125,
"ctxt": 0
},
"declaration": {
"type": "TsModuleDeclaration",
"span": {
"start": 82,
"end": 125,
"ctxt": 0
},
"declare": false,
"global": false,
"id": {
"type": "Identifier",
"span": {
"start": 92,
"end": 94,
"ctxt": 0
},
"value": "N2",
"optional": false
},
"body": {
"type": "TsModuleBlock",
"span": {
"start": 95,
"end": 125,
"ctxt": 0
},
"body": [
{
"type": "ExportDeclaration",
"span": {
"start": 101,
"end": 123,
"ctxt": 0
},
"declaration": {
"type": "TsInterfaceDeclaration",
"span": {
"start": 108,
"end": 123,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 118,
"end": 119,
"ctxt": 0
},
"value": "I",
"optional": false
},
"declare": false,
"typeParams": null,
"extends": [],
"body": {
"type": "TsInterfaceBody",
"span": {
"start": 120,
"end": 123,
"ctxt": 0
},
"body": []
}
}
}
]
}
}
}
],
"interpreter": null
}