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

164 lines
3.7 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 17,
"end": 86,
"ctxt": 0
},
"body": [
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 23,
"end": 27,
"ctxt": 0
},
"value": "Base",
"optional": false
},
"declare": false,
"span": {
"start": 17,
"end": 31,
"ctxt": 0
},
"decorators": [],
"body": [],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 38,
"end": 39,
"ctxt": 0
},
"value": "C",
"optional": false
},
"declare": false,
"span": {
"start": 32,
"end": 86,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassMethod",
"span": {
"start": 59,
"end": 84,
"ctxt": 0
},
"key": {
"type": "Computed",
"span": {
"start": 59,
"end": 78,
"ctxt": 0
},
"expression": {
"type": "ParenthesisExpression",
"span": {
"start": 60,
"end": 77,
"ctxt": 0
},
"expression": {
"type": "SequenceExpression",
"span": {
"start": 61,
"end": 76,
"ctxt": 0
},
"expressions": [
{
"type": "CallExpression",
"span": {
"start": 61,
"end": 68,
"ctxt": 0
},
"callee": {
"type": "Super",
"span": {
"start": 61,
"end": 66,
"ctxt": 0
}
},
"arguments": [],
"typeArguments": null
},
{
"type": "StringLiteral",
"span": {
"start": 70,
"end": 76,
"ctxt": 0
},
"value": "prop",
"raw": "\"prop\""
}
]
}
}
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 59,
"end": 84,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 81,
"end": 84,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "method",
"isStatic": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
}
],
"superClass": {
"type": "Identifier",
"span": {
"start": 48,
"end": 52,
"ctxt": 0
},
"value": "Base",
"optional": false
},
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
}
],
"interpreter": null
}