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

2354 lines
79 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 21,
"end": 933,
"ctxt": 0
},
"body": [
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 27,
"end": 28,
"ctxt": 0
},
"value": "C",
"optional": false
},
"declare": false,
"span": {
"start": 21,
"end": 933,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "PrivateProperty",
"span": {
"start": 35,
"end": 61,
"ctxt": 0
},
"key": {
"type": "PrivateName",
"span": {
"start": 42,
"end": 47,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 43,
"end": 47,
"ctxt": 0
},
"value": "test",
"optional": false
}
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 58,
"end": 60,
"ctxt": 0
},
"value": 24.0,
"raw": "24"
},
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 47,
"end": 55,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 49,
"end": 55,
"ctxt": 0
},
"kind": "number"
}
},
"isStatic": true,
"decorators": [],
"accessibility": null,
"isOptional": false,
"isOverride": false,
"readonly": false,
"definite": false
},
{
"type": "Constructor",
"span": {
"start": 66,
"end": 387,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 66,
"end": 77,
"ctxt": 0
},
"value": "constructor",
"optional": false
},
"params": [],
"body": {
"type": "BlockStatement",
"span": {
"start": 80,
"end": 387,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 90,
"end": 100,
"ctxt": 0
},
"expression": {
"type": "UpdateExpression",
"span": {
"start": 90,
"end": 99,
"ctxt": 0
},
"operator": "++",
"prefix": false,
"argument": {
"type": "MemberExpression",
"span": {
"start": 90,
"end": 97,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 90,
"end": 91,
"ctxt": 0
},
"value": "C",
"optional": false
},
"property": {
"type": "PrivateName",
"span": {
"start": 92,
"end": 97,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 93,
"end": 97,
"ctxt": 0
},
"value": "test",
"optional": false
}
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 109,
"end": 119,
"ctxt": 0
},
"expression": {
"type": "UpdateExpression",
"span": {
"start": 109,
"end": 118,
"ctxt": 0
},
"operator": "--",
"prefix": false,
"argument": {
"type": "MemberExpression",
"span": {
"start": 109,
"end": 116,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 109,
"end": 110,
"ctxt": 0
},
"value": "C",
"optional": false
},
"property": {
"type": "PrivateName",
"span": {
"start": 111,
"end": 116,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 112,
"end": 116,
"ctxt": 0
},
"value": "test",
"optional": false
}
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 128,
"end": 138,
"ctxt": 0
},
"expression": {
"type": "UpdateExpression",
"span": {
"start": 128,
"end": 137,
"ctxt": 0
},
"operator": "++",
"prefix": true,
"argument": {
"type": "MemberExpression",
"span": {
"start": 130,
"end": 137,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 130,
"end": 131,
"ctxt": 0
},
"value": "C",
"optional": false
},
"property": {
"type": "PrivateName",
"span": {
"start": 132,
"end": 137,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 133,
"end": 137,
"ctxt": 0
},
"value": "test",
"optional": false
}
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 147,
"end": 157,
"ctxt": 0
},
"expression": {
"type": "UpdateExpression",
"span": {
"start": 147,
"end": 156,
"ctxt": 0
},
"operator": "--",
"prefix": true,
"argument": {
"type": "MemberExpression",
"span": {
"start": 149,
"end": 156,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 149,
"end": 150,
"ctxt": 0
},
"value": "C",
"optional": false
},
"property": {
"type": "PrivateName",
"span": {
"start": 151,
"end": 156,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 152,
"end": 156,
"ctxt": 0
},
"value": "test",
"optional": false
}
}
}
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 166,
"end": 186,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 172,
"end": 185,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 172,
"end": 173,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "UpdateExpression",
"span": {
"start": 176,
"end": 185,
"ctxt": 0
},
"operator": "++",
"prefix": false,
"argument": {
"type": "MemberExpression",
"span": {
"start": 176,
"end": 183,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 176,
"end": 177,
"ctxt": 0
},
"value": "C",
"optional": false
},
"property": {
"type": "PrivateName",
"span": {
"start": 178,
"end": 183,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 179,
"end": 183,
"ctxt": 0
},
"value": "test",
"optional": false
}
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 195,
"end": 215,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 201,
"end": 214,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 201,
"end": 202,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "UpdateExpression",
"span": {
"start": 205,
"end": 214,
"ctxt": 0
},
"operator": "--",
"prefix": false,
"argument": {
"type": "MemberExpression",
"span": {
"start": 205,
"end": 212,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 205,
"end": 206,
"ctxt": 0
},
"value": "C",
"optional": false
},
"property": {
"type": "PrivateName",
"span": {
"start": 207,
"end": 212,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 208,
"end": 212,
"ctxt": 0
},
"value": "test",
"optional": false
}
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 224,
"end": 244,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 230,
"end": 243,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 230,
"end": 231,
"ctxt": 0
},
"value": "c",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "UpdateExpression",
"span": {
"start": 234,
"end": 243,
"ctxt": 0
},
"operator": "++",
"prefix": true,
"argument": {
"type": "MemberExpression",
"span": {
"start": 236,
"end": 243,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 236,
"end": 237,
"ctxt": 0
},
"value": "C",
"optional": false
},
"property": {
"type": "PrivateName",
"span": {
"start": 238,
"end": 243,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 239,
"end": 243,
"ctxt": 0
},
"value": "test",
"optional": false
}
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 253,
"end": 273,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 259,
"end": 272,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 259,
"end": 260,
"ctxt": 0
},
"value": "d",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "UpdateExpression",
"span": {
"start": 263,
"end": 272,
"ctxt": 0
},
"operator": "--",
"prefix": true,
"argument": {
"type": "MemberExpression",
"span": {
"start": 265,
"end": 272,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 265,
"end": 266,
"ctxt": 0
},
"value": "C",
"optional": false
},
"property": {
"type": "PrivateName",
"span": {
"start": 267,
"end": 272,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 268,
"end": 272,
"ctxt": 0
},
"value": "test",
"optional": false
}
}
}
},
"definite": false
}
]
},
{
"type": "ForStatement",
"span": {
"start": 282,
"end": 327,
"ctxt": 0
},
"init": {
"type": "AssignmentExpression",
"span": {
"start": 287,
"end": 298,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 287,
"end": 294,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 287,
"end": 288,
"ctxt": 0
},
"value": "C",
"optional": false
},
"property": {
"type": "PrivateName",
"span": {
"start": 289,
"end": 294,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 290,
"end": 294,
"ctxt": 0
},
"value": "test",
"optional": false
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 297,
"end": 298,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
},
"test": {
"type": "BinaryExpression",
"span": {
"start": 300,
"end": 312,
"ctxt": 0
},
"operator": "<",
"left": {
"type": "MemberExpression",
"span": {
"start": 300,
"end": 307,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 300,
"end": 301,
"ctxt": 0
},
"value": "C",
"optional": false
},
"property": {
"type": "PrivateName",
"span": {
"start": 302,
"end": 307,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 303,
"end": 307,
"ctxt": 0
},
"value": "test",
"optional": false
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 310,
"end": 312,
"ctxt": 0
},
"value": 10.0,
"raw": "10"
}
},
"update": {
"type": "UpdateExpression",
"span": {
"start": 314,
"end": 323,
"ctxt": 0
},
"operator": "++",
"prefix": true,
"argument": {
"type": "MemberExpression",
"span": {
"start": 316,
"end": 323,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 316,
"end": 317,
"ctxt": 0
},
"value": "C",
"optional": false
},
"property": {
"type": "PrivateName",
"span": {
"start": 318,
"end": 323,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 319,
"end": 323,
"ctxt": 0
},
"value": "test",
"optional": false
}
}
}
},
"body": {
"type": "BlockStatement",
"span": {
"start": 325,
"end": 327,
"ctxt": 0
},
"stmts": []
}
},
{
"type": "ForStatement",
"span": {
"start": 336,
"end": 381,
"ctxt": 0
},
"init": {
"type": "AssignmentExpression",
"span": {
"start": 341,
"end": 352,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 341,
"end": 348,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 341,
"end": 342,
"ctxt": 0
},
"value": "C",
"optional": false
},
"property": {
"type": "PrivateName",
"span": {
"start": 343,
"end": 348,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 344,
"end": 348,
"ctxt": 0
},
"value": "test",
"optional": false
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 351,
"end": 352,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
},
"test": {
"type": "BinaryExpression",
"span": {
"start": 354,
"end": 366,
"ctxt": 0
},
"operator": "<",
"left": {
"type": "MemberExpression",
"span": {
"start": 354,
"end": 361,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 354,
"end": 355,
"ctxt": 0
},
"value": "C",
"optional": false
},
"property": {
"type": "PrivateName",
"span": {
"start": 356,
"end": 361,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 357,
"end": 361,
"ctxt": 0
},
"value": "test",
"optional": false
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 364,
"end": 366,
"ctxt": 0
},
"value": 10.0,
"raw": "10"
}
},
"update": {
"type": "UpdateExpression",
"span": {
"start": 368,
"end": 377,
"ctxt": 0
},
"operator": "++",
"prefix": false,
"argument": {
"type": "MemberExpression",
"span": {
"start": 368,
"end": 375,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 368,
"end": 369,
"ctxt": 0
},
"value": "C",
"optional": false
},
"property": {
"type": "PrivateName",
"span": {
"start": 370,
"end": 375,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 371,
"end": 375,
"ctxt": 0
},
"value": "test",
"optional": false
}
}
}
},
"body": {
"type": "BlockStatement",
"span": {
"start": 379,
"end": 381,
"ctxt": 0
},
"stmts": []
}
}
]
},
"accessibility": null,
"isOptional": false
},
{
"type": "ClassMethod",
"span": {
"start": 392,
"end": 902,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 392,
"end": 396,
"ctxt": 0
},
"value": "test",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 392,
"end": 902,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 399,
"end": 902,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 409,
"end": 433,
"ctxt": 0
},
"expression": {
"type": "UpdateExpression",
"span": {
"start": 409,
"end": 432,
"ctxt": 0
},
"operator": "++",
"prefix": false,
"argument": {
"type": "MemberExpression",
"span": {
"start": 409,
"end": 430,
"ctxt": 0
},
"object": {
"type": "CallExpression",
"span": {
"start": 409,
"end": 424,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 409,
"end": 422,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 409,
"end": 413,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 414,
"end": 422,
"ctxt": 0
},
"value": "getClass",
"optional": false
}
},
"arguments": [],
"typeArguments": null
},
"property": {
"type": "PrivateName",
"span": {
"start": 425,
"end": 430,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 426,
"end": 430,
"ctxt": 0
},
"value": "test",
"optional": false
}
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 442,
"end": 466,
"ctxt": 0
},
"expression": {
"type": "UpdateExpression",
"span": {
"start": 442,
"end": 465,
"ctxt": 0
},
"operator": "--",
"prefix": false,
"argument": {
"type": "MemberExpression",
"span": {
"start": 442,
"end": 463,
"ctxt": 0
},
"object": {
"type": "CallExpression",
"span": {
"start": 442,
"end": 457,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 442,
"end": 455,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 442,
"end": 446,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 447,
"end": 455,
"ctxt": 0
},
"value": "getClass",
"optional": false
}
},
"arguments": [],
"typeArguments": null
},
"property": {
"type": "PrivateName",
"span": {
"start": 458,
"end": 463,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 459,
"end": 463,
"ctxt": 0
},
"value": "test",
"optional": false
}
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 475,
"end": 499,
"ctxt": 0
},
"expression": {
"type": "UpdateExpression",
"span": {
"start": 475,
"end": 498,
"ctxt": 0
},
"operator": "++",
"prefix": true,
"argument": {
"type": "MemberExpression",
"span": {
"start": 477,
"end": 498,
"ctxt": 0
},
"object": {
"type": "CallExpression",
"span": {
"start": 477,
"end": 492,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 477,
"end": 490,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 477,
"end": 481,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 482,
"end": 490,
"ctxt": 0
},
"value": "getClass",
"optional": false
}
},
"arguments": [],
"typeArguments": null
},
"property": {
"type": "PrivateName",
"span": {
"start": 493,
"end": 498,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 494,
"end": 498,
"ctxt": 0
},
"value": "test",
"optional": false
}
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 508,
"end": 532,
"ctxt": 0
},
"expression": {
"type": "UpdateExpression",
"span": {
"start": 508,
"end": 531,
"ctxt": 0
},
"operator": "--",
"prefix": true,
"argument": {
"type": "MemberExpression",
"span": {
"start": 510,
"end": 531,
"ctxt": 0
},
"object": {
"type": "CallExpression",
"span": {
"start": 510,
"end": 525,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 510,
"end": 523,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 510,
"end": 514,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 515,
"end": 523,
"ctxt": 0
},
"value": "getClass",
"optional": false
}
},
"arguments": [],
"typeArguments": null
},
"property": {
"type": "PrivateName",
"span": {
"start": 526,
"end": 531,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 527,
"end": 531,
"ctxt": 0
},
"value": "test",
"optional": false
}
}
}
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 541,
"end": 575,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 547,
"end": 574,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 547,
"end": 548,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "UpdateExpression",
"span": {
"start": 551,
"end": 574,
"ctxt": 0
},
"operator": "++",
"prefix": false,
"argument": {
"type": "MemberExpression",
"span": {
"start": 551,
"end": 572,
"ctxt": 0
},
"object": {
"type": "CallExpression",
"span": {
"start": 551,
"end": 566,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 551,
"end": 564,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 551,
"end": 555,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 556,
"end": 564,
"ctxt": 0
},
"value": "getClass",
"optional": false
}
},
"arguments": [],
"typeArguments": null
},
"property": {
"type": "PrivateName",
"span": {
"start": 567,
"end": 572,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 568,
"end": 572,
"ctxt": 0
},
"value": "test",
"optional": false
}
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 584,
"end": 618,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 590,
"end": 617,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 590,
"end": 591,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "UpdateExpression",
"span": {
"start": 594,
"end": 617,
"ctxt": 0
},
"operator": "--",
"prefix": false,
"argument": {
"type": "MemberExpression",
"span": {
"start": 594,
"end": 615,
"ctxt": 0
},
"object": {
"type": "CallExpression",
"span": {
"start": 594,
"end": 609,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 594,
"end": 607,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 594,
"end": 598,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 599,
"end": 607,
"ctxt": 0
},
"value": "getClass",
"optional": false
}
},
"arguments": [],
"typeArguments": null
},
"property": {
"type": "PrivateName",
"span": {
"start": 610,
"end": 615,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 611,
"end": 615,
"ctxt": 0
},
"value": "test",
"optional": false
}
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 627,
"end": 661,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 633,
"end": 660,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 633,
"end": 634,
"ctxt": 0
},
"value": "c",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "UpdateExpression",
"span": {
"start": 637,
"end": 660,
"ctxt": 0
},
"operator": "++",
"prefix": true,
"argument": {
"type": "MemberExpression",
"span": {
"start": 639,
"end": 660,
"ctxt": 0
},
"object": {
"type": "CallExpression",
"span": {
"start": 639,
"end": 654,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 639,
"end": 652,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 639,
"end": 643,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 644,
"end": 652,
"ctxt": 0
},
"value": "getClass",
"optional": false
}
},
"arguments": [],
"typeArguments": null
},
"property": {
"type": "PrivateName",
"span": {
"start": 655,
"end": 660,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 656,
"end": 660,
"ctxt": 0
},
"value": "test",
"optional": false
}
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 670,
"end": 704,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 676,
"end": 703,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 676,
"end": 677,
"ctxt": 0
},
"value": "d",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "UpdateExpression",
"span": {
"start": 680,
"end": 703,
"ctxt": 0
},
"operator": "--",
"prefix": true,
"argument": {
"type": "MemberExpression",
"span": {
"start": 682,
"end": 703,
"ctxt": 0
},
"object": {
"type": "CallExpression",
"span": {
"start": 682,
"end": 697,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 682,
"end": 695,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 682,
"end": 686,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 687,
"end": 695,
"ctxt": 0
},
"value": "getClass",
"optional": false
}
},
"arguments": [],
"typeArguments": null
},
"property": {
"type": "PrivateName",
"span": {
"start": 698,
"end": 703,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 699,
"end": 703,
"ctxt": 0
},
"value": "test",
"optional": false
}
}
}
},
"definite": false
}
]
},
{
"type": "ForStatement",
"span": {
"start": 713,
"end": 800,
"ctxt": 0
},
"init": {
"type": "AssignmentExpression",
"span": {
"start": 718,
"end": 743,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 718,
"end": 739,
"ctxt": 0
},
"object": {
"type": "CallExpression",
"span": {
"start": 718,
"end": 733,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 718,
"end": 731,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 718,
"end": 722,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 723,
"end": 731,
"ctxt": 0
},
"value": "getClass",
"optional": false
}
},
"arguments": [],
"typeArguments": null
},
"property": {
"type": "PrivateName",
"span": {
"start": 734,
"end": 739,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 735,
"end": 739,
"ctxt": 0
},
"value": "test",
"optional": false
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 742,
"end": 743,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
},
"test": {
"type": "BinaryExpression",
"span": {
"start": 745,
"end": 771,
"ctxt": 0
},
"operator": "<",
"left": {
"type": "MemberExpression",
"span": {
"start": 745,
"end": 766,
"ctxt": 0
},
"object": {
"type": "CallExpression",
"span": {
"start": 745,
"end": 760,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 745,
"end": 758,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 745,
"end": 749,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 750,
"end": 758,
"ctxt": 0
},
"value": "getClass",
"optional": false
}
},
"arguments": [],
"typeArguments": null
},
"property": {
"type": "PrivateName",
"span": {
"start": 761,
"end": 766,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 762,
"end": 766,
"ctxt": 0
},
"value": "test",
"optional": false
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 769,
"end": 771,
"ctxt": 0
},
"value": 10.0,
"raw": "10"
}
},
"update": {
"type": "UpdateExpression",
"span": {
"start": 773,
"end": 796,
"ctxt": 0
},
"operator": "++",
"prefix": true,
"argument": {
"type": "MemberExpression",
"span": {
"start": 775,
"end": 796,
"ctxt": 0
},
"object": {
"type": "CallExpression",
"span": {
"start": 775,
"end": 790,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 775,
"end": 788,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 775,
"end": 779,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 780,
"end": 788,
"ctxt": 0
},
"value": "getClass",
"optional": false
}
},
"arguments": [],
"typeArguments": null
},
"property": {
"type": "PrivateName",
"span": {
"start": 791,
"end": 796,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 792,
"end": 796,
"ctxt": 0
},
"value": "test",
"optional": false
}
}
}
},
"body": {
"type": "BlockStatement",
"span": {
"start": 798,
"end": 800,
"ctxt": 0
},
"stmts": []
}
},
{
"type": "ForStatement",
"span": {
"start": 809,
"end": 896,
"ctxt": 0
},
"init": {
"type": "AssignmentExpression",
"span": {
"start": 814,
"end": 839,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 814,
"end": 835,
"ctxt": 0
},
"object": {
"type": "CallExpression",
"span": {
"start": 814,
"end": 829,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 814,
"end": 827,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 814,
"end": 818,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 819,
"end": 827,
"ctxt": 0
},
"value": "getClass",
"optional": false
}
},
"arguments": [],
"typeArguments": null
},
"property": {
"type": "PrivateName",
"span": {
"start": 830,
"end": 835,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 831,
"end": 835,
"ctxt": 0
},
"value": "test",
"optional": false
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 838,
"end": 839,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
},
"test": {
"type": "BinaryExpression",
"span": {
"start": 841,
"end": 867,
"ctxt": 0
},
"operator": "<",
"left": {
"type": "MemberExpression",
"span": {
"start": 841,
"end": 862,
"ctxt": 0
},
"object": {
"type": "CallExpression",
"span": {
"start": 841,
"end": 856,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 841,
"end": 854,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 841,
"end": 845,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 846,
"end": 854,
"ctxt": 0
},
"value": "getClass",
"optional": false
}
},
"arguments": [],
"typeArguments": null
},
"property": {
"type": "PrivateName",
"span": {
"start": 857,
"end": 862,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 858,
"end": 862,
"ctxt": 0
},
"value": "test",
"optional": false
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 865,
"end": 867,
"ctxt": 0
},
"value": 10.0,
"raw": "10"
}
},
"update": {
"type": "UpdateExpression",
"span": {
"start": 869,
"end": 892,
"ctxt": 0
},
"operator": "++",
"prefix": false,
"argument": {
"type": "MemberExpression",
"span": {
"start": 869,
"end": 890,
"ctxt": 0
},
"object": {
"type": "CallExpression",
"span": {
"start": 869,
"end": 884,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 869,
"end": 882,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 869,
"end": 873,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 874,
"end": 882,
"ctxt": 0
},
"value": "getClass",
"optional": false
}
},
"arguments": [],
"typeArguments": null
},
"property": {
"type": "PrivateName",
"span": {
"start": 885,
"end": 890,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 886,
"end": 890,
"ctxt": 0
},
"value": "test",
"optional": false
}
}
}
},
"body": {
"type": "BlockStatement",
"span": {
"start": 894,
"end": 896,
"ctxt": 0
},
"stmts": []
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "method",
"isStatic": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 907,
"end": 931,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 907,
"end": 915,
"ctxt": 0
},
"value": "getClass",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 907,
"end": 931,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 918,
"end": 931,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 920,
"end": 929,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 927,
"end": 928,
"ctxt": 0
},
"value": "C",
"optional": false
}
}
]
},
"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": []
}
],
"interpreter": null
}