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

69 lines
1.3 KiB
JSON

{
"type": "Script",
"span": {
"start": 1,
"end": 38,
"ctxt": 0
},
"body": [
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 7,
"end": 8,
"ctxt": 0
},
"value": "C",
"optional": false
},
"declare": false,
"span": {
"start": 1,
"end": 38,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "Constructor",
"span": {
"start": 12,
"end": 36,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 19,
"end": 30,
"ctxt": 0
},
"value": "constructor",
"optional": false
},
"params": [],
"body": {
"type": "BlockStatement",
"span": {
"start": 33,
"end": 36,
"ctxt": 0
},
"stmts": []
},
"accessibility": "public",
"isOptional": false
}
],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
}
],
"interpreter": null
}