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

2354 lines
79 KiB
JSON

{
"type": "Script",
"span": {
"start": 20,
"end": 932,
"ctxt": 0
},
"body": [
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 26,
"end": 27,
"ctxt": 0
},
"value": "C",
"optional": false
},
"declare": false,
"span": {
"start": 20,
"end": 932,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "PrivateProperty",
"span": {
"start": 34,
"end": 60,
"ctxt": 0
},
"key": {
"type": "PrivateName",
"span": {
"start": 41,
"end": 46,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 42,
"end": 46,
"ctxt": 0
},
"value": "test",
"optional": false
}
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 57,
"end": 59,
"ctxt": 0
},
"value": 24.0,
"raw": "24"
},
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 46,
"end": 54,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 48,
"end": 54,
"ctxt": 0
},
"kind": "number"
}
},
"isStatic": true,
"decorators": [],
"accessibility": null,
"isOptional": false,
"isOverride": false,
"readonly": false,
"definite": false
},
{
"type": "Constructor",
"span": {
"start": 65,
"end": 386,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 65,
"end": 76,
"ctxt": 0
},
"value": "constructor",
"optional": false
},
"params": [],
"body": {
"type": "BlockStatement",
"span": {
"start": 79,
"end": 386,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 89,
"end": 99,
"ctxt": 0
},
"expression": {
"type": "UpdateExpression",
"span": {
"start": 89,
"end": 98,
"ctxt": 0
},
"operator": "++",
"prefix": false,
"argument": {
"type": "MemberExpression",
"span": {
"start": 89,
"end": 96,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 89,
"end": 90,
"ctxt": 0
},
"value": "C",
"optional": false
},
"property": {
"type": "PrivateName",
"span": {
"start": 91,
"end": 96,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 92,
"end": 96,
"ctxt": 0
},
"value": "test",
"optional": false
}
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 108,
"end": 118,
"ctxt": 0
},
"expression": {
"type": "UpdateExpression",
"span": {
"start": 108,
"end": 117,
"ctxt": 0
},
"operator": "--",
"prefix": false,
"argument": {
"type": "MemberExpression",
"span": {
"start": 108,
"end": 115,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 108,
"end": 109,
"ctxt": 0
},
"value": "C",
"optional": false
},
"property": {
"type": "PrivateName",
"span": {
"start": 110,
"end": 115,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 111,
"end": 115,
"ctxt": 0
},
"value": "test",
"optional": false
}
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 127,
"end": 137,
"ctxt": 0
},
"expression": {
"type": "UpdateExpression",
"span": {
"start": 127,
"end": 136,
"ctxt": 0
},
"operator": "++",
"prefix": true,
"argument": {
"type": "MemberExpression",
"span": {
"start": 129,
"end": 136,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 129,
"end": 130,
"ctxt": 0
},
"value": "C",
"optional": false
},
"property": {
"type": "PrivateName",
"span": {
"start": 131,
"end": 136,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 132,
"end": 136,
"ctxt": 0
},
"value": "test",
"optional": false
}
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 146,
"end": 156,
"ctxt": 0
},
"expression": {
"type": "UpdateExpression",
"span": {
"start": 146,
"end": 155,
"ctxt": 0
},
"operator": "--",
"prefix": true,
"argument": {
"type": "MemberExpression",
"span": {
"start": 148,
"end": 155,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 148,
"end": 149,
"ctxt": 0
},
"value": "C",
"optional": false
},
"property": {
"type": "PrivateName",
"span": {
"start": 150,
"end": 155,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 151,
"end": 155,
"ctxt": 0
},
"value": "test",
"optional": false
}
}
}
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 165,
"end": 185,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 171,
"end": 184,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 171,
"end": 172,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "UpdateExpression",
"span": {
"start": 175,
"end": 184,
"ctxt": 0
},
"operator": "++",
"prefix": false,
"argument": {
"type": "MemberExpression",
"span": {
"start": 175,
"end": 182,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 175,
"end": 176,
"ctxt": 0
},
"value": "C",
"optional": false
},
"property": {
"type": "PrivateName",
"span": {
"start": 177,
"end": 182,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 178,
"end": 182,
"ctxt": 0
},
"value": "test",
"optional": false
}
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 194,
"end": 214,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 200,
"end": 213,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 200,
"end": 201,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "UpdateExpression",
"span": {
"start": 204,
"end": 213,
"ctxt": 0
},
"operator": "--",
"prefix": false,
"argument": {
"type": "MemberExpression",
"span": {
"start": 204,
"end": 211,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 204,
"end": 205,
"ctxt": 0
},
"value": "C",
"optional": false
},
"property": {
"type": "PrivateName",
"span": {
"start": 206,
"end": 211,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 207,
"end": 211,
"ctxt": 0
},
"value": "test",
"optional": false
}
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 223,
"end": 243,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 229,
"end": 242,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 229,
"end": 230,
"ctxt": 0
},
"value": "c",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "UpdateExpression",
"span": {
"start": 233,
"end": 242,
"ctxt": 0
},
"operator": "++",
"prefix": true,
"argument": {
"type": "MemberExpression",
"span": {
"start": 235,
"end": 242,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 235,
"end": 236,
"ctxt": 0
},
"value": "C",
"optional": false
},
"property": {
"type": "PrivateName",
"span": {
"start": 237,
"end": 242,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 238,
"end": 242,
"ctxt": 0
},
"value": "test",
"optional": false
}
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 252,
"end": 272,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 258,
"end": 271,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 258,
"end": 259,
"ctxt": 0
},
"value": "d",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "UpdateExpression",
"span": {
"start": 262,
"end": 271,
"ctxt": 0
},
"operator": "--",
"prefix": true,
"argument": {
"type": "MemberExpression",
"span": {
"start": 264,
"end": 271,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 264,
"end": 265,
"ctxt": 0
},
"value": "C",
"optional": false
},
"property": {
"type": "PrivateName",
"span": {
"start": 266,
"end": 271,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 267,
"end": 271,
"ctxt": 0
},
"value": "test",
"optional": false
}
}
}
},
"definite": false
}
]
},
{
"type": "ForStatement",
"span": {
"start": 281,
"end": 326,
"ctxt": 0
},
"init": {
"type": "AssignmentExpression",
"span": {
"start": 286,
"end": 297,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 286,
"end": 293,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 286,
"end": 287,
"ctxt": 0
},
"value": "C",
"optional": false
},
"property": {
"type": "PrivateName",
"span": {
"start": 288,
"end": 293,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 289,
"end": 293,
"ctxt": 0
},
"value": "test",
"optional": false
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 296,
"end": 297,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
},
"test": {
"type": "BinaryExpression",
"span": {
"start": 299,
"end": 311,
"ctxt": 0
},
"operator": "<",
"left": {
"type": "MemberExpression",
"span": {
"start": 299,
"end": 306,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 299,
"end": 300,
"ctxt": 0
},
"value": "C",
"optional": false
},
"property": {
"type": "PrivateName",
"span": {
"start": 301,
"end": 306,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 302,
"end": 306,
"ctxt": 0
},
"value": "test",
"optional": false
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 309,
"end": 311,
"ctxt": 0
},
"value": 10.0,
"raw": "10"
}
},
"update": {
"type": "UpdateExpression",
"span": {
"start": 313,
"end": 322,
"ctxt": 0
},
"operator": "++",
"prefix": true,
"argument": {
"type": "MemberExpression",
"span": {
"start": 315,
"end": 322,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 315,
"end": 316,
"ctxt": 0
},
"value": "C",
"optional": false
},
"property": {
"type": "PrivateName",
"span": {
"start": 317,
"end": 322,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 318,
"end": 322,
"ctxt": 0
},
"value": "test",
"optional": false
}
}
}
},
"body": {
"type": "BlockStatement",
"span": {
"start": 324,
"end": 326,
"ctxt": 0
},
"stmts": []
}
},
{
"type": "ForStatement",
"span": {
"start": 335,
"end": 380,
"ctxt": 0
},
"init": {
"type": "AssignmentExpression",
"span": {
"start": 340,
"end": 351,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 340,
"end": 347,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 340,
"end": 341,
"ctxt": 0
},
"value": "C",
"optional": false
},
"property": {
"type": "PrivateName",
"span": {
"start": 342,
"end": 347,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 343,
"end": 347,
"ctxt": 0
},
"value": "test",
"optional": false
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 350,
"end": 351,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
},
"test": {
"type": "BinaryExpression",
"span": {
"start": 353,
"end": 365,
"ctxt": 0
},
"operator": "<",
"left": {
"type": "MemberExpression",
"span": {
"start": 353,
"end": 360,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 353,
"end": 354,
"ctxt": 0
},
"value": "C",
"optional": false
},
"property": {
"type": "PrivateName",
"span": {
"start": 355,
"end": 360,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 356,
"end": 360,
"ctxt": 0
},
"value": "test",
"optional": false
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 363,
"end": 365,
"ctxt": 0
},
"value": 10.0,
"raw": "10"
}
},
"update": {
"type": "UpdateExpression",
"span": {
"start": 367,
"end": 376,
"ctxt": 0
},
"operator": "++",
"prefix": false,
"argument": {
"type": "MemberExpression",
"span": {
"start": 367,
"end": 374,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 367,
"end": 368,
"ctxt": 0
},
"value": "C",
"optional": false
},
"property": {
"type": "PrivateName",
"span": {
"start": 369,
"end": 374,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 370,
"end": 374,
"ctxt": 0
},
"value": "test",
"optional": false
}
}
}
},
"body": {
"type": "BlockStatement",
"span": {
"start": 378,
"end": 380,
"ctxt": 0
},
"stmts": []
}
}
]
},
"accessibility": null,
"isOptional": false
},
{
"type": "ClassMethod",
"span": {
"start": 391,
"end": 901,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 391,
"end": 395,
"ctxt": 0
},
"value": "test",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 391,
"end": 901,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 398,
"end": 901,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 408,
"end": 432,
"ctxt": 0
},
"expression": {
"type": "UpdateExpression",
"span": {
"start": 408,
"end": 431,
"ctxt": 0
},
"operator": "++",
"prefix": false,
"argument": {
"type": "MemberExpression",
"span": {
"start": 408,
"end": 429,
"ctxt": 0
},
"object": {
"type": "CallExpression",
"span": {
"start": 408,
"end": 423,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 408,
"end": 421,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 408,
"end": 412,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 413,
"end": 421,
"ctxt": 0
},
"value": "getClass",
"optional": false
}
},
"arguments": [],
"typeArguments": null
},
"property": {
"type": "PrivateName",
"span": {
"start": 424,
"end": 429,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 425,
"end": 429,
"ctxt": 0
},
"value": "test",
"optional": false
}
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 441,
"end": 465,
"ctxt": 0
},
"expression": {
"type": "UpdateExpression",
"span": {
"start": 441,
"end": 464,
"ctxt": 0
},
"operator": "--",
"prefix": false,
"argument": {
"type": "MemberExpression",
"span": {
"start": 441,
"end": 462,
"ctxt": 0
},
"object": {
"type": "CallExpression",
"span": {
"start": 441,
"end": 456,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 441,
"end": 454,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 441,
"end": 445,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 446,
"end": 454,
"ctxt": 0
},
"value": "getClass",
"optional": false
}
},
"arguments": [],
"typeArguments": null
},
"property": {
"type": "PrivateName",
"span": {
"start": 457,
"end": 462,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 458,
"end": 462,
"ctxt": 0
},
"value": "test",
"optional": false
}
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 474,
"end": 498,
"ctxt": 0
},
"expression": {
"type": "UpdateExpression",
"span": {
"start": 474,
"end": 497,
"ctxt": 0
},
"operator": "++",
"prefix": true,
"argument": {
"type": "MemberExpression",
"span": {
"start": 476,
"end": 497,
"ctxt": 0
},
"object": {
"type": "CallExpression",
"span": {
"start": 476,
"end": 491,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 476,
"end": 489,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 476,
"end": 480,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 481,
"end": 489,
"ctxt": 0
},
"value": "getClass",
"optional": false
}
},
"arguments": [],
"typeArguments": null
},
"property": {
"type": "PrivateName",
"span": {
"start": 492,
"end": 497,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 493,
"end": 497,
"ctxt": 0
},
"value": "test",
"optional": false
}
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 507,
"end": 531,
"ctxt": 0
},
"expression": {
"type": "UpdateExpression",
"span": {
"start": 507,
"end": 530,
"ctxt": 0
},
"operator": "--",
"prefix": true,
"argument": {
"type": "MemberExpression",
"span": {
"start": 509,
"end": 530,
"ctxt": 0
},
"object": {
"type": "CallExpression",
"span": {
"start": 509,
"end": 524,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 509,
"end": 522,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 509,
"end": 513,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 514,
"end": 522,
"ctxt": 0
},
"value": "getClass",
"optional": false
}
},
"arguments": [],
"typeArguments": null
},
"property": {
"type": "PrivateName",
"span": {
"start": 525,
"end": 530,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 526,
"end": 530,
"ctxt": 0
},
"value": "test",
"optional": false
}
}
}
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 540,
"end": 574,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 546,
"end": 573,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 546,
"end": 547,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "UpdateExpression",
"span": {
"start": 550,
"end": 573,
"ctxt": 0
},
"operator": "++",
"prefix": false,
"argument": {
"type": "MemberExpression",
"span": {
"start": 550,
"end": 571,
"ctxt": 0
},
"object": {
"type": "CallExpression",
"span": {
"start": 550,
"end": 565,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 550,
"end": 563,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 550,
"end": 554,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 555,
"end": 563,
"ctxt": 0
},
"value": "getClass",
"optional": false
}
},
"arguments": [],
"typeArguments": null
},
"property": {
"type": "PrivateName",
"span": {
"start": 566,
"end": 571,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 567,
"end": 571,
"ctxt": 0
},
"value": "test",
"optional": false
}
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 583,
"end": 617,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 589,
"end": 616,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 589,
"end": 590,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "UpdateExpression",
"span": {
"start": 593,
"end": 616,
"ctxt": 0
},
"operator": "--",
"prefix": false,
"argument": {
"type": "MemberExpression",
"span": {
"start": 593,
"end": 614,
"ctxt": 0
},
"object": {
"type": "CallExpression",
"span": {
"start": 593,
"end": 608,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 593,
"end": 606,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 593,
"end": 597,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 598,
"end": 606,
"ctxt": 0
},
"value": "getClass",
"optional": false
}
},
"arguments": [],
"typeArguments": null
},
"property": {
"type": "PrivateName",
"span": {
"start": 609,
"end": 614,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 610,
"end": 614,
"ctxt": 0
},
"value": "test",
"optional": false
}
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 626,
"end": 660,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 632,
"end": 659,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 632,
"end": 633,
"ctxt": 0
},
"value": "c",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "UpdateExpression",
"span": {
"start": 636,
"end": 659,
"ctxt": 0
},
"operator": "++",
"prefix": true,
"argument": {
"type": "MemberExpression",
"span": {
"start": 638,
"end": 659,
"ctxt": 0
},
"object": {
"type": "CallExpression",
"span": {
"start": 638,
"end": 653,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 638,
"end": 651,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 638,
"end": 642,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 643,
"end": 651,
"ctxt": 0
},
"value": "getClass",
"optional": false
}
},
"arguments": [],
"typeArguments": null
},
"property": {
"type": "PrivateName",
"span": {
"start": 654,
"end": 659,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 655,
"end": 659,
"ctxt": 0
},
"value": "test",
"optional": false
}
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 669,
"end": 703,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 675,
"end": 702,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 675,
"end": 676,
"ctxt": 0
},
"value": "d",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "UpdateExpression",
"span": {
"start": 679,
"end": 702,
"ctxt": 0
},
"operator": "--",
"prefix": true,
"argument": {
"type": "MemberExpression",
"span": {
"start": 681,
"end": 702,
"ctxt": 0
},
"object": {
"type": "CallExpression",
"span": {
"start": 681,
"end": 696,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 681,
"end": 694,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 681,
"end": 685,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 686,
"end": 694,
"ctxt": 0
},
"value": "getClass",
"optional": false
}
},
"arguments": [],
"typeArguments": null
},
"property": {
"type": "PrivateName",
"span": {
"start": 697,
"end": 702,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 698,
"end": 702,
"ctxt": 0
},
"value": "test",
"optional": false
}
}
}
},
"definite": false
}
]
},
{
"type": "ForStatement",
"span": {
"start": 712,
"end": 799,
"ctxt": 0
},
"init": {
"type": "AssignmentExpression",
"span": {
"start": 717,
"end": 742,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 717,
"end": 738,
"ctxt": 0
},
"object": {
"type": "CallExpression",
"span": {
"start": 717,
"end": 732,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 717,
"end": 730,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 717,
"end": 721,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 722,
"end": 730,
"ctxt": 0
},
"value": "getClass",
"optional": false
}
},
"arguments": [],
"typeArguments": null
},
"property": {
"type": "PrivateName",
"span": {
"start": 733,
"end": 738,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 734,
"end": 738,
"ctxt": 0
},
"value": "test",
"optional": false
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 741,
"end": 742,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
},
"test": {
"type": "BinaryExpression",
"span": {
"start": 744,
"end": 770,
"ctxt": 0
},
"operator": "<",
"left": {
"type": "MemberExpression",
"span": {
"start": 744,
"end": 765,
"ctxt": 0
},
"object": {
"type": "CallExpression",
"span": {
"start": 744,
"end": 759,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 744,
"end": 757,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 744,
"end": 748,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 749,
"end": 757,
"ctxt": 0
},
"value": "getClass",
"optional": false
}
},
"arguments": [],
"typeArguments": null
},
"property": {
"type": "PrivateName",
"span": {
"start": 760,
"end": 765,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 761,
"end": 765,
"ctxt": 0
},
"value": "test",
"optional": false
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 768,
"end": 770,
"ctxt": 0
},
"value": 10.0,
"raw": "10"
}
},
"update": {
"type": "UpdateExpression",
"span": {
"start": 772,
"end": 795,
"ctxt": 0
},
"operator": "++",
"prefix": true,
"argument": {
"type": "MemberExpression",
"span": {
"start": 774,
"end": 795,
"ctxt": 0
},
"object": {
"type": "CallExpression",
"span": {
"start": 774,
"end": 789,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 774,
"end": 787,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 774,
"end": 778,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 779,
"end": 787,
"ctxt": 0
},
"value": "getClass",
"optional": false
}
},
"arguments": [],
"typeArguments": null
},
"property": {
"type": "PrivateName",
"span": {
"start": 790,
"end": 795,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 791,
"end": 795,
"ctxt": 0
},
"value": "test",
"optional": false
}
}
}
},
"body": {
"type": "BlockStatement",
"span": {
"start": 797,
"end": 799,
"ctxt": 0
},
"stmts": []
}
},
{
"type": "ForStatement",
"span": {
"start": 808,
"end": 895,
"ctxt": 0
},
"init": {
"type": "AssignmentExpression",
"span": {
"start": 813,
"end": 838,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 813,
"end": 834,
"ctxt": 0
},
"object": {
"type": "CallExpression",
"span": {
"start": 813,
"end": 828,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 813,
"end": 826,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 813,
"end": 817,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 818,
"end": 826,
"ctxt": 0
},
"value": "getClass",
"optional": false
}
},
"arguments": [],
"typeArguments": null
},
"property": {
"type": "PrivateName",
"span": {
"start": 829,
"end": 834,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 830,
"end": 834,
"ctxt": 0
},
"value": "test",
"optional": false
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 837,
"end": 838,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
},
"test": {
"type": "BinaryExpression",
"span": {
"start": 840,
"end": 866,
"ctxt": 0
},
"operator": "<",
"left": {
"type": "MemberExpression",
"span": {
"start": 840,
"end": 861,
"ctxt": 0
},
"object": {
"type": "CallExpression",
"span": {
"start": 840,
"end": 855,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 840,
"end": 853,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 840,
"end": 844,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 845,
"end": 853,
"ctxt": 0
},
"value": "getClass",
"optional": false
}
},
"arguments": [],
"typeArguments": null
},
"property": {
"type": "PrivateName",
"span": {
"start": 856,
"end": 861,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 857,
"end": 861,
"ctxt": 0
},
"value": "test",
"optional": false
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 864,
"end": 866,
"ctxt": 0
},
"value": 10.0,
"raw": "10"
}
},
"update": {
"type": "UpdateExpression",
"span": {
"start": 868,
"end": 891,
"ctxt": 0
},
"operator": "++",
"prefix": false,
"argument": {
"type": "MemberExpression",
"span": {
"start": 868,
"end": 889,
"ctxt": 0
},
"object": {
"type": "CallExpression",
"span": {
"start": 868,
"end": 883,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 868,
"end": 881,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 868,
"end": 872,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 873,
"end": 881,
"ctxt": 0
},
"value": "getClass",
"optional": false
}
},
"arguments": [],
"typeArguments": null
},
"property": {
"type": "PrivateName",
"span": {
"start": 884,
"end": 889,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 885,
"end": 889,
"ctxt": 0
},
"value": "test",
"optional": false
}
}
}
},
"body": {
"type": "BlockStatement",
"span": {
"start": 893,
"end": 895,
"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": 906,
"end": 930,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 906,
"end": 914,
"ctxt": 0
},
"value": "getClass",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 906,
"end": 930,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 917,
"end": 930,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 919,
"end": 928,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 926,
"end": 927,
"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
}