mirror of
https://github.com/swc-project/swc.git
synced 2024-12-19 19:52:21 +03:00
109 lines
2.1 KiB
JSON
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
|
|
}
|