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

113 lines
2.8 KiB
JSON

{
"type": "Script",
"span": {
"start": 37,
"end": 88,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 37,
"end": 88,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 41,
"end": 88,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 41,
"end": 44,
"ctxt": 0
},
"value": "obj",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 47,
"end": 88,
"ctxt": 0
},
"properties": [
{
"type": "MethodProperty",
"key": {
"type": "Computed",
"span": {
"start": 53,
"end": 80,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 54,
"end": 79,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 54,
"end": 60,
"ctxt": 0
},
"value": "Symbol",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 61,
"end": 79,
"ctxt": 0
},
"value": "isConcatSpreadable",
"optional": false
}
}
},
"params": [],
"decorators": [],
"span": {
"start": 53,
"end": 86,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 83,
"end": 86,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
}
]
},
"definite": false
}
]
}
],
"interpreter": null
}