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

304 lines
7.4 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 16,
"end": 170,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 16,
"end": 32,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 20,
"end": 31,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 20,
"end": 26,
"ctxt": 0
},
"value": "symbol",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 26,
"end": 31,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 28,
"end": 31,
"ctxt": 0
},
"kind": "any"
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 40,
"end": 43,
"ctxt": 0
},
"value": "Foo",
"optional": false
},
"declare": false,
"span": {
"start": 34,
"end": 88,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassMethod",
"span": {
"start": 50,
"end": 86,
"ctxt": 0
},
"key": {
"type": "Computed",
"span": {
"start": 50,
"end": 58,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 51,
"end": 57,
"ctxt": 0
},
"value": "symbol",
"optional": false
}
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 50,
"end": 86,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 61,
"end": 86,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 71,
"end": 80,
"ctxt": 0
},
"argument": {
"type": "NumericLiteral",
"span": {
"start": 78,
"end": 79,
"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": 96,
"end": 99,
"ctxt": 0
},
"value": "Bar",
"optional": false
},
"declare": false,
"span": {
"start": 90,
"end": 170,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassMethod",
"span": {
"start": 118,
"end": 168,
"ctxt": 0
},
"key": {
"type": "Computed",
"span": {
"start": 118,
"end": 126,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 119,
"end": 125,
"ctxt": 0
},
"value": "symbol",
"optional": false
}
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 118,
"end": 168,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 129,
"end": 168,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 139,
"end": 162,
"ctxt": 0
},
"argument": {
"type": "CallExpression",
"span": {
"start": 146,
"end": 161,
"ctxt": 0
},
"callee": {
"type": "SuperPropExpression",
"span": {
"start": 146,
"end": 159,
"ctxt": 0
},
"obj": {
"type": "Super",
"span": {
"start": 146,
"end": 151,
"ctxt": 0
}
},
"property": {
"type": "Computed",
"span": {
"start": 151,
"end": 159,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 152,
"end": 158,
"ctxt": 0
},
"value": "symbol",
"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": 108,
"end": 111,
"ctxt": 0
},
"value": "Foo",
"optional": false
},
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
}
],
"interpreter": null
}