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

1783 lines
51 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 15,
"end": 848,
"ctxt": 0
},
"body": [
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 21,
"end": 22,
"ctxt": 0
},
"value": "C",
"optional": false
},
"declare": false,
"span": {
"start": 15,
"end": 382,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 29,
"end": 47,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 37,
"end": 38,
"ctxt": 0
},
"value": "x",
"optional": false
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 38,
"end": 46,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 40,
"end": 46,
"ctxt": 0
},
"kind": "string"
}
},
"isStatic": false,
"decorators": [],
"accessibility": "private",
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
},
{
"type": "ClassMethod",
"span": {
"start": 52,
"end": 86,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 64,
"end": 65,
"ctxt": 0
},
"value": "y",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 52,
"end": 86,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 68,
"end": 86,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 70,
"end": 84,
"ctxt": 0
},
"argument": {
"type": "MemberExpression",
"span": {
"start": 77,
"end": 83,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 77,
"end": 81,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 82,
"end": 83,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "getter",
"isStatic": false,
"accessibility": "private",
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 91,
"end": 128,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 103,
"end": 104,
"ctxt": 0
},
"value": "y",
"optional": false
},
"function": {
"params": [
{
"type": "Parameter",
"span": {
"start": 105,
"end": 106,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 105,
"end": 106,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
}
}
],
"decorators": [],
"span": {
"start": 91,
"end": 128,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 108,
"end": 128,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 110,
"end": 126,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 110,
"end": 125,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 110,
"end": 116,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 110,
"end": 114,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 115,
"end": 116,
"ctxt": 0
},
"value": "y",
"optional": false
}
},
"right": {
"type": "MemberExpression",
"span": {
"start": 119,
"end": 125,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 119,
"end": 123,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 124,
"end": 125,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "setter",
"isStatic": false,
"accessibility": "private",
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 133,
"end": 167,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 141,
"end": 144,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 133,
"end": 167,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 147,
"end": 167,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 149,
"end": 165,
"ctxt": 0
},
"argument": {
"type": "MemberExpression",
"span": {
"start": 156,
"end": 164,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 156,
"end": 160,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 161,
"end": 164,
"ctxt": 0
},
"value": "foo",
"optional": false
}
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "method",
"isStatic": false,
"accessibility": "private",
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassProperty",
"span": {
"start": 173,
"end": 198,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 188,
"end": 189,
"ctxt": 0
},
"value": "x",
"optional": false
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 189,
"end": 197,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 191,
"end": 197,
"ctxt": 0
},
"kind": "string"
}
},
"isStatic": true,
"decorators": [],
"accessibility": "private",
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
},
{
"type": "ClassMethod",
"span": {
"start": 203,
"end": 244,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 222,
"end": 223,
"ctxt": 0
},
"value": "y",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 203,
"end": 244,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 226,
"end": 244,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 228,
"end": 242,
"ctxt": 0
},
"argument": {
"type": "MemberExpression",
"span": {
"start": 235,
"end": 241,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 235,
"end": 239,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 240,
"end": 241,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "getter",
"isStatic": true,
"accessibility": "private",
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 249,
"end": 293,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 268,
"end": 269,
"ctxt": 0
},
"value": "y",
"optional": false
},
"function": {
"params": [
{
"type": "Parameter",
"span": {
"start": 270,
"end": 271,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 270,
"end": 271,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
}
}
],
"decorators": [],
"span": {
"start": 249,
"end": 293,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 273,
"end": 293,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 275,
"end": 291,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 275,
"end": 290,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 275,
"end": 281,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 275,
"end": 279,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 280,
"end": 281,
"ctxt": 0
},
"value": "y",
"optional": false
}
},
"right": {
"type": "MemberExpression",
"span": {
"start": 284,
"end": 290,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 284,
"end": 288,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 289,
"end": 290,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "setter",
"isStatic": true,
"accessibility": "private",
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 298,
"end": 339,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 313,
"end": 316,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 298,
"end": 339,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 319,
"end": 339,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 321,
"end": 337,
"ctxt": 0
},
"argument": {
"type": "MemberExpression",
"span": {
"start": 328,
"end": 336,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 328,
"end": 332,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 333,
"end": 336,
"ctxt": 0
},
"value": "foo",
"optional": false
}
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "method",
"isStatic": true,
"accessibility": "private",
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 344,
"end": 380,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 359,
"end": 362,
"ctxt": 0
},
"value": "bar",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 344,
"end": 380,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 365,
"end": 380,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 367,
"end": 378,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 367,
"end": 377,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 367,
"end": 375,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 367,
"end": 371,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 372,
"end": 375,
"ctxt": 0
},
"value": "foo",
"optional": false
}
},
"arguments": [],
"typeArguments": null
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "method",
"isStatic": true,
"accessibility": "private",
"isAbstract": false,
"isOptional": false,
"isOverride": false
}
],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 425,
"end": 427,
"ctxt": 0
},
"value": "C2",
"optional": false
},
"declare": false,
"span": {
"start": 419,
"end": 848,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 434,
"end": 452,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 442,
"end": 443,
"ctxt": 0
},
"value": "x",
"optional": false
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 443,
"end": 451,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 445,
"end": 451,
"ctxt": 0
},
"kind": "string"
}
},
"isStatic": false,
"decorators": [],
"accessibility": "private",
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
},
{
"type": "ClassMethod",
"span": {
"start": 457,
"end": 503,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 469,
"end": 470,
"ctxt": 0
},
"value": "y",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 457,
"end": 503,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 473,
"end": 503,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 475,
"end": 488,
"ctxt": 0
},
"expression": {
"type": "ArrowFunctionExpression",
"span": {
"start": 475,
"end": 487,
"ctxt": 0
},
"params": [],
"body": {
"type": "MemberExpression",
"span": {
"start": 481,
"end": 487,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 481,
"end": 485,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 486,
"end": 487,
"ctxt": 0
},
"value": "x",
"optional": false
}
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
}
},
{
"type": "ReturnStatement",
"span": {
"start": 489,
"end": 501,
"ctxt": 0
},
"argument": {
"type": "NullLiteral",
"span": {
"start": 496,
"end": 500,
"ctxt": 0
}
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "getter",
"isStatic": false,
"accessibility": "private",
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 508,
"end": 555,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 520,
"end": 521,
"ctxt": 0
},
"value": "y",
"optional": false
},
"function": {
"params": [
{
"type": "Parameter",
"span": {
"start": 522,
"end": 523,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 522,
"end": 523,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
}
}
],
"decorators": [],
"span": {
"start": 508,
"end": 555,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 525,
"end": 555,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 527,
"end": 553,
"ctxt": 0
},
"expression": {
"type": "ArrowFunctionExpression",
"span": {
"start": 527,
"end": 553,
"ctxt": 0
},
"params": [],
"body": {
"type": "BlockStatement",
"span": {
"start": 533,
"end": 553,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 535,
"end": 551,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 535,
"end": 550,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 535,
"end": 541,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 535,
"end": 539,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 540,
"end": 541,
"ctxt": 0
},
"value": "y",
"optional": false
}
},
"right": {
"type": "MemberExpression",
"span": {
"start": 544,
"end": 550,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 544,
"end": 548,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 549,
"end": 550,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
}
}
]
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "setter",
"isStatic": false,
"accessibility": "private",
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 560,
"end": 593,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 568,
"end": 571,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 560,
"end": 593,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 574,
"end": 593,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 576,
"end": 591,
"ctxt": 0
},
"expression": {
"type": "ArrowFunctionExpression",
"span": {
"start": 576,
"end": 590,
"ctxt": 0
},
"params": [],
"body": {
"type": "MemberExpression",
"span": {
"start": 582,
"end": 590,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 582,
"end": 586,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 587,
"end": 590,
"ctxt": 0
},
"value": "foo",
"optional": false
}
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "method",
"isStatic": false,
"accessibility": "private",
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassProperty",
"span": {
"start": 599,
"end": 624,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 614,
"end": 615,
"ctxt": 0
},
"value": "x",
"optional": false
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 615,
"end": 623,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 617,
"end": 623,
"ctxt": 0
},
"kind": "string"
}
},
"isStatic": true,
"decorators": [],
"accessibility": "private",
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
},
{
"type": "ClassMethod",
"span": {
"start": 629,
"end": 682,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 648,
"end": 649,
"ctxt": 0
},
"value": "y",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 629,
"end": 682,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 652,
"end": 682,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 654,
"end": 667,
"ctxt": 0
},
"expression": {
"type": "ArrowFunctionExpression",
"span": {
"start": 654,
"end": 666,
"ctxt": 0
},
"params": [],
"body": {
"type": "MemberExpression",
"span": {
"start": 660,
"end": 666,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 660,
"end": 664,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 665,
"end": 666,
"ctxt": 0
},
"value": "x",
"optional": false
}
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
}
},
{
"type": "ReturnStatement",
"span": {
"start": 668,
"end": 680,
"ctxt": 0
},
"argument": {
"type": "NullLiteral",
"span": {
"start": 675,
"end": 679,
"ctxt": 0
}
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "getter",
"isStatic": true,
"accessibility": "private",
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 687,
"end": 754,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 706,
"end": 707,
"ctxt": 0
},
"value": "y",
"optional": false
},
"function": {
"params": [
{
"type": "Parameter",
"span": {
"start": 708,
"end": 709,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 708,
"end": 709,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
}
}
],
"decorators": [],
"span": {
"start": 687,
"end": 754,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 711,
"end": 754,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 721,
"end": 747,
"ctxt": 0
},
"expression": {
"type": "ArrowFunctionExpression",
"span": {
"start": 721,
"end": 747,
"ctxt": 0
},
"params": [],
"body": {
"type": "BlockStatement",
"span": {
"start": 727,
"end": 747,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 729,
"end": 745,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 729,
"end": 744,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 729,
"end": 735,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 729,
"end": 733,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 734,
"end": 735,
"ctxt": 0
},
"value": "y",
"optional": false
}
},
"right": {
"type": "MemberExpression",
"span": {
"start": 738,
"end": 744,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 738,
"end": 742,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 743,
"end": 744,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
}
}
]
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "setter",
"isStatic": true,
"accessibility": "private",
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 759,
"end": 799,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 774,
"end": 777,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 759,
"end": 799,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 780,
"end": 799,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 782,
"end": 797,
"ctxt": 0
},
"expression": {
"type": "ArrowFunctionExpression",
"span": {
"start": 782,
"end": 796,
"ctxt": 0
},
"params": [],
"body": {
"type": "MemberExpression",
"span": {
"start": 788,
"end": 796,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 788,
"end": 792,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 793,
"end": 796,
"ctxt": 0
},
"value": "foo",
"optional": false
}
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "method",
"isStatic": true,
"accessibility": "private",
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 804,
"end": 846,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 819,
"end": 822,
"ctxt": 0
},
"value": "bar",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 804,
"end": 846,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 825,
"end": 846,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 827,
"end": 844,
"ctxt": 0
},
"expression": {
"type": "ArrowFunctionExpression",
"span": {
"start": 827,
"end": 843,
"ctxt": 0
},
"params": [],
"body": {
"type": "CallExpression",
"span": {
"start": 833,
"end": 843,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 833,
"end": 841,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 833,
"end": 837,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 838,
"end": 841,
"ctxt": 0
},
"value": "foo",
"optional": false
}
},
"arguments": [],
"typeArguments": null
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "method",
"isStatic": true,
"accessibility": "private",
"isAbstract": false,
"isOptional": false,
"isOverride": false
}
],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
}
],
"interpreter": null
}