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

246 lines
6.2 KiB
JSON

{
"type": "Module",
"span": {
"start": 112,
"end": 352,
"ctxt": 0
},
"body": [
{
"type": "ExportDeclaration",
"span": {
"start": 112,
"end": 256,
"ctxt": 0
},
"declaration": {
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 125,
"end": 130,
"ctxt": 0
},
"value": "Super",
"optional": false
},
"declare": false,
"span": {
"start": 119,
"end": 256,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "Constructor",
"span": {
"start": 218,
"end": 254,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 218,
"end": 229,
"ctxt": 0
},
"value": "constructor",
"optional": false
},
"params": [
{
"type": "Parameter",
"span": {
"start": 230,
"end": 238,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 230,
"end": 238,
"ctxt": 0
},
"value": "firstArg",
"optional": false,
"typeAnnotation": null
}
},
{
"type": "Parameter",
"span": {
"start": 240,
"end": 249,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 240,
"end": 249,
"ctxt": 0
},
"value": "secondArg",
"optional": false,
"typeAnnotation": null
}
}
],
"body": {
"type": "BlockStatement",
"span": {
"start": 251,
"end": 254,
"ctxt": 0
},
"stmts": []
},
"accessibility": null,
"isOptional": false
}
],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
}
},
{
"type": "ExportDeclaration",
"span": {
"start": 258,
"end": 352,
"ctxt": 0
},
"declaration": {
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 271,
"end": 274,
"ctxt": 0
},
"value": "Sub",
"optional": false
},
"declare": false,
"span": {
"start": 265,
"end": 352,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "Constructor",
"span": {
"start": 295,
"end": 350,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 295,
"end": 306,
"ctxt": 0
},
"value": "constructor",
"optional": false
},
"params": [],
"body": {
"type": "BlockStatement",
"span": {
"start": 309,
"end": 350,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 319,
"end": 344,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 319,
"end": 343,
"ctxt": 0
},
"callee": {
"type": "Super",
"span": {
"start": 319,
"end": 324,
"ctxt": 0
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 325,
"end": 332,
"ctxt": 0
},
"value": "first",
"raw": "'first'"
}
},
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 334,
"end": 342,
"ctxt": 0
},
"value": "second",
"raw": "'second'"
}
}
],
"typeArguments": null
}
}
]
},
"accessibility": null,
"isOptional": false
}
],
"superClass": {
"type": "Identifier",
"span": {
"start": 283,
"end": 288,
"ctxt": 0
},
"value": "Super",
"optional": false
},
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
}
}
],
"interpreter": null
}