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

131 lines
3.5 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 17,
"end": 73,
"ctxt": 0
},
"body": [
{
"type": "TsModuleDeclaration",
"span": {
"start": 17,
"end": 73,
"ctxt": 0
},
"declare": false,
"global": false,
"id": {
"type": "Identifier",
"span": {
"start": 24,
"end": 25,
"ctxt": 0
},
"value": "M",
"optional": false
},
"body": {
"type": "TsModuleBlock",
"span": {
"start": 26,
"end": 73,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 32,
"end": 71,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 36,
"end": 71,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 36,
"end": 39,
"ctxt": 0
},
"value": "obj",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 42,
"end": 71,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Computed",
"span": {
"start": 52,
"end": 62,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 53,
"end": 61,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 53,
"end": 57,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 58,
"end": 61,
"ctxt": 0
},
"value": "bar",
"optional": false
}
}
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 64,
"end": 65,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
}
]
},
"definite": false
}
]
}
]
}
}
],
"interpreter": null
}