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

195 lines
5.4 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 36,
"end": 145,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 36,
"end": 145,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 40,
"end": 145,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 40,
"end": 43,
"ctxt": 0
},
"value": "obj",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 46,
"end": 145,
"ctxt": 0
},
"properties": [
{
"type": "GetterProperty",
"span": {
"start": 52,
"end": 99,
"ctxt": 0
},
"key": {
"type": "Computed",
"span": {
"start": 56,
"end": 83,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 57,
"end": 82,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 57,
"end": 63,
"ctxt": 0
},
"value": "Symbol",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 64,
"end": 82,
"ctxt": 0
},
"value": "isConcatSpreadable",
"optional": false
}
}
},
"typeAnnotation": null,
"body": {
"type": "BlockStatement",
"span": {
"start": 86,
"end": 99,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 88,
"end": 97,
"ctxt": 0
},
"argument": {
"type": "StringLiteral",
"span": {
"start": 95,
"end": 97,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
]
}
},
{
"type": "SetterProperty",
"span": {
"start": 105,
"end": 143,
"ctxt": 0
},
"key": {
"type": "Computed",
"span": {
"start": 109,
"end": 136,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 110,
"end": 135,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 110,
"end": 116,
"ctxt": 0
},
"value": "Symbol",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 117,
"end": 135,
"ctxt": 0
},
"value": "isConcatSpreadable",
"optional": false
}
}
},
"param": {
"type": "Identifier",
"span": {
"start": 137,
"end": 138,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
},
"body": {
"type": "BlockStatement",
"span": {
"start": 140,
"end": 143,
"ctxt": 0
},
"stmts": []
}
}
]
},
"definite": false
}
]
}
],
"interpreter": null
}