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

77 lines
1.6 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 40,
"end": 82,
"ctxt": 0
},
"body": [
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 55,
"end": 56,
"ctxt": 0
},
"value": "C",
"optional": false
},
"declare": false,
"span": {
"start": 40,
"end": 82,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 63,
"end": 80,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 72,
"end": 76,
"ctxt": 0
},
"value": "prop",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 79,
"end": 80,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
},
"typeAnnotation": null,
"isStatic": false,
"decorators": [],
"accessibility": null,
"isAbstract": true,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
}
],
"superClass": null,
"isAbstract": true,
"typeParams": null,
"superTypeParams": null,
"implements": []
}
],
"interpreter": null
}