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

320 lines
7.7 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 1,
"end": 203,
"ctxt": 0
},
"body": [
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 7,
"end": 8,
"ctxt": 0
},
"value": "D",
"optional": false
},
"declare": false,
"span": {
"start": 1,
"end": 101,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 28,
"end": 39,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 36,
"end": 38,
"ctxt": 0
},
"value": "_t",
"optional": false
},
"value": null,
"typeAnnotation": null,
"isStatic": false,
"decorators": [],
"accessibility": "private",
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
},
{
"type": "Constructor",
"span": {
"start": 44,
"end": 99,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 44,
"end": 55,
"ctxt": 0
},
"value": "constructor",
"optional": false
},
"params": [],
"body": {
"type": "BlockStatement",
"span": {
"start": 58,
"end": 99,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 68,
"end": 76,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 68,
"end": 75,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 68,
"end": 72,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 73,
"end": 75,
"ctxt": 0
},
"value": "_t",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 85,
"end": 93,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 85,
"end": 92,
"ctxt": 0
},
"callee": {
"type": "Super",
"span": {
"start": 85,
"end": 90,
"ctxt": 0
}
},
"arguments": [],
"typeArguments": null
}
}
]
},
"accessibility": null,
"isOptional": false
}
],
"superClass": {
"type": "NullLiteral",
"span": {
"start": 17,
"end": 21,
"ctxt": 0
}
},
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 109,
"end": 110,
"ctxt": 0
},
"value": "E",
"optional": false
},
"declare": false,
"span": {
"start": 103,
"end": 203,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 130,
"end": 141,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 138,
"end": 140,
"ctxt": 0
},
"value": "_t",
"optional": false
},
"value": null,
"typeAnnotation": null,
"isStatic": false,
"decorators": [],
"accessibility": "private",
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
},
{
"type": "Constructor",
"span": {
"start": 146,
"end": 201,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 146,
"end": 157,
"ctxt": 0
},
"value": "constructor",
"optional": false
},
"params": [],
"body": {
"type": "BlockStatement",
"span": {
"start": 160,
"end": 201,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 170,
"end": 178,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 170,
"end": 177,
"ctxt": 0
},
"callee": {
"type": "Super",
"span": {
"start": 170,
"end": 175,
"ctxt": 0
}
},
"arguments": [],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 187,
"end": 195,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 187,
"end": 194,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 187,
"end": 191,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 192,
"end": 194,
"ctxt": 0
},
"value": "_t",
"optional": false
}
}
}
]
},
"accessibility": null,
"isOptional": false
}
],
"superClass": {
"type": "NullLiteral",
"span": {
"start": 119,
"end": 123,
"ctxt": 0
}
},
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
}
],
"interpreter": null
}