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

103 lines
2.3 KiB
JSON

{
"type": "Script",
"span": {
"start": 37,
"end": 79,
"ctxt": 0
},
"body": [
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 43,
"end": 44,
"ctxt": 0
},
"value": "C",
"optional": false
},
"declare": false,
"span": {
"start": 37,
"end": 79,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 51,
"end": 77,
"ctxt": 0
},
"key": {
"type": "Computed",
"span": {
"start": 51,
"end": 71,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 52,
"end": 70,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 52,
"end": 58,
"ctxt": 0
},
"value": "Symbol",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 59,
"end": 70,
"ctxt": 0
},
"value": "toPrimitive",
"optional": false
}
}
},
"value": {
"type": "StringLiteral",
"span": {
"start": 74,
"end": 76,
"ctxt": 0
},
"value": "",
"raw": "\"\""
},
"typeAnnotation": null,
"isStatic": false,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
}
],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
}
],
"interpreter": null
}