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

136 lines
3.6 KiB
JSON

{
"type": "Script",
"span": {
"start": 17,
"end": 79,
"ctxt": 0
},
"body": [
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 26,
"end": 29,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 17,
"end": 79,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 32,
"end": 79,
"ctxt": 0
},
"stmts": [
{
"type": "VariableDeclaration",
"span": {
"start": 38,
"end": 77,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 42,
"end": 77,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 42,
"end": 45,
"ctxt": 0
},
"value": "obj",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 48,
"end": 77,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Computed",
"span": {
"start": 58,
"end": 68,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 59,
"end": 67,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 59,
"end": 63,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 64,
"end": 67,
"ctxt": 0
},
"value": "bar",
"optional": false
}
}
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 70,
"end": 71,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
}
]
},
"definite": false
}
]
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
}
],
"interpreter": null
}