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

148 lines
3.8 KiB
JSON

{
"type": "Script",
"span": {
"start": 1,
"end": 41,
"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": 41,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassMethod",
"span": {
"start": 13,
"end": 39,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 13,
"end": 14,
"ctxt": 0
},
"value": "M",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 13,
"end": 39,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 17,
"end": 39,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 23,
"end": 35,
"ctxt": 0
},
"expression": {
"type": "BinaryExpression",
"span": {
"start": 28,
"end": 34,
"ctxt": 0
},
"operator": ">",
"left": {
"type": "BinaryExpression",
"span": {
"start": 28,
"end": 30,
"ctxt": 0
},
"operator": "<",
"left": {
"type": "Invalid",
"span": {
"start": 28,
"end": 29,
"ctxt": 0
}
},
"right": {
"type": "Identifier",
"span": {
"start": 29,
"end": 30,
"ctxt": 0
},
"value": "T",
"optional": false
}
},
"right": {
"type": "ParenthesisExpression",
"span": {
"start": 31,
"end": 34,
"ctxt": 0
},
"expression": {
"type": "NumericLiteral",
"span": {
"start": 32,
"end": 33,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
}
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "method",
"isStatic": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
}
],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
}
],
"interpreter": null
}