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

309 lines
8.0 KiB
JSON

{
"type": "Script",
"span": {
"start": 17,
"end": 210,
"ctxt": 0
},
"body": [
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 23,
"end": 26,
"ctxt": 0
},
"value": "Foo",
"optional": false
},
"declare": false,
"span": {
"start": 17,
"end": 90,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassMethod",
"span": {
"start": 33,
"end": 88,
"ctxt": 0
},
"key": {
"type": "Computed",
"span": {
"start": 33,
"end": 60,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 34,
"end": 59,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 34,
"end": 40,
"ctxt": 0
},
"value": "Symbol",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 41,
"end": 59,
"ctxt": 0
},
"value": "isConcatSpreadable",
"optional": false
}
}
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 33,
"end": 88,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 63,
"end": 88,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 73,
"end": 82,
"ctxt": 0
},
"argument": {
"type": "NumericLiteral",
"span": {
"start": 80,
"end": 81,
"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": []
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 98,
"end": 101,
"ctxt": 0
},
"value": "Bar",
"optional": false
},
"declare": false,
"span": {
"start": 92,
"end": 210,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassMethod",
"span": {
"start": 120,
"end": 208,
"ctxt": 0
},
"key": {
"type": "Computed",
"span": {
"start": 120,
"end": 147,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 121,
"end": 146,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 121,
"end": 127,
"ctxt": 0
},
"value": "Symbol",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 128,
"end": 146,
"ctxt": 0
},
"value": "isConcatSpreadable",
"optional": false
}
}
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 120,
"end": 208,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 150,
"end": 208,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 160,
"end": 202,
"ctxt": 0
},
"argument": {
"type": "CallExpression",
"span": {
"start": 167,
"end": 201,
"ctxt": 0
},
"callee": {
"type": "SuperPropExpression",
"span": {
"start": 167,
"end": 199,
"ctxt": 0
},
"obj": {
"type": "Super",
"span": {
"start": 167,
"end": 172,
"ctxt": 0
}
},
"property": {
"type": "Computed",
"span": {
"start": 172,
"end": 199,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 173,
"end": 198,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 173,
"end": 179,
"ctxt": 0
},
"value": "Symbol",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 180,
"end": 198,
"ctxt": 0
},
"value": "isConcatSpreadable",
"optional": false
}
}
}
},
"arguments": [],
"typeArguments": null
}
}
]
},
"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": 110,
"end": 113,
"ctxt": 0
},
"value": "Foo",
"optional": false
},
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
}
],
"interpreter": null
}