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

192 lines
4.5 KiB
JSON
Raw Normal View History

{
"type": "Module",
"span": {
"start": 7,
"end": 150,
"ctxt": 0
},
"body": [
{
"type": "ExportDeclaration",
"span": {
"start": 7,
"end": 150,
"ctxt": 0
},
"declaration": {
"type": "TsEnumDeclaration",
"span": {
"start": 14,
"end": 150,
"ctxt": 0
},
"declare": false,
"isConst": false,
"id": {
"type": "Identifier",
"span": {
"start": 19,
"end": 33,
"ctxt": 0
},
"value": "SignatureFlags",
"optional": false
},
"members": [
{
"type": "TsEnumMember",
"span": {
"start": 44,
"end": 52,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 44,
"end": 48,
"ctxt": 0
},
"value": "None",
"optional": false
},
"init": {
"type": "NumericLiteral",
"span": {
"start": 51,
"end": 52,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
},
{
"type": "TsEnumMember",
"span": {
"start": 62,
"end": 75,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 62,
"end": 71,
"ctxt": 0
},
"value": "IsIndexer",
"optional": false
},
"init": {
"type": "NumericLiteral",
"span": {
"start": 74,
"end": 75,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
},
{
"type": "TsEnumMember",
"span": {
"start": 85,
"end": 109,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 85,
"end": 100,
"ctxt": 0
},
"value": "IsStringIndexer",
"optional": false
},
"init": {
"type": "BinaryExpression",
"span": {
"start": 103,
"end": 109,
"ctxt": 0
},
"operator": "<<",
"left": {
"type": "NumericLiteral",
"span": {
"start": 103,
"end": 104,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 108,
"end": 109,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
},
{
"type": "TsEnumMember",
"span": {
"start": 119,
"end": 143,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 119,
"end": 134,
"ctxt": 0
},
"value": "IsNumberIndexer",
"optional": false
},
"init": {
"type": "BinaryExpression",
"span": {
"start": 137,
"end": 143,
"ctxt": 0
},
"operator": "<<",
"left": {
"type": "NumericLiteral",
"span": {
"start": 137,
"end": 138,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 142,
"end": 143,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
}
}
}
]
}
}
],
"interpreter": null
}