swc/crates/swc_ecma_parser/tests/tsc/computedPropertyNames20_ES6.json
2022-04-05 12:46:35 +00:00

101 lines
2.4 KiB
JSON

{
"type": "Script",
"span": {
"start": 16,
"end": 47,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 16,
"end": 47,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 20,
"end": 47,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 20,
"end": 23,
"ctxt": 0
},
"value": "obj",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 26,
"end": 47,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Computed",
"span": {
"start": 32,
"end": 42,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 33,
"end": 41,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 33,
"end": 37,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 38,
"end": 41,
"ctxt": 0
},
"value": "bar",
"optional": false
}
}
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 44,
"end": 45,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
}
]
},
"definite": false
}
]
}
],
"interpreter": null
}