swc/crates/swc_ecma_parser/tests/tsc/constEnum4.json
2022-02-04 17:08:38 +09:00

109 lines
2.1 KiB
JSON

{
"type": "Script",
"span": {
"start": 0,
"end": 86,
"ctxt": 0
},
"body": [
{
"type": "IfStatement",
"span": {
"start": 0,
"end": 86,
"ctxt": 0
},
"test": {
"type": "NumericLiteral",
"span": {
"start": 4,
"end": 5,
"ctxt": 0
},
"value": 1.0
},
"consequent": {
"type": "TsEnumDeclaration",
"span": {
"start": 11,
"end": 27,
"ctxt": 0
},
"declare": false,
"isConst": true,
"id": {
"type": "Identifier",
"span": {
"start": 22,
"end": 23,
"ctxt": 0
},
"value": "A",
"optional": false
},
"members": []
},
"alternate": {
"type": "IfStatement",
"span": {
"start": 33,
"end": 86,
"ctxt": 0
},
"test": {
"type": "NumericLiteral",
"span": {
"start": 37,
"end": 38,
"ctxt": 0
},
"value": 2.0
},
"consequent": {
"type": "TsEnumDeclaration",
"span": {
"start": 44,
"end": 60,
"ctxt": 0
},
"declare": false,
"isConst": true,
"id": {
"type": "Identifier",
"span": {
"start": 55,
"end": 56,
"ctxt": 0
},
"value": "B",
"optional": false
},
"members": []
},
"alternate": {
"type": "TsEnumDeclaration",
"span": {
"start": 70,
"end": 86,
"ctxt": 0
},
"declare": false,
"isConst": true,
"id": {
"type": "Identifier",
"span": {
"start": 81,
"end": 82,
"ctxt": 0
},
"value": "C",
"optional": false
},
"members": []
}
}
}
],
"interpreter": null
}