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

1798 lines
54 KiB
JSON

{
"type": "Script",
"span": {
"start": 499,
"end": 1473,
"ctxt": 0
},
"body": [
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 505,
"end": 518,
"ctxt": 0
},
"value": "SomeBaseClass",
"optional": false
},
"declare": false,
"span": {
"start": 499,
"end": 659,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassMethod",
"span": {
"start": 525,
"end": 565,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 532,
"end": 536,
"ctxt": 0
},
"value": "func",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 525,
"end": 565,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 539,
"end": 565,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 549,
"end": 559,
"ctxt": 0
},
"argument": {
"type": "StringLiteral",
"span": {
"start": 556,
"end": 558,
"ctxt": 0
},
"value": "",
"raw": "''"
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "method",
"isStatic": false,
"accessibility": "public",
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 571,
"end": 610,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 578,
"end": 582,
"ctxt": 0
},
"value": "func",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 571,
"end": 610,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 585,
"end": 610,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 595,
"end": 604,
"ctxt": 0
},
"argument": {
"type": "NumericLiteral",
"span": {
"start": 602,
"end": 603,
"ctxt": 0
},
"value": 3.0,
"raw": "3"
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "method",
"isStatic": true,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 616,
"end": 657,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 616,
"end": 626,
"ctxt": 0
},
"value": "returnThis",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 616,
"end": 657,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 629,
"end": 657,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 639,
"end": 651,
"ctxt": 0
},
"argument": {
"type": "ThisExpression",
"span": {
"start": 646,
"end": 650,
"ctxt": 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": 667,
"end": 683,
"ctxt": 0
},
"value": "SomeDerivedClass",
"optional": false
},
"declare": false,
"span": {
"start": 661,
"end": 1405,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "Constructor",
"span": {
"start": 712,
"end": 803,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 712,
"end": 723,
"ctxt": 0
},
"value": "constructor",
"optional": false
},
"params": [],
"body": {
"type": "BlockStatement",
"span": {
"start": 726,
"end": 803,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 736,
"end": 744,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 736,
"end": 743,
"ctxt": 0
},
"callee": {
"type": "Super",
"span": {
"start": 736,
"end": 741,
"ctxt": 0
}
},
"arguments": [],
"typeArguments": null
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 753,
"end": 774,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 757,
"end": 773,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 757,
"end": 758,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "CallExpression",
"span": {
"start": 761,
"end": 773,
"ctxt": 0
},
"callee": {
"type": "SuperPropExpression",
"span": {
"start": 761,
"end": 771,
"ctxt": 0
},
"obj": {
"type": "Super",
"span": {
"start": 761,
"end": 766,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 767,
"end": 771,
"ctxt": 0
},
"value": "func",
"optional": false
}
},
"arguments": [],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 783,
"end": 797,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 787,
"end": 796,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 787,
"end": 788,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 788,
"end": 796,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 790,
"end": 796,
"ctxt": 0
},
"kind": "string"
}
}
},
"init": null,
"definite": false
}
]
}
]
},
"accessibility": null,
"isOptional": false
},
{
"type": "ClassMethod",
"span": {
"start": 809,
"end": 910,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 809,
"end": 811,
"ctxt": 0
},
"value": "fn",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 809,
"end": 910,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 814,
"end": 910,
"ctxt": 0
},
"stmts": [
{
"type": "VariableDeclaration",
"span": {
"start": 824,
"end": 845,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 828,
"end": 844,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 828,
"end": 829,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "CallExpression",
"span": {
"start": 832,
"end": 844,
"ctxt": 0
},
"callee": {
"type": "SuperPropExpression",
"span": {
"start": 832,
"end": 842,
"ctxt": 0
},
"obj": {
"type": "Super",
"span": {
"start": 832,
"end": 837,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 838,
"end": 842,
"ctxt": 0
},
"value": "func",
"optional": false
}
},
"arguments": [],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 854,
"end": 868,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 858,
"end": 867,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 858,
"end": 859,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 859,
"end": 867,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 861,
"end": 867,
"ctxt": 0
},
"kind": "string"
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 877,
"end": 904,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 881,
"end": 903,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 881,
"end": 882,
"ctxt": 0
},
"value": "y",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrowFunctionExpression",
"span": {
"start": 885,
"end": 903,
"ctxt": 0
},
"params": [],
"body": {
"type": "CallExpression",
"span": {
"start": 891,
"end": 903,
"ctxt": 0
},
"callee": {
"type": "SuperPropExpression",
"span": {
"start": 891,
"end": 901,
"ctxt": 0
},
"obj": {
"type": "Super",
"span": {
"start": 891,
"end": 896,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 897,
"end": 901,
"ctxt": 0
},
"value": "func",
"optional": false
}
},
"arguments": [],
"typeArguments": null
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
},
"definite": false
}
]
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "method",
"isStatic": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 916,
"end": 1005,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 920,
"end": 921,
"ctxt": 0
},
"value": "a",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 916,
"end": 1005,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 924,
"end": 1005,
"ctxt": 0
},
"stmts": [
{
"type": "VariableDeclaration",
"span": {
"start": 934,
"end": 955,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 938,
"end": 954,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 938,
"end": 939,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "CallExpression",
"span": {
"start": 942,
"end": 954,
"ctxt": 0
},
"callee": {
"type": "SuperPropExpression",
"span": {
"start": 942,
"end": 952,
"ctxt": 0
},
"obj": {
"type": "Super",
"span": {
"start": 942,
"end": 947,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 948,
"end": 952,
"ctxt": 0
},
"value": "func",
"optional": false
}
},
"arguments": [],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 964,
"end": 978,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 968,
"end": 977,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 968,
"end": 969,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 969,
"end": 977,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 971,
"end": 977,
"ctxt": 0
},
"kind": "string"
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "ReturnStatement",
"span": {
"start": 987,
"end": 999,
"ctxt": 0
},
"argument": {
"type": "NullLiteral",
"span": {
"start": 994,
"end": 998,
"ctxt": 0
}
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "getter",
"isStatic": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 1011,
"end": 1080,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 1015,
"end": 1016,
"ctxt": 0
},
"value": "a",
"optional": false
},
"function": {
"params": [
{
"type": "Parameter",
"span": {
"start": 1017,
"end": 1018,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 1017,
"end": 1018,
"ctxt": 0
},
"value": "n",
"optional": false,
"typeAnnotation": null
}
}
],
"decorators": [],
"span": {
"start": 1011,
"end": 1080,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 1020,
"end": 1080,
"ctxt": 0
},
"stmts": [
{
"type": "VariableDeclaration",
"span": {
"start": 1030,
"end": 1051,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1034,
"end": 1050,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1034,
"end": 1035,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "CallExpression",
"span": {
"start": 1038,
"end": 1050,
"ctxt": 0
},
"callee": {
"type": "SuperPropExpression",
"span": {
"start": 1038,
"end": 1048,
"ctxt": 0
},
"obj": {
"type": "Super",
"span": {
"start": 1038,
"end": 1043,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 1044,
"end": 1048,
"ctxt": 0
},
"value": "func",
"optional": false
}
},
"arguments": [],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1060,
"end": 1074,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1064,
"end": 1073,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1064,
"end": 1065,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1065,
"end": 1073,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1067,
"end": 1073,
"ctxt": 0
},
"kind": "string"
}
}
},
"init": null,
"definite": false
}
]
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "setter",
"isStatic": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 1086,
"end": 1158,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 1093,
"end": 1095,
"ctxt": 0
},
"value": "fn",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 1086,
"end": 1158,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 1098,
"end": 1158,
"ctxt": 0
},
"stmts": [
{
"type": "VariableDeclaration",
"span": {
"start": 1108,
"end": 1129,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1112,
"end": 1128,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1112,
"end": 1113,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "CallExpression",
"span": {
"start": 1116,
"end": 1128,
"ctxt": 0
},
"callee": {
"type": "SuperPropExpression",
"span": {
"start": 1116,
"end": 1126,
"ctxt": 0
},
"obj": {
"type": "Super",
"span": {
"start": 1116,
"end": 1121,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 1122,
"end": 1126,
"ctxt": 0
},
"value": "func",
"optional": false
}
},
"arguments": [],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1138,
"end": 1152,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1142,
"end": 1151,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1142,
"end": 1143,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1143,
"end": 1151,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1145,
"end": 1151,
"ctxt": 0
},
"kind": "number"
}
}
},
"init": null,
"definite": false
}
]
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "method",
"isStatic": true,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 1164,
"end": 1260,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 1175,
"end": 1176,
"ctxt": 0
},
"value": "a",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 1164,
"end": 1260,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 1179,
"end": 1260,
"ctxt": 0
},
"stmts": [
{
"type": "VariableDeclaration",
"span": {
"start": 1189,
"end": 1210,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1193,
"end": 1209,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1193,
"end": 1194,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "CallExpression",
"span": {
"start": 1197,
"end": 1209,
"ctxt": 0
},
"callee": {
"type": "SuperPropExpression",
"span": {
"start": 1197,
"end": 1207,
"ctxt": 0
},
"obj": {
"type": "Super",
"span": {
"start": 1197,
"end": 1202,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 1203,
"end": 1207,
"ctxt": 0
},
"value": "func",
"optional": false
}
},
"arguments": [],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1219,
"end": 1233,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1223,
"end": 1232,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1223,
"end": 1224,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1224,
"end": 1232,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1226,
"end": 1232,
"ctxt": 0
},
"kind": "number"
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "ReturnStatement",
"span": {
"start": 1242,
"end": 1254,
"ctxt": 0
},
"argument": {
"type": "NullLiteral",
"span": {
"start": 1249,
"end": 1253,
"ctxt": 0
}
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "getter",
"isStatic": true,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 1266,
"end": 1342,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 1277,
"end": 1278,
"ctxt": 0
},
"value": "a",
"optional": false
},
"function": {
"params": [
{
"type": "Parameter",
"span": {
"start": 1279,
"end": 1280,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 1279,
"end": 1280,
"ctxt": 0
},
"value": "n",
"optional": false,
"typeAnnotation": null
}
}
],
"decorators": [],
"span": {
"start": 1266,
"end": 1342,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 1282,
"end": 1342,
"ctxt": 0
},
"stmts": [
{
"type": "VariableDeclaration",
"span": {
"start": 1292,
"end": 1313,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1296,
"end": 1312,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1296,
"end": 1297,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "CallExpression",
"span": {
"start": 1300,
"end": 1312,
"ctxt": 0
},
"callee": {
"type": "SuperPropExpression",
"span": {
"start": 1300,
"end": 1310,
"ctxt": 0
},
"obj": {
"type": "Super",
"span": {
"start": 1300,
"end": 1305,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 1306,
"end": 1310,
"ctxt": 0
},
"value": "func",
"optional": false
}
},
"arguments": [],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1322,
"end": 1336,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1326,
"end": 1335,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1326,
"end": 1327,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1327,
"end": 1335,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1329,
"end": 1335,
"ctxt": 0
},
"kind": "number"
}
}
},
"init": null,
"definite": false
}
]
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "setter",
"isStatic": true,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 1348,
"end": 1403,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 1348,
"end": 1358,
"ctxt": 0
},
"value": "returnThis",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 1348,
"end": 1403,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 1361,
"end": 1403,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 1371,
"end": 1397,
"ctxt": 0
},
"argument": {
"type": "CallExpression",
"span": {
"start": 1378,
"end": 1396,
"ctxt": 0
},
"callee": {
"type": "SuperPropExpression",
"span": {
"start": 1378,
"end": 1394,
"ctxt": 0
},
"obj": {
"type": "Super",
"span": {
"start": 1378,
"end": 1383,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 1384,
"end": 1394,
"ctxt": 0
},
"value": "returnThis",
"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": 692,
"end": 705,
"ctxt": 0
},
"value": "SomeBaseClass",
"optional": false
},
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "VariableDeclaration",
"span": {
"start": 1407,
"end": 1445,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1411,
"end": 1444,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1411,
"end": 1419,
"ctxt": 0
},
"value": "instance",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "NewExpression",
"span": {
"start": 1422,
"end": 1444,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 1426,
"end": 1442,
"ctxt": 0
},
"value": "SomeDerivedClass",
"optional": false
},
"arguments": [],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 1446,
"end": 1473,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 1446,
"end": 1472,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 1446,
"end": 1470,
"ctxt": 0
},
"object": {
"type": "CallExpression",
"span": {
"start": 1446,
"end": 1467,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 1446,
"end": 1465,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1446,
"end": 1454,
"ctxt": 0
},
"value": "instance",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1455,
"end": 1465,
"ctxt": 0
},
"value": "returnThis",
"optional": false
}
},
"arguments": [],
"typeArguments": null
},
"property": {
"type": "Identifier",
"span": {
"start": 1468,
"end": 1470,
"ctxt": 0
},
"value": "fn",
"optional": false
}
},
"arguments": [],
"typeArguments": null
}
}
],
"interpreter": null
}