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

68 lines
1.4 KiB
JSON

{
"type": "Script",
"span": {
"start": 81,
"end": 103,
"ctxt": 0
},
"body": [
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 87,
"end": 88,
"ctxt": 0
},
"value": "C",
"optional": false
},
"declare": false,
"span": {
"start": 81,
"end": 103,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 95,
"end": 101,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 95,
"end": 99,
"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
}