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

71 lines
1.3 KiB
JSON

{
"type": "Script",
"span": {
"start": 1,
"end": 43,
"ctxt": 0
},
"body": [
{
"type": "ExpressionStatement",
"span": {
"start": 1,
"end": 14,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 1,
"end": 13,
"ctxt": 0
},
"value": "use strict",
"raw": "\"use strict\""
}
},
{
"type": "TsEnumDeclaration",
"span": {
"start": 16,
"end": 43,
"ctxt": 0
},
"declare": false,
"isConst": false,
"id": {
"type": "Identifier",
"span": {
"start": 21,
"end": 24,
"ctxt": 0
},
"value": "Bar",
"optional": false
},
"members": [
{
"type": "TsEnumMember",
"span": {
"start": 31,
"end": 40,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 31,
"end": 40,
"ctxt": 0
},
"value": "interface",
"optional": false
},
"init": null
}
]
}
],
"interpreter": null
}