swc/crates/swc_ecma_parser/tests/tsc/parserSuperExpression3.json
2022-04-05 12:46:35 +00:00

172 lines
4.7 KiB
JSON

{
"type": "Script",
"span": {
"start": 0,
"end": 45,
"ctxt": 0
},
"body": [
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 6,
"end": 7,
"ctxt": 0
},
"value": "C",
"optional": false
},
"declare": false,
"span": {
"start": 0,
"end": 45,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassMethod",
"span": {
"start": 12,
"end": 43,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 12,
"end": 13,
"ctxt": 0
},
"value": "M",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 12,
"end": 43,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 16,
"end": 43,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 22,
"end": 39,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 22,
"end": 38,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 22,
"end": 32,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 22,
"end": 26,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 27,
"end": 32,
"ctxt": 0
},
"value": "super",
"optional": false
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 36,
"end": 37,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
}
],
"typeArguments": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 32,
"end": 35,
"ctxt": 0
},
"params": [
{
"type": "TsTypeReference",
"span": {
"start": 33,
"end": 34,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 33,
"end": 34,
"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
}