swc/crates/swc_ecma_parser/tests/tsc/parserInterfaceKeywordInEnum1.json
2022-03-22 07:54:08 +00:00

71 lines
1.3 KiB
JSON

{
"type": "Script",
"span": {
"start": 0,
"end": 42,
"ctxt": 0
},
"body": [
{
"type": "ExpressionStatement",
"span": {
"start": 0,
"end": 13,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 0,
"end": 12,
"ctxt": 0
},
"value": "use strict",
"raw": "\"use strict\""
}
},
{
"type": "TsEnumDeclaration",
"span": {
"start": 15,
"end": 42,
"ctxt": 0
},
"declare": false,
"isConst": false,
"id": {
"type": "Identifier",
"span": {
"start": 20,
"end": 23,
"ctxt": 0
},
"value": "Bar",
"optional": false
},
"members": [
{
"type": "TsEnumMember",
"span": {
"start": 30,
"end": 39,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 30,
"end": 39,
"ctxt": 0
},
"value": "interface",
"optional": false
},
"init": null
}
]
}
],
"interpreter": null
}