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

110 lines
2.4 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 36,
"end": 81,
"ctxt": 0
},
"body": [
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 42,
"end": 43,
"ctxt": 0
},
"value": "C",
"optional": false
},
"declare": false,
"span": {
"start": 36,
"end": 81,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 50,
"end": 79,
"ctxt": 0
},
"key": {
"type": "Computed",
"span": {
"start": 50,
"end": 70,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 51,
"end": 69,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 51,
"end": 57,
"ctxt": 0
},
"value": "Symbol",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 58,
"end": 69,
"ctxt": 0
},
"value": "toPrimitive",
"optional": false
}
}
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 70,
"end": 78,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 72,
"end": 78,
"ctxt": 0
},
"kind": "number"
}
},
"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
}