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

173 lines
4.1 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 15,
"end": 107,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 15,
"end": 54,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 19,
"end": 53,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 19,
"end": 22,
"ctxt": 0
},
"value": "obj",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 25,
"end": 53,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Computed",
"span": {
"start": 31,
"end": 48,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 32,
"end": 47,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 32,
"end": 38,
"ctxt": 0
},
"value": "Symbol",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 39,
"end": 47,
"ctxt": 0
},
"value": "iterator",
"optional": false
}
}
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 50,
"end": 51,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
}
]
},
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 83,
"end": 107,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 83,
"end": 106,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 83,
"end": 86,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 86,
"end": 106,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 87,
"end": 105,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 87,
"end": 93,
"ctxt": 0
},
"value": "Symbol",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 93,
"end": 105,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 94,
"end": 104,
"ctxt": 0
},
"value": "nonsense",
"raw": "\"nonsense\""
}
}
}
}
}
}
],
"interpreter": null
}