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

202 lines
4.6 KiB
JSON

{
"type": "Script",
"span": {
"start": 16,
"end": 89,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 16,
"end": 55,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 20,
"end": 54,
"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": 54,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Computed",
"span": {
"start": 32,
"end": 49,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 33,
"end": 48,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 33,
"end": 39,
"ctxt": 0
},
"value": "Symbol",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 40,
"end": 48,
"ctxt": 0
},
"value": "nonsense",
"optional": false
}
}
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 51,
"end": 52,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
}
]
},
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 57,
"end": 66,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 57,
"end": 65,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 57,
"end": 60,
"ctxt": 0
},
"value": "obj",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 63,
"end": 65,
"ctxt": 0
},
"properties": []
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 68,
"end": 89,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 68,
"end": 88,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 68,
"end": 71,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 71,
"end": 88,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 72,
"end": 87,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 72,
"end": 78,
"ctxt": 0
},
"value": "Symbol",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 79,
"end": 87,
"ctxt": 0
},
"value": "nonsense",
"optional": false
}
}
}
}
}
],
"interpreter": null
}