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

77 lines
1.6 KiB
JSON

{
"type": "Script",
"span": {
"start": 51,
"end": 73,
"ctxt": 0
},
"body": [
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 57,
"end": 58,
"ctxt": 0
},
"value": "A",
"optional": false
},
"declare": false,
"span": {
"start": 51,
"end": 73,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 65,
"end": 71,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 65,
"end": 66,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 69,
"end": 71,
"ctxt": 0
},
"value": 12.0,
"raw": "12"
},
"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
}