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

236 lines
4.8 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 0,
"end": 121,
"ctxt": 0
},
"body": [
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 6,
"end": 8,
"ctxt": 0
},
"value": "C1",
"optional": false
},
"declare": false,
"span": {
"start": 0,
"end": 25,
"ctxt": 0
},
"decorators": [],
"body": [],
"superClass": {
"type": "NullLiteral",
"span": {
"start": 17,
"end": 21,
"ctxt": 0
}
},
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 32,
"end": 34,
"ctxt": 0
},
"value": "C2",
"optional": false
},
"declare": false,
"span": {
"start": 26,
"end": 53,
"ctxt": 0
},
"decorators": [],
"body": [],
"superClass": {
"type": "ParenthesisExpression",
"span": {
"start": 43,
"end": 49,
"ctxt": 0
},
"expression": {
"type": "NullLiteral",
"span": {
"start": 44,
"end": 48,
"ctxt": 0
}
}
},
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 60,
"end": 62,
"ctxt": 0
},
"value": "C3",
"optional": false
},
"declare": false,
"span": {
"start": 54,
"end": 86,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 78,
"end": 84,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 78,
"end": 79,
"ctxt": 0
},
"value": "x",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 82,
"end": 83,
"ctxt": 0
},
"value": 1.0
},
"typeAnnotation": null,
"isStatic": false,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
}
],
"superClass": {
"type": "NullLiteral",
"span": {
"start": 71,
"end": 75,
"ctxt": 0
}
},
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 93,
"end": 95,
"ctxt": 0
},
"value": "C4",
"optional": false
},
"declare": false,
"span": {
"start": 87,
"end": 121,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 113,
"end": 119,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 113,
"end": 114,
"ctxt": 0
},
"value": "x",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 117,
"end": 118,
"ctxt": 0
},
"value": 1.0
},
"typeAnnotation": null,
"isStatic": false,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
}
],
"superClass": {
"type": "ParenthesisExpression",
"span": {
"start": 104,
"end": 110,
"ctxt": 0
},
"expression": {
"type": "NullLiteral",
"span": {
"start": 105,
"end": 109,
"ctxt": 0
}
}
},
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
}
],
"interpreter": null
}