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

308 lines
8.0 KiB
JSON

{
"type": "Script",
"span": {
"start": 16,
"end": 209,
"ctxt": 0
},
"body": [
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 22,
"end": 25,
"ctxt": 0
},
"value": "Foo",
"optional": false
},
"declare": false,
"span": {
"start": 16,
"end": 89,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassMethod",
"span": {
"start": 32,
"end": 87,
"ctxt": 0
},
"key": {
"type": "Computed",
"span": {
"start": 32,
"end": 59,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 33,
"end": 58,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 33,
"end": 39,
"ctxt": 0
},
"value": "Symbol",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 40,
"end": 58,
"ctxt": 0
},
"value": "isConcatSpreadable",
"optional": false
}
}
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 32,
"end": 87,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 62,
"end": 87,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 72,
"end": 81,
"ctxt": 0
},
"argument": {
"type": "NumericLiteral",
"span": {
"start": 79,
"end": 80,
"ctxt": 0
},
"value": 0.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": 97,
"end": 100,
"ctxt": 0
},
"value": "Bar",
"optional": false
},
"declare": false,
"span": {
"start": 91,
"end": 209,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassMethod",
"span": {
"start": 119,
"end": 207,
"ctxt": 0
},
"key": {
"type": "Computed",
"span": {
"start": 119,
"end": 146,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 120,
"end": 145,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 120,
"end": 126,
"ctxt": 0
},
"value": "Symbol",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 127,
"end": 145,
"ctxt": 0
},
"value": "isConcatSpreadable",
"optional": false
}
}
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 119,
"end": 207,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 149,
"end": 207,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 159,
"end": 201,
"ctxt": 0
},
"argument": {
"type": "CallExpression",
"span": {
"start": 166,
"end": 200,
"ctxt": 0
},
"callee": {
"type": "SuperPropExpression",
"span": {
"start": 166,
"end": 198,
"ctxt": 0
},
"obj": {
"type": "Super",
"span": {
"start": 166,
"end": 171,
"ctxt": 0
}
},
"property": {
"type": "Computed",
"span": {
"start": 171,
"end": 198,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 172,
"end": 197,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 172,
"end": 178,
"ctxt": 0
},
"value": "Symbol",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 179,
"end": 197,
"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": 109,
"end": 112,
"ctxt": 0
},
"value": "Foo",
"optional": false
},
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
}
],
"interpreter": null
}