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

1900 lines
65 KiB
JSON

{
"type": "Script",
"span": {
"start": 20,
"end": 785,
"ctxt": 0
},
"body": [
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 26,
"end": 30,
"ctxt": 0
},
"value": "Test",
"optional": false
},
"declare": false,
"span": {
"start": 20,
"end": 769,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "PrivateMethod",
"span": {
"start": 35,
"end": 77,
"ctxt": 0
},
"key": {
"type": "PrivateName",
"span": {
"start": 39,
"end": 45,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 40,
"end": 45,
"ctxt": 0
},
"value": "value",
"optional": false
}
},
"function": {
"params": [
{
"type": "Parameter",
"span": {
"start": 46,
"end": 73,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 46,
"end": 73,
"ctxt": 0
},
"value": "v",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 47,
"end": 73,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 49,
"end": 73,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 51,
"end": 71,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 51,
"end": 54,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 54,
"end": 71,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 56,
"end": 71,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 58,
"end": 69,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 58,
"end": 61,
"ctxt": 0
},
"value": "bar",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 61,
"end": 69,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 63,
"end": 69,
"ctxt": 0
},
"kind": "number"
}
},
"typeParams": null
}
]
}
},
"typeParams": null
}
]
}
}
}
}
],
"decorators": [],
"span": {
"start": 35,
"end": 77,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 75,
"end": 77,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "setter",
"isStatic": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "PrivateMethod",
"span": {
"start": 80,
"end": 110,
"ctxt": 0
},
"key": {
"type": "PrivateName",
"span": {
"start": 84,
"end": 94,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 85,
"end": 94,
"ctxt": 0
},
"value": "valueRest",
"optional": false
}
},
"function": {
"params": [
{
"type": "Parameter",
"span": {
"start": 95,
"end": 106,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 95,
"end": 106,
"ctxt": 0
},
"value": "v",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 96,
"end": 106,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsArrayType",
"span": {
"start": 98,
"end": 106,
"ctxt": 0
},
"elemType": {
"type": "TsKeywordType",
"span": {
"start": 98,
"end": 104,
"ctxt": 0
},
"kind": "number"
}
}
}
}
}
],
"decorators": [],
"span": {
"start": 80,
"end": 110,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 108,
"end": 110,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "setter",
"isStatic": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "PrivateMethod",
"span": {
"start": 113,
"end": 140,
"ctxt": 0
},
"key": {
"type": "PrivateName",
"span": {
"start": 117,
"end": 126,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 118,
"end": 126,
"ctxt": 0
},
"value": "valueOne",
"optional": false
}
},
"function": {
"params": [
{
"type": "Parameter",
"span": {
"start": 127,
"end": 136,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 127,
"end": 136,
"ctxt": 0
},
"value": "v",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 128,
"end": 136,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 130,
"end": 136,
"ctxt": 0
},
"kind": "number"
}
}
}
}
],
"decorators": [],
"span": {
"start": 113,
"end": 140,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 138,
"end": 140,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "setter",
"isStatic": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "PrivateMethod",
"span": {
"start": 143,
"end": 175,
"ctxt": 0
},
"key": {
"type": "PrivateName",
"span": {
"start": 147,
"end": 161,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 148,
"end": 161,
"ctxt": 0
},
"value": "valueCompound",
"optional": false
}
},
"function": {
"params": [
{
"type": "Parameter",
"span": {
"start": 162,
"end": 171,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 162,
"end": 171,
"ctxt": 0
},
"value": "v",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 163,
"end": 171,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 165,
"end": 171,
"ctxt": 0
},
"kind": "number"
}
}
}
}
],
"decorators": [],
"span": {
"start": 143,
"end": 175,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 173,
"end": 175,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "setter",
"isStatic": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 179,
"end": 767,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 179,
"end": 180,
"ctxt": 0
},
"value": "m",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 179,
"end": 767,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 183,
"end": 767,
"ctxt": 0
},
"stmts": [
{
"type": "VariableDeclaration",
"span": {
"start": 189,
"end": 212,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 195,
"end": 211,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 195,
"end": 198,
"ctxt": 0
},
"value": "foo",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 201,
"end": 211,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 203,
"end": 206,
"ctxt": 0
},
"value": "bar",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 208,
"end": 209,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
]
},
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 217,
"end": 242,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 217,
"end": 241,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 217,
"end": 228,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 217,
"end": 224,
"ctxt": 0
},
"value": "console",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 225,
"end": 228,
"ctxt": 0
},
"value": "log",
"optional": false
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "MemberExpression",
"span": {
"start": 229,
"end": 240,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 229,
"end": 233,
"ctxt": 0
}
},
"property": {
"type": "PrivateName",
"span": {
"start": 234,
"end": 240,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 235,
"end": 240,
"ctxt": 0
},
"value": "value",
"optional": false
}
}
}
}
],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 256,
"end": 278,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 256,
"end": 277,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 256,
"end": 267,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 256,
"end": 260,
"ctxt": 0
}
},
"property": {
"type": "PrivateName",
"span": {
"start": 261,
"end": 267,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 262,
"end": 267,
"ctxt": 0
},
"value": "value",
"optional": false
}
}
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 270,
"end": 277,
"ctxt": 0
},
"properties": [
{
"type": "Identifier",
"span": {
"start": 272,
"end": 275,
"ctxt": 0
},
"value": "foo",
"optional": false
}
]
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 289,
"end": 311,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 289,
"end": 310,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 289,
"end": 300,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 289,
"end": 293,
"ctxt": 0
}
},
"property": {
"type": "PrivateName",
"span": {
"start": 294,
"end": 300,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 295,
"end": 300,
"ctxt": 0
},
"value": "value",
"optional": false
}
}
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 303,
"end": 310,
"ctxt": 0
},
"properties": [
{
"type": "Identifier",
"span": {
"start": 305,
"end": 308,
"ctxt": 0
},
"value": "foo",
"optional": false
}
]
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 322,
"end": 344,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 322,
"end": 343,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 322,
"end": 337,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 322,
"end": 333,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 322,
"end": 326,
"ctxt": 0
}
},
"property": {
"type": "PrivateName",
"span": {
"start": 327,
"end": 333,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 328,
"end": 333,
"ctxt": 0
},
"value": "value",
"optional": false
}
}
},
"property": {
"type": "Identifier",
"span": {
"start": 334,
"end": 337,
"ctxt": 0
},
"value": "foo",
"optional": false
}
},
"right": {
"type": "Identifier",
"span": {
"start": 340,
"end": 343,
"ctxt": 0
},
"value": "foo",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 359,
"end": 397,
"ctxt": 0
},
"expression": {
"type": "ParenthesisExpression",
"span": {
"start": 359,
"end": 396,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 360,
"end": 395,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ObjectPattern",
"span": {
"start": 360,
"end": 378,
"ctxt": 0
},
"properties": [
{
"type": "KeyValuePatternProperty",
"key": {
"type": "Identifier",
"span": {
"start": 362,
"end": 363,
"ctxt": 0
},
"value": "o",
"optional": false
},
"value": {
"type": "MemberExpression",
"span": {
"start": 365,
"end": 376,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 365,
"end": 369,
"ctxt": 0
}
},
"property": {
"type": "PrivateName",
"span": {
"start": 370,
"end": 376,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 371,
"end": 376,
"ctxt": 0
},
"value": "value",
"optional": false
}
}
}
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 381,
"end": 395,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 383,
"end": 384,
"ctxt": 0
},
"value": "o",
"optional": false
},
"value": {
"type": "ObjectExpression",
"span": {
"start": 386,
"end": 393,
"ctxt": 0
},
"properties": [
{
"type": "Identifier",
"span": {
"start": 388,
"end": 391,
"ctxt": 0
},
"value": "foo",
"optional": false
}
]
}
}
]
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 407,
"end": 438,
"ctxt": 0
},
"expression": {
"type": "ParenthesisExpression",
"span": {
"start": 407,
"end": 437,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 408,
"end": 436,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ObjectPattern",
"span": {
"start": 408,
"end": 426,
"ctxt": 0
},
"properties": [
{
"type": "RestElement",
"span": {
"start": 410,
"end": 424,
"ctxt": 0
},
"rest": {
"start": 410,
"end": 413,
"ctxt": 0
},
"argument": {
"type": "MemberExpression",
"span": {
"start": 413,
"end": 424,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 413,
"end": 417,
"ctxt": 0
}
},
"property": {
"type": "PrivateName",
"span": {
"start": 418,
"end": 424,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 419,
"end": 424,
"ctxt": 0
},
"value": "value",
"optional": false
}
}
},
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 429,
"end": 436,
"ctxt": 0
},
"properties": [
{
"type": "Identifier",
"span": {
"start": 431,
"end": 434,
"ctxt": 0
},
"value": "foo",
"optional": false
}
]
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 449,
"end": 486,
"ctxt": 0
},
"expression": {
"type": "ParenthesisExpression",
"span": {
"start": 449,
"end": 485,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 450,
"end": 484,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ObjectPattern",
"span": {
"start": 450,
"end": 474,
"ctxt": 0
},
"properties": [
{
"type": "KeyValuePatternProperty",
"key": {
"type": "Identifier",
"span": {
"start": 452,
"end": 455,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"value": {
"type": "MemberExpression",
"span": {
"start": 457,
"end": 472,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 457,
"end": 468,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 457,
"end": 461,
"ctxt": 0
}
},
"property": {
"type": "PrivateName",
"span": {
"start": 462,
"end": 468,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 463,
"end": 468,
"ctxt": 0
},
"value": "value",
"optional": false
}
}
},
"property": {
"type": "Identifier",
"span": {
"start": 469,
"end": 472,
"ctxt": 0
},
"value": "foo",
"optional": false
}
}
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 477,
"end": 484,
"ctxt": 0
},
"properties": [
{
"type": "Identifier",
"span": {
"start": 479,
"end": 482,
"ctxt": 0
},
"value": "foo",
"optional": false
}
]
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 499,
"end": 554,
"ctxt": 0
},
"expression": {
"type": "ParenthesisExpression",
"span": {
"start": 499,
"end": 553,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 500,
"end": 552,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ObjectPattern",
"span": {
"start": 500,
"end": 542,
"ctxt": 0
},
"properties": [
{
"type": "KeyValuePatternProperty",
"key": {
"type": "Identifier",
"span": {
"start": 508,
"end": 511,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"value": {
"type": "ObjectPattern",
"span": {
"start": 513,
"end": 535,
"ctxt": 0
},
"properties": [
{
"type": "RestElement",
"span": {
"start": 515,
"end": 533,
"ctxt": 0
},
"rest": {
"start": 515,
"end": 518,
"ctxt": 0
},
"argument": {
"type": "MemberExpression",
"span": {
"start": 518,
"end": 533,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 518,
"end": 529,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 518,
"end": 522,
"ctxt": 0
}
},
"property": {
"type": "PrivateName",
"span": {
"start": 523,
"end": 529,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 524,
"end": 529,
"ctxt": 0
},
"value": "value",
"optional": false
}
}
},
"property": {
"type": "Identifier",
"span": {
"start": 530,
"end": 533,
"ctxt": 0
},
"value": "foo",
"optional": false
}
},
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
}
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 545,
"end": 552,
"ctxt": 0
},
"properties": [
{
"type": "Identifier",
"span": {
"start": 547,
"end": 550,
"ctxt": 0
},
"value": "foo",
"optional": false
}
]
}
}
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 568,
"end": 595,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 572,
"end": 594,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 572,
"end": 573,
"ctxt": 0
},
"value": "r",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 576,
"end": 594,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 578,
"end": 579,
"ctxt": 0
},
"value": "o",
"optional": false
},
"value": {
"type": "MemberExpression",
"span": {
"start": 581,
"end": 592,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 581,
"end": 585,
"ctxt": 0
}
},
"property": {
"type": "PrivateName",
"span": {
"start": 586,
"end": 592,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 587,
"end": 592,
"ctxt": 0
},
"value": "value",
"optional": false
}
}
}
}
]
},
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 609,
"end": 658,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 609,
"end": 657,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ArrayPattern",
"span": {
"start": 609,
"end": 645,
"ctxt": 0
},
"elements": [
{
"type": "MemberExpression",
"span": {
"start": 610,
"end": 624,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 610,
"end": 614,
"ctxt": 0
}
},
"property": {
"type": "PrivateName",
"span": {
"start": 615,
"end": 624,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 616,
"end": 624,
"ctxt": 0
},
"value": "valueOne",
"optional": false
}
}
},
{
"type": "RestElement",
"span": {
"start": 629,
"end": 644,
"ctxt": 0
},
"rest": {
"start": 626,
"end": 629,
"ctxt": 0
},
"argument": {
"type": "MemberExpression",
"span": {
"start": 629,
"end": 644,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 629,
"end": 633,
"ctxt": 0
}
},
"property": {
"type": "PrivateName",
"span": {
"start": 634,
"end": 644,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 635,
"end": 644,
"ctxt": 0
},
"value": "valueRest",
"optional": false
}
}
},
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ArrayExpression",
"span": {
"start": 648,
"end": 657,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 649,
"end": 650,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 652,
"end": 653,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 655,
"end": 656,
"ctxt": 0
},
"value": 3.0,
"raw": "3"
}
}
]
}
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 663,
"end": 732,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 667,
"end": 731,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 667,
"end": 670,
"ctxt": 0
},
"value": "arr",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 673,
"end": 731,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "MemberExpression",
"span": {
"start": 683,
"end": 697,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 683,
"end": 687,
"ctxt": 0
}
},
"property": {
"type": "PrivateName",
"span": {
"start": 688,
"end": 697,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 689,
"end": 697,
"ctxt": 0
},
"value": "valueOne",
"optional": false
}
}
}
},
{
"spread": {
"start": 707,
"end": 710,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 710,
"end": 725,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 710,
"end": 714,
"ctxt": 0
}
},
"property": {
"type": "PrivateName",
"span": {
"start": 715,
"end": 725,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 716,
"end": 725,
"ctxt": 0
},
"value": "valueRest",
"optional": false
}
}
}
}
]
},
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 738,
"end": 763,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 738,
"end": 762,
"ctxt": 0
},
"operator": "+=",
"left": {
"type": "MemberExpression",
"span": {
"start": 738,
"end": 757,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 738,
"end": 742,
"ctxt": 0
}
},
"property": {
"type": "PrivateName",
"span": {
"start": 743,
"end": 757,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 744,
"end": 757,
"ctxt": 0
},
"value": "valueCompound",
"optional": false
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 761,
"end": 762,
"ctxt": 0
},
"value": 3.0,
"raw": "3"
}
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "method",
"isStatic": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
}
],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "ExpressionStatement",
"span": {
"start": 770,
"end": 785,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 770,
"end": 784,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 770,
"end": 782,
"ctxt": 0
},
"object": {
"type": "NewExpression",
"span": {
"start": 770,
"end": 780,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 774,
"end": 778,
"ctxt": 0
},
"value": "Test",
"optional": false
},
"arguments": [],
"typeArguments": null
},
"property": {
"type": "Identifier",
"span": {
"start": 781,
"end": 782,
"ctxt": 0
},
"value": "m",
"optional": false
}
},
"arguments": [],
"typeArguments": null
}
}
],
"interpreter": null
}