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

2181 lines
69 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 21,
"end": 886,
"ctxt": 0
},
"body": [
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 27,
"end": 28,
"ctxt": 0
},
"value": "A",
"optional": false
},
"declare": false,
"span": {
"start": 21,
"end": 886,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "PrivateProperty",
"span": {
"start": 35,
"end": 53,
"ctxt": 0
},
"key": {
"type": "PrivateName",
"span": {
"start": 42,
"end": 48,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 43,
"end": 48,
"ctxt": 0
},
"value": "field",
"optional": false
}
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 51,
"end": 52,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
},
"typeAnnotation": null,
"isStatic": true,
"decorators": [],
"accessibility": null,
"isOptional": false,
"isOverride": false,
"readonly": false,
"definite": false
},
{
"type": "Constructor",
"span": {
"start": 58,
"end": 836,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 58,
"end": 69,
"ctxt": 0
},
"value": "constructor",
"optional": false
},
"params": [],
"body": {
"type": "BlockStatement",
"span": {
"start": 72,
"end": 836,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 82,
"end": 95,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 82,
"end": 94,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 82,
"end": 90,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 82,
"end": 83,
"ctxt": 0
},
"value": "A",
"optional": false
},
"property": {
"type": "PrivateName",
"span": {
"start": 84,
"end": 90,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 85,
"end": 90,
"ctxt": 0
},
"value": "field",
"optional": false
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 93,
"end": 94,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 104,
"end": 118,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 104,
"end": 117,
"ctxt": 0
},
"operator": "+=",
"left": {
"type": "MemberExpression",
"span": {
"start": 104,
"end": 112,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 104,
"end": 105,
"ctxt": 0
},
"value": "A",
"optional": false
},
"property": {
"type": "PrivateName",
"span": {
"start": 106,
"end": 112,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 107,
"end": 112,
"ctxt": 0
},
"value": "field",
"optional": false
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 116,
"end": 117,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 127,
"end": 141,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 127,
"end": 140,
"ctxt": 0
},
"operator": "-=",
"left": {
"type": "MemberExpression",
"span": {
"start": 127,
"end": 135,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 127,
"end": 128,
"ctxt": 0
},
"value": "A",
"optional": false
},
"property": {
"type": "PrivateName",
"span": {
"start": 129,
"end": 135,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 130,
"end": 135,
"ctxt": 0
},
"value": "field",
"optional": false
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 139,
"end": 140,
"ctxt": 0
},
"value": 3.0,
"raw": "3"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 150,
"end": 164,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 150,
"end": 163,
"ctxt": 0
},
"operator": "/=",
"left": {
"type": "MemberExpression",
"span": {
"start": 150,
"end": 158,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 150,
"end": 151,
"ctxt": 0
},
"value": "A",
"optional": false
},
"property": {
"type": "PrivateName",
"span": {
"start": 152,
"end": 158,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 153,
"end": 158,
"ctxt": 0
},
"value": "field",
"optional": false
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 162,
"end": 163,
"ctxt": 0
},
"value": 4.0,
"raw": "4"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 173,
"end": 187,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 173,
"end": 186,
"ctxt": 0
},
"operator": "*=",
"left": {
"type": "MemberExpression",
"span": {
"start": 173,
"end": 181,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 173,
"end": 174,
"ctxt": 0
},
"value": "A",
"optional": false
},
"property": {
"type": "PrivateName",
"span": {
"start": 175,
"end": 181,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 176,
"end": 181,
"ctxt": 0
},
"value": "field",
"optional": false
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 185,
"end": 186,
"ctxt": 0
},
"value": 5.0,
"raw": "5"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 196,
"end": 211,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 196,
"end": 210,
"ctxt": 0
},
"operator": "**=",
"left": {
"type": "MemberExpression",
"span": {
"start": 196,
"end": 204,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 196,
"end": 197,
"ctxt": 0
},
"value": "A",
"optional": false
},
"property": {
"type": "PrivateName",
"span": {
"start": 198,
"end": 204,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 199,
"end": 204,
"ctxt": 0
},
"value": "field",
"optional": false
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 209,
"end": 210,
"ctxt": 0
},
"value": 6.0,
"raw": "6"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 220,
"end": 234,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 220,
"end": 233,
"ctxt": 0
},
"operator": "%=",
"left": {
"type": "MemberExpression",
"span": {
"start": 220,
"end": 228,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 220,
"end": 221,
"ctxt": 0
},
"value": "A",
"optional": false
},
"property": {
"type": "PrivateName",
"span": {
"start": 222,
"end": 228,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 223,
"end": 228,
"ctxt": 0
},
"value": "field",
"optional": false
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 232,
"end": 233,
"ctxt": 0
},
"value": 7.0,
"raw": "7"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 243,
"end": 258,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 243,
"end": 257,
"ctxt": 0
},
"operator": "<<=",
"left": {
"type": "MemberExpression",
"span": {
"start": 243,
"end": 251,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 243,
"end": 244,
"ctxt": 0
},
"value": "A",
"optional": false
},
"property": {
"type": "PrivateName",
"span": {
"start": 245,
"end": 251,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 246,
"end": 251,
"ctxt": 0
},
"value": "field",
"optional": false
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 256,
"end": 257,
"ctxt": 0
},
"value": 8.0,
"raw": "8"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 267,
"end": 282,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 267,
"end": 281,
"ctxt": 0
},
"operator": ">>=",
"left": {
"type": "MemberExpression",
"span": {
"start": 267,
"end": 275,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 267,
"end": 268,
"ctxt": 0
},
"value": "A",
"optional": false
},
"property": {
"type": "PrivateName",
"span": {
"start": 269,
"end": 275,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 270,
"end": 275,
"ctxt": 0
},
"value": "field",
"optional": false
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 280,
"end": 281,
"ctxt": 0
},
"value": 9.0,
"raw": "9"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 291,
"end": 308,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 291,
"end": 307,
"ctxt": 0
},
"operator": ">>>=",
"left": {
"type": "MemberExpression",
"span": {
"start": 291,
"end": 299,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 291,
"end": 292,
"ctxt": 0
},
"value": "A",
"optional": false
},
"property": {
"type": "PrivateName",
"span": {
"start": 293,
"end": 299,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 294,
"end": 299,
"ctxt": 0
},
"value": "field",
"optional": false
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 305,
"end": 307,
"ctxt": 0
},
"value": 10.0,
"raw": "10"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 317,
"end": 332,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 317,
"end": 331,
"ctxt": 0
},
"operator": "&=",
"left": {
"type": "MemberExpression",
"span": {
"start": 317,
"end": 325,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 317,
"end": 318,
"ctxt": 0
},
"value": "A",
"optional": false
},
"property": {
"type": "PrivateName",
"span": {
"start": 319,
"end": 325,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 320,
"end": 325,
"ctxt": 0
},
"value": "field",
"optional": false
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 329,
"end": 331,
"ctxt": 0
},
"value": 11.0,
"raw": "11"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 341,
"end": 356,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 341,
"end": 355,
"ctxt": 0
},
"operator": "|=",
"left": {
"type": "MemberExpression",
"span": {
"start": 341,
"end": 349,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 341,
"end": 342,
"ctxt": 0
},
"value": "A",
"optional": false
},
"property": {
"type": "PrivateName",
"span": {
"start": 343,
"end": 349,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 344,
"end": 349,
"ctxt": 0
},
"value": "field",
"optional": false
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 353,
"end": 355,
"ctxt": 0
},
"value": 12.0,
"raw": "12"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 365,
"end": 380,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 365,
"end": 379,
"ctxt": 0
},
"operator": "^=",
"left": {
"type": "MemberExpression",
"span": {
"start": 365,
"end": 373,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 365,
"end": 366,
"ctxt": 0
},
"value": "A",
"optional": false
},
"property": {
"type": "PrivateName",
"span": {
"start": 367,
"end": 373,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 368,
"end": 373,
"ctxt": 0
},
"value": "field",
"optional": false
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 377,
"end": 379,
"ctxt": 0
},
"value": 13.0,
"raw": "13"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 389,
"end": 413,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 389,
"end": 412,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 389,
"end": 408,
"ctxt": 0
},
"object": {
"type": "CallExpression",
"span": {
"start": 389,
"end": 401,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 389,
"end": 399,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 389,
"end": 390,
"ctxt": 0
},
"value": "A",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 391,
"end": 399,
"ctxt": 0
},
"value": "getClass",
"optional": false
}
},
"arguments": [],
"typeArguments": null
},
"property": {
"type": "PrivateName",
"span": {
"start": 402,
"end": 408,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 403,
"end": 408,
"ctxt": 0
},
"value": "field",
"optional": false
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 411,
"end": 412,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 422,
"end": 447,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 422,
"end": 446,
"ctxt": 0
},
"operator": "+=",
"left": {
"type": "MemberExpression",
"span": {
"start": 422,
"end": 441,
"ctxt": 0
},
"object": {
"type": "CallExpression",
"span": {
"start": 422,
"end": 434,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 422,
"end": 432,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 422,
"end": 423,
"ctxt": 0
},
"value": "A",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 424,
"end": 432,
"ctxt": 0
},
"value": "getClass",
"optional": false
}
},
"arguments": [],
"typeArguments": null
},
"property": {
"type": "PrivateName",
"span": {
"start": 435,
"end": 441,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 436,
"end": 441,
"ctxt": 0
},
"value": "field",
"optional": false
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 445,
"end": 446,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 456,
"end": 481,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 456,
"end": 480,
"ctxt": 0
},
"operator": "-=",
"left": {
"type": "MemberExpression",
"span": {
"start": 456,
"end": 475,
"ctxt": 0
},
"object": {
"type": "CallExpression",
"span": {
"start": 456,
"end": 468,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 456,
"end": 466,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 456,
"end": 457,
"ctxt": 0
},
"value": "A",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 458,
"end": 466,
"ctxt": 0
},
"value": "getClass",
"optional": false
}
},
"arguments": [],
"typeArguments": null
},
"property": {
"type": "PrivateName",
"span": {
"start": 469,
"end": 475,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 470,
"end": 475,
"ctxt": 0
},
"value": "field",
"optional": false
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 479,
"end": 480,
"ctxt": 0
},
"value": 3.0,
"raw": "3"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 490,
"end": 515,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 490,
"end": 514,
"ctxt": 0
},
"operator": "/=",
"left": {
"type": "MemberExpression",
"span": {
"start": 490,
"end": 509,
"ctxt": 0
},
"object": {
"type": "CallExpression",
"span": {
"start": 490,
"end": 502,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 490,
"end": 500,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 490,
"end": 491,
"ctxt": 0
},
"value": "A",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 492,
"end": 500,
"ctxt": 0
},
"value": "getClass",
"optional": false
}
},
"arguments": [],
"typeArguments": null
},
"property": {
"type": "PrivateName",
"span": {
"start": 503,
"end": 509,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 504,
"end": 509,
"ctxt": 0
},
"value": "field",
"optional": false
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 513,
"end": 514,
"ctxt": 0
},
"value": 4.0,
"raw": "4"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 524,
"end": 549,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 524,
"end": 548,
"ctxt": 0
},
"operator": "*=",
"left": {
"type": "MemberExpression",
"span": {
"start": 524,
"end": 543,
"ctxt": 0
},
"object": {
"type": "CallExpression",
"span": {
"start": 524,
"end": 536,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 524,
"end": 534,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 524,
"end": 525,
"ctxt": 0
},
"value": "A",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 526,
"end": 534,
"ctxt": 0
},
"value": "getClass",
"optional": false
}
},
"arguments": [],
"typeArguments": null
},
"property": {
"type": "PrivateName",
"span": {
"start": 537,
"end": 543,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 538,
"end": 543,
"ctxt": 0
},
"value": "field",
"optional": false
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 547,
"end": 548,
"ctxt": 0
},
"value": 5.0,
"raw": "5"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 558,
"end": 584,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 558,
"end": 583,
"ctxt": 0
},
"operator": "**=",
"left": {
"type": "MemberExpression",
"span": {
"start": 558,
"end": 577,
"ctxt": 0
},
"object": {
"type": "CallExpression",
"span": {
"start": 558,
"end": 570,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 558,
"end": 568,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 558,
"end": 559,
"ctxt": 0
},
"value": "A",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 560,
"end": 568,
"ctxt": 0
},
"value": "getClass",
"optional": false
}
},
"arguments": [],
"typeArguments": null
},
"property": {
"type": "PrivateName",
"span": {
"start": 571,
"end": 577,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 572,
"end": 577,
"ctxt": 0
},
"value": "field",
"optional": false
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 582,
"end": 583,
"ctxt": 0
},
"value": 6.0,
"raw": "6"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 593,
"end": 618,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 593,
"end": 617,
"ctxt": 0
},
"operator": "%=",
"left": {
"type": "MemberExpression",
"span": {
"start": 593,
"end": 612,
"ctxt": 0
},
"object": {
"type": "CallExpression",
"span": {
"start": 593,
"end": 605,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 593,
"end": 603,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 593,
"end": 594,
"ctxt": 0
},
"value": "A",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 595,
"end": 603,
"ctxt": 0
},
"value": "getClass",
"optional": false
}
},
"arguments": [],
"typeArguments": null
},
"property": {
"type": "PrivateName",
"span": {
"start": 606,
"end": 612,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 607,
"end": 612,
"ctxt": 0
},
"value": "field",
"optional": false
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 616,
"end": 617,
"ctxt": 0
},
"value": 7.0,
"raw": "7"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 627,
"end": 653,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 627,
"end": 652,
"ctxt": 0
},
"operator": "<<=",
"left": {
"type": "MemberExpression",
"span": {
"start": 627,
"end": 646,
"ctxt": 0
},
"object": {
"type": "CallExpression",
"span": {
"start": 627,
"end": 639,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 627,
"end": 637,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 627,
"end": 628,
"ctxt": 0
},
"value": "A",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 629,
"end": 637,
"ctxt": 0
},
"value": "getClass",
"optional": false
}
},
"arguments": [],
"typeArguments": null
},
"property": {
"type": "PrivateName",
"span": {
"start": 640,
"end": 646,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 641,
"end": 646,
"ctxt": 0
},
"value": "field",
"optional": false
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 651,
"end": 652,
"ctxt": 0
},
"value": 8.0,
"raw": "8"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 662,
"end": 688,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 662,
"end": 687,
"ctxt": 0
},
"operator": ">>=",
"left": {
"type": "MemberExpression",
"span": {
"start": 662,
"end": 681,
"ctxt": 0
},
"object": {
"type": "CallExpression",
"span": {
"start": 662,
"end": 674,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 662,
"end": 672,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 662,
"end": 663,
"ctxt": 0
},
"value": "A",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 664,
"end": 672,
"ctxt": 0
},
"value": "getClass",
"optional": false
}
},
"arguments": [],
"typeArguments": null
},
"property": {
"type": "PrivateName",
"span": {
"start": 675,
"end": 681,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 676,
"end": 681,
"ctxt": 0
},
"value": "field",
"optional": false
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 686,
"end": 687,
"ctxt": 0
},
"value": 9.0,
"raw": "9"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 697,
"end": 725,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 697,
"end": 724,
"ctxt": 0
},
"operator": ">>>=",
"left": {
"type": "MemberExpression",
"span": {
"start": 697,
"end": 716,
"ctxt": 0
},
"object": {
"type": "CallExpression",
"span": {
"start": 697,
"end": 709,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 697,
"end": 707,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 697,
"end": 698,
"ctxt": 0
},
"value": "A",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 699,
"end": 707,
"ctxt": 0
},
"value": "getClass",
"optional": false
}
},
"arguments": [],
"typeArguments": null
},
"property": {
"type": "PrivateName",
"span": {
"start": 710,
"end": 716,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 711,
"end": 716,
"ctxt": 0
},
"value": "field",
"optional": false
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 722,
"end": 724,
"ctxt": 0
},
"value": 10.0,
"raw": "10"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 734,
"end": 760,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 734,
"end": 759,
"ctxt": 0
},
"operator": "&=",
"left": {
"type": "MemberExpression",
"span": {
"start": 734,
"end": 753,
"ctxt": 0
},
"object": {
"type": "CallExpression",
"span": {
"start": 734,
"end": 746,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 734,
"end": 744,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 734,
"end": 735,
"ctxt": 0
},
"value": "A",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 736,
"end": 744,
"ctxt": 0
},
"value": "getClass",
"optional": false
}
},
"arguments": [],
"typeArguments": null
},
"property": {
"type": "PrivateName",
"span": {
"start": 747,
"end": 753,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 748,
"end": 753,
"ctxt": 0
},
"value": "field",
"optional": false
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 757,
"end": 759,
"ctxt": 0
},
"value": 11.0,
"raw": "11"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 769,
"end": 795,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 769,
"end": 794,
"ctxt": 0
},
"operator": "|=",
"left": {
"type": "MemberExpression",
"span": {
"start": 769,
"end": 788,
"ctxt": 0
},
"object": {
"type": "CallExpression",
"span": {
"start": 769,
"end": 781,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 769,
"end": 779,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 769,
"end": 770,
"ctxt": 0
},
"value": "A",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 771,
"end": 779,
"ctxt": 0
},
"value": "getClass",
"optional": false
}
},
"arguments": [],
"typeArguments": null
},
"property": {
"type": "PrivateName",
"span": {
"start": 782,
"end": 788,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 783,
"end": 788,
"ctxt": 0
},
"value": "field",
"optional": false
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 792,
"end": 794,
"ctxt": 0
},
"value": 12.0,
"raw": "12"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 804,
"end": 830,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 804,
"end": 829,
"ctxt": 0
},
"operator": "^=",
"left": {
"type": "MemberExpression",
"span": {
"start": 804,
"end": 823,
"ctxt": 0
},
"object": {
"type": "CallExpression",
"span": {
"start": 804,
"end": 816,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 804,
"end": 814,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 804,
"end": 805,
"ctxt": 0
},
"value": "A",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 806,
"end": 814,
"ctxt": 0
},
"value": "getClass",
"optional": false
}
},
"arguments": [],
"typeArguments": null
},
"property": {
"type": "PrivateName",
"span": {
"start": 817,
"end": 823,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 818,
"end": 823,
"ctxt": 0
},
"value": "field",
"optional": false
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 827,
"end": 829,
"ctxt": 0
},
"value": 13.0,
"raw": "13"
}
}
}
]
},
"accessibility": null,
"isOptional": false
},
{
"type": "ClassMethod",
"span": {
"start": 841,
"end": 884,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 848,
"end": 856,
"ctxt": 0
},
"value": "getClass",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 841,
"end": 884,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 859,
"end": 884,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 869,
"end": 878,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 876,
"end": 877,
"ctxt": 0
},
"value": "A",
"optional": false
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "method",
"isStatic": true,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
}
],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
}
],
"interpreter": null
}