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

76 lines
1.5 KiB
JSON

{
"type": "Script",
"span": {
"start": 50,
"end": 72,
"ctxt": 0
},
"body": [
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 56,
"end": 57,
"ctxt": 0
},
"value": "A",
"optional": false
},
"declare": false,
"span": {
"start": 50,
"end": 72,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 64,
"end": 70,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 64,
"end": 65,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 68,
"end": 70,
"ctxt": 0
},
"value": 12.0
},
"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
}