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

310 lines
7.0 KiB
JSON

{
"type": "Script",
"span": {
"start": 142,
"end": 277,
"ctxt": 0
},
"body": [
{
"type": "TsModuleDeclaration",
"span": {
"start": 142,
"end": 202,
"ctxt": 0
},
"declare": true,
"global": false,
"id": {
"type": "Identifier",
"span": {
"start": 160,
"end": 162,
"ctxt": 0
},
"value": "lf",
"optional": false
},
"body": {
"type": "TsModuleBlock",
"span": {
"start": 163,
"end": 202,
"ctxt": 0
},
"body": [
{
"type": "ExportDeclaration",
"span": {
"start": 169,
"end": 200,
"ctxt": 0
},
"declaration": {
"type": "TsEnumDeclaration",
"span": {
"start": 176,
"end": 200,
"ctxt": 0
},
"declare": false,
"isConst": false,
"id": {
"type": "Identifier",
"span": {
"start": 181,
"end": 186,
"ctxt": 0
},
"value": "Order",
"optional": false
},
"members": [
{
"type": "TsEnumMember",
"span": {
"start": 189,
"end": 192,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 189,
"end": 192,
"ctxt": 0
},
"value": "ASC",
"optional": false
},
"init": null
},
{
"type": "TsEnumMember",
"span": {
"start": 194,
"end": 198,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 194,
"end": 198,
"ctxt": 0
},
"value": "DESC",
"optional": false
},
"init": null
}
]
}
}
]
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 227,
"end": 240,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 227,
"end": 240,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 227,
"end": 235,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 227,
"end": 229,
"ctxt": 0
},
"value": "lf",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 230,
"end": 235,
"ctxt": 0
},
"value": "Order",
"optional": false
}
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 238,
"end": 240,
"ctxt": 0
},
"properties": []
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 241,
"end": 259,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 241,
"end": 258,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 241,
"end": 254,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 241,
"end": 249,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 241,
"end": 243,
"ctxt": 0
},
"value": "lf",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 244,
"end": 249,
"ctxt": 0
},
"value": "Order",
"optional": false
}
},
"property": {
"type": "Identifier",
"span": {
"start": 250,
"end": 254,
"ctxt": 0
},
"value": "DESC",
"optional": false
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 257,
"end": 258,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 260,
"end": 277,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 260,
"end": 276,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 260,
"end": 272,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 260,
"end": 268,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 260,
"end": 262,
"ctxt": 0
},
"value": "lf",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 263,
"end": 268,
"ctxt": 0
},
"value": "Order",
"optional": false
}
},
"property": {
"type": "Identifier",
"span": {
"start": 269,
"end": 272,
"ctxt": 0
},
"value": "ASC",
"optional": false
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 275,
"end": 276,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
}
],
"interpreter": null
}