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

69 lines
1.3 KiB
JSON

{
"type": "Script",
"span": {
"start": 1,
"end": 34,
"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": 34,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "Constructor",
"span": {
"start": 13,
"end": 32,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 13,
"end": 24,
"ctxt": 0
},
"value": "constructor",
"optional": false
},
"params": [],
"body": {
"type": "BlockStatement",
"span": {
"start": 29,
"end": 32,
"ctxt": 0
},
"stmts": []
},
"accessibility": null,
"isOptional": false
}
],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
}
],
"interpreter": null
}