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

172 lines
4.7 KiB
JSON

{
"type": "Script",
"span": {
"start": 1,
"end": 46,
"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": 46,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassMethod",
"span": {
"start": 13,
"end": 44,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 13,
"end": 14,
"ctxt": 0
},
"value": "M",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 13,
"end": 44,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 17,
"end": 44,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 23,
"end": 40,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 23,
"end": 39,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 23,
"end": 33,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 23,
"end": 27,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 28,
"end": 33,
"ctxt": 0
},
"value": "super",
"optional": false
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 37,
"end": 38,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
}
],
"typeArguments": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 33,
"end": 36,
"ctxt": 0
},
"params": [
{
"type": "TsTypeReference",
"span": {
"start": 34,
"end": 35,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 34,
"end": 35,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
]
}
}
}
]
},
"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
}