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

68 lines
1.4 KiB
JSON

{
"type": "Script",
"span": {
"start": 82,
"end": 104,
"ctxt": 0
},
"body": [
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 88,
"end": 89,
"ctxt": 0
},
"value": "C",
"optional": false
},
"declare": false,
"span": {
"start": 82,
"end": 104,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 96,
"end": 102,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 96,
"end": 100,
"ctxt": 0
},
"value": "prop",
"optional": true
},
"value": null,
"typeAnnotation": null,
"isStatic": false,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": true,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
}
],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
}
],
"interpreter": null
}