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

205 lines
4.4 KiB
JSON

{
"type": "Module",
"span": {
"start": 17,
"end": 126,
"ctxt": 0
},
"body": [
{
"type": "ExportDeclaration",
"span": {
"start": 17,
"end": 49,
"ctxt": 0
},
"declaration": {
"type": "TsEnumDeclaration",
"span": {
"start": 24,
"end": 49,
"ctxt": 0
},
"declare": false,
"isConst": false,
"id": {
"type": "Identifier",
"span": {
"start": 29,
"end": 36,
"ctxt": 0
},
"value": "Animals",
"optional": false
},
"members": [
{
"type": "TsEnumMember",
"span": {
"start": 40,
"end": 47,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 40,
"end": 43,
"ctxt": 0
},
"value": "Cat",
"optional": false
},
"init": {
"type": "NumericLiteral",
"span": {
"start": 46,
"end": 47,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
]
}
},
{
"type": "ExportDeclaration",
"span": {
"start": 50,
"end": 82,
"ctxt": 0
},
"declaration": {
"type": "TsEnumDeclaration",
"span": {
"start": 57,
"end": 82,
"ctxt": 0
},
"declare": false,
"isConst": false,
"id": {
"type": "Identifier",
"span": {
"start": 62,
"end": 69,
"ctxt": 0
},
"value": "Animals",
"optional": false
},
"members": [
{
"type": "TsEnumMember",
"span": {
"start": 73,
"end": 80,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 73,
"end": 76,
"ctxt": 0
},
"value": "Dog",
"optional": false
},
"init": {
"type": "NumericLiteral",
"span": {
"start": 79,
"end": 80,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
}
}
]
}
},
{
"type": "ExportDeclaration",
"span": {
"start": 83,
"end": 126,
"ctxt": 0
},
"declaration": {
"type": "TsEnumDeclaration",
"span": {
"start": 90,
"end": 126,
"ctxt": 0
},
"declare": false,
"isConst": false,
"id": {
"type": "Identifier",
"span": {
"start": 95,
"end": 102,
"ctxt": 0
},
"value": "Animals",
"optional": false
},
"members": [
{
"type": "TsEnumMember",
"span": {
"start": 106,
"end": 124,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 106,
"end": 112,
"ctxt": 0
},
"value": "CatDog",
"optional": false
},
"init": {
"type": "BinaryExpression",
"span": {
"start": 115,
"end": 124,
"ctxt": 0
},
"operator": "|",
"left": {
"type": "Identifier",
"span": {
"start": 115,
"end": 118,
"ctxt": 0
},
"value": "Cat",
"optional": false
},
"right": {
"type": "Identifier",
"span": {
"start": 121,
"end": 124,
"ctxt": 0
},
"value": "Dog",
"optional": false
}
}
}
]
}
}
],
"interpreter": null
}