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

103 lines
2.0 KiB
JSON

{
"type": "Script",
"span": {
"start": 0,
"end": 26,
"ctxt": 0
},
"body": [
{
"type": "TsEnumDeclaration",
"span": {
"start": 0,
"end": 26,
"ctxt": 0
},
"declare": false,
"isConst": false,
"id": {
"type": "Identifier",
"span": {
"start": 5,
"end": 6,
"ctxt": 0
},
"value": "E",
"optional": false
},
"members": [
{
"type": "TsEnumMember",
"span": {
"start": 11,
"end": 14,
"ctxt": 0
},
"id": {
"type": "StringLiteral",
"span": {
"start": 11,
"end": 14,
"ctxt": 0
},
"value": "A",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
},
"init": null
},
{
"type": "TsEnumMember",
"span": {
"start": 16,
"end": 19,
"ctxt": 0
},
"id": {
"type": "StringLiteral",
"span": {
"start": 16,
"end": 19,
"ctxt": 0
},
"value": "B",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
},
"init": null
},
{
"type": "TsEnumMember",
"span": {
"start": 21,
"end": 24,
"ctxt": 0
},
"id": {
"type": "StringLiteral",
"span": {
"start": 21,
"end": 24,
"ctxt": 0
},
"value": "C",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
},
"init": null
}
]
}
],
"interpreter": null
}