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

191 lines
5.2 KiB
JSON

{
"type": "Script",
"span": {
"start": 37,
"end": 146,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 37,
"end": 146,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 41,
"end": 146,
"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": 146,
"ctxt": 0
},
"properties": [
{
"type": "GetterProperty",
"span": {
"start": 53,
"end": 100,
"ctxt": 0
},
"key": {
"type": "Computed",
"span": {
"start": 57,
"end": 84,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 58,
"end": 83,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 58,
"end": 64,
"ctxt": 0
},
"value": "Symbol",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 65,
"end": 83,
"ctxt": 0
},
"value": "isConcatSpreadable",
"optional": false
}
}
},
"typeAnnotation": null,
"body": {
"type": "BlockStatement",
"span": {
"start": 87,
"end": 100,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 89,
"end": 98,
"ctxt": 0
},
"argument": {
"type": "StringLiteral",
"span": {
"start": 96,
"end": 98,
"ctxt": 0
},
"value": "",
"raw": "''"
}
}
]
}
},
{
"type": "SetterProperty",
"span": {
"start": 106,
"end": 144,
"ctxt": 0
},
"key": {
"type": "Computed",
"span": {
"start": 110,
"end": 137,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 111,
"end": 136,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 111,
"end": 117,
"ctxt": 0
},
"value": "Symbol",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 118,
"end": 136,
"ctxt": 0
},
"value": "isConcatSpreadable",
"optional": false
}
}
},
"param": {
"type": "Identifier",
"span": {
"start": 138,
"end": 139,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
},
"body": {
"type": "BlockStatement",
"span": {
"start": 141,
"end": 144,
"ctxt": 0
},
"stmts": []
}
}
]
},
"definite": false
}
]
}
],
"interpreter": null
}