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

98 lines
2.0 KiB
JSON

{
"type": "Module",
"span": {
"start": 5,
"end": 72,
"ctxt": 0
},
"body": [
{
"type": "ExportDeclaration",
"span": {
"start": 5,
"end": 72,
"ctxt": 0
},
"declaration": {
"type": "TsEnumDeclaration",
"span": {
"start": 12,
"end": 72,
"ctxt": 0
},
"declare": false,
"isConst": false,
"id": {
"type": "Identifier",
"span": {
"start": 17,
"end": 30,
"ctxt": 0
},
"value": "CodeGenTarget",
"optional": false
},
"members": [
{
"type": "TsEnumMember",
"span": {
"start": 41,
"end": 48,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 41,
"end": 44,
"ctxt": 0
},
"value": "ES3",
"optional": false
},
"init": {
"type": "NumericLiteral",
"span": {
"start": 47,
"end": 48,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
},
{
"type": "TsEnumMember",
"span": {
"start": 58,
"end": 65,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 58,
"end": 61,
"ctxt": 0
},
"value": "ES5",
"optional": false
},
"init": {
"type": "NumericLiteral",
"span": {
"start": 64,
"end": 65,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
]
}
}
],
"interpreter": null
}