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

96 lines
2.0 KiB
JSON

{
"type": "Module",
"span": {
"start": 4,
"end": 71,
"ctxt": 0
},
"body": [
{
"type": "ExportDeclaration",
"span": {
"start": 4,
"end": 71,
"ctxt": 0
},
"declaration": {
"type": "TsEnumDeclaration",
"span": {
"start": 11,
"end": 71,
"ctxt": 0
},
"declare": false,
"isConst": false,
"id": {
"type": "Identifier",
"span": {
"start": 16,
"end": 29,
"ctxt": 0
},
"value": "CodeGenTarget",
"optional": false
},
"members": [
{
"type": "TsEnumMember",
"span": {
"start": 40,
"end": 47,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 40,
"end": 43,
"ctxt": 0
},
"value": "ES3",
"optional": false
},
"init": {
"type": "NumericLiteral",
"span": {
"start": 46,
"end": 47,
"ctxt": 0
},
"value": 0.0
}
},
{
"type": "TsEnumMember",
"span": {
"start": 57,
"end": 64,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 57,
"end": 60,
"ctxt": 0
},
"value": "ES5",
"optional": false
},
"init": {
"type": "NumericLiteral",
"span": {
"start": 63,
"end": 64,
"ctxt": 0
},
"value": 1.0
}
}
]
}
}
],
"interpreter": null
}