swc/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithConstructSignaturesWithOptionalParameters.json
2022-02-04 20:17:42 +09:00

2869 lines
70 KiB
JSON

{
"type": "Script",
"span": {
"start": 102,
"end": 1197,
"ctxt": 0
},
"body": [
{
"type": "TsInterfaceDeclaration",
"span": {
"start": 102,
"end": 358,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 112,
"end": 116,
"ctxt": 0
},
"value": "Base",
"optional": false
},
"declare": false,
"typeParams": null,
"extends": [],
"body": {
"type": "TsInterfaceBody",
"span": {
"start": 117,
"end": 358,
"ctxt": 0
},
"body": [
{
"type": "TsPropertySignature",
"span": {
"start": 124,
"end": 144,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 124,
"end": 125,
"ctxt": 0
},
"value": "a",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 125,
"end": 143,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsConstructorType",
"span": {
"start": 127,
"end": 143,
"ctxt": 0
},
"params": [],
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 134,
"end": 143,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 137,
"end": 143,
"ctxt": 0
},
"kind": "number"
}
},
"isAbstract": false
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 149,
"end": 180,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 149,
"end": 151,
"ctxt": 0
},
"value": "a2",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 151,
"end": 179,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsConstructorType",
"span": {
"start": 153,
"end": 179,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 158,
"end": 168,
"ctxt": 0
},
"value": "x",
"optional": true,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 160,
"end": 168,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 162,
"end": 168,
"ctxt": 0
},
"kind": "number"
}
}
}
],
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 170,
"end": 179,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 173,
"end": 179,
"ctxt": 0
},
"kind": "number"
}
},
"isAbstract": false
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 185,
"end": 215,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 185,
"end": 187,
"ctxt": 0
},
"value": "a3",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 187,
"end": 214,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsConstructorType",
"span": {
"start": 189,
"end": 214,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 194,
"end": 203,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 195,
"end": 203,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 197,
"end": 203,
"ctxt": 0
},
"kind": "number"
}
}
}
],
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 205,
"end": 214,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 208,
"end": 214,
"ctxt": 0
},
"kind": "number"
}
},
"isAbstract": false
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 220,
"end": 262,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 220,
"end": 222,
"ctxt": 0
},
"value": "a4",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 222,
"end": 261,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsConstructorType",
"span": {
"start": 224,
"end": 261,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 229,
"end": 238,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 230,
"end": 238,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 232,
"end": 238,
"ctxt": 0
},
"kind": "number"
}
}
},
{
"type": "Identifier",
"span": {
"start": 240,
"end": 250,
"ctxt": 0
},
"value": "y",
"optional": true,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 242,
"end": 250,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 244,
"end": 250,
"ctxt": 0
},
"kind": "number"
}
}
}
],
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 252,
"end": 261,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 255,
"end": 261,
"ctxt": 0
},
"kind": "number"
}
},
"isAbstract": false
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 267,
"end": 310,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 267,
"end": 269,
"ctxt": 0
},
"value": "a5",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 269,
"end": 309,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsConstructorType",
"span": {
"start": 271,
"end": 309,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 276,
"end": 286,
"ctxt": 0
},
"value": "x",
"optional": true,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 278,
"end": 286,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 280,
"end": 286,
"ctxt": 0
},
"kind": "number"
}
}
},
{
"type": "Identifier",
"span": {
"start": 288,
"end": 298,
"ctxt": 0
},
"value": "y",
"optional": true,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 290,
"end": 298,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 292,
"end": 298,
"ctxt": 0
},
"kind": "number"
}
}
}
],
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 300,
"end": 309,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 303,
"end": 309,
"ctxt": 0
},
"kind": "number"
}
},
"isAbstract": false
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 315,
"end": 356,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 315,
"end": 317,
"ctxt": 0
},
"value": "a6",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 317,
"end": 355,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsConstructorType",
"span": {
"start": 319,
"end": 355,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 324,
"end": 333,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 325,
"end": 333,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 327,
"end": 333,
"ctxt": 0
},
"kind": "number"
}
}
},
{
"type": "Identifier",
"span": {
"start": 335,
"end": 344,
"ctxt": 0
},
"value": "y",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 336,
"end": 344,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 338,
"end": 344,
"ctxt": 0
},
"kind": "number"
}
}
}
],
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 346,
"end": 355,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 349,
"end": 355,
"ctxt": 0
},
"kind": "number"
}
},
"isAbstract": false
}
},
"typeParams": null
}
]
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 359,
"end": 371,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 363,
"end": 370,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 363,
"end": 364,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 364,
"end": 370,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 366,
"end": 370,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 366,
"end": 370,
"ctxt": 0
},
"value": "Base",
"optional": false
},
"typeParams": null
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 373,
"end": 397,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 377,
"end": 396,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 377,
"end": 378,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 378,
"end": 396,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsConstructorType",
"span": {
"start": 380,
"end": 396,
"ctxt": 0
},
"params": [],
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 387,
"end": 396,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 390,
"end": 396,
"ctxt": 0
},
"kind": "number"
}
},
"isAbstract": false
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 402,
"end": 410,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 402,
"end": 409,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 402,
"end": 403,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "MemberExpression",
"span": {
"start": 406,
"end": 409,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 406,
"end": 407,
"ctxt": 0
},
"value": "b",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 408,
"end": 409,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 421,
"end": 430,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 421,
"end": 429,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 421,
"end": 422,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "MemberExpression",
"span": {
"start": 425,
"end": 429,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 425,
"end": 426,
"ctxt": 0
},
"value": "b",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 427,
"end": 429,
"ctxt": 0
},
"value": "a2",
"optional": false
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 441,
"end": 450,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 441,
"end": 449,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 441,
"end": 442,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "MemberExpression",
"span": {
"start": 445,
"end": 449,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 445,
"end": 446,
"ctxt": 0
},
"value": "b",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 447,
"end": 449,
"ctxt": 0
},
"value": "a3",
"optional": false
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 464,
"end": 473,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 464,
"end": 472,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 464,
"end": 465,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "MemberExpression",
"span": {
"start": 468,
"end": 472,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 468,
"end": 469,
"ctxt": 0
},
"value": "b",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 470,
"end": 472,
"ctxt": 0
},
"value": "a4",
"optional": false
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 487,
"end": 496,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 487,
"end": 495,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 487,
"end": 488,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "MemberExpression",
"span": {
"start": 491,
"end": 495,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 491,
"end": 492,
"ctxt": 0
},
"value": "b",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 493,
"end": 495,
"ctxt": 0
},
"value": "a5",
"optional": false
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 507,
"end": 516,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 507,
"end": 515,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 507,
"end": 508,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "MemberExpression",
"span": {
"start": 511,
"end": 515,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 511,
"end": 512,
"ctxt": 0
},
"value": "b",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 513,
"end": 515,
"ctxt": 0
},
"value": "a6",
"optional": false
}
}
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 527,
"end": 562,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 531,
"end": 561,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 531,
"end": 533,
"ctxt": 0
},
"value": "a2",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 533,
"end": 561,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsConstructorType",
"span": {
"start": 535,
"end": 561,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 540,
"end": 550,
"ctxt": 0
},
"value": "x",
"optional": true,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 542,
"end": 550,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 544,
"end": 550,
"ctxt": 0
},
"kind": "number"
}
}
}
],
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 552,
"end": 561,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 555,
"end": 561,
"ctxt": 0
},
"kind": "number"
}
},
"isAbstract": false
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 568,
"end": 577,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 568,
"end": 576,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 568,
"end": 570,
"ctxt": 0
},
"value": "a2",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "MemberExpression",
"span": {
"start": 573,
"end": 576,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 573,
"end": 574,
"ctxt": 0
},
"value": "b",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 575,
"end": 576,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 588,
"end": 598,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 588,
"end": 597,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 588,
"end": 590,
"ctxt": 0
},
"value": "a2",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "MemberExpression",
"span": {
"start": 593,
"end": 597,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 593,
"end": 594,
"ctxt": 0
},
"value": "b",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 595,
"end": 597,
"ctxt": 0
},
"value": "a2",
"optional": false
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 609,
"end": 619,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 609,
"end": 618,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 609,
"end": 611,
"ctxt": 0
},
"value": "a2",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "MemberExpression",
"span": {
"start": 614,
"end": 618,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 614,
"end": 615,
"ctxt": 0
},
"value": "b",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 616,
"end": 618,
"ctxt": 0
},
"value": "a3",
"optional": false
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 630,
"end": 640,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 630,
"end": 639,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 630,
"end": 632,
"ctxt": 0
},
"value": "a2",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "MemberExpression",
"span": {
"start": 635,
"end": 639,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 635,
"end": 636,
"ctxt": 0
},
"value": "b",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 637,
"end": 639,
"ctxt": 0
},
"value": "a4",
"optional": false
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 651,
"end": 661,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 651,
"end": 660,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 651,
"end": 653,
"ctxt": 0
},
"value": "a2",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "MemberExpression",
"span": {
"start": 656,
"end": 660,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 656,
"end": 657,
"ctxt": 0
},
"value": "b",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 658,
"end": 660,
"ctxt": 0
},
"value": "a5",
"optional": false
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 672,
"end": 682,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 672,
"end": 681,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 672,
"end": 674,
"ctxt": 0
},
"value": "a2",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "MemberExpression",
"span": {
"start": 677,
"end": 681,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 677,
"end": 678,
"ctxt": 0
},
"value": "b",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 679,
"end": 681,
"ctxt": 0
},
"value": "a6",
"optional": false
}
}
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 693,
"end": 727,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 697,
"end": 726,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 697,
"end": 699,
"ctxt": 0
},
"value": "a3",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 699,
"end": 726,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsConstructorType",
"span": {
"start": 701,
"end": 726,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 706,
"end": 715,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 707,
"end": 715,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 709,
"end": 715,
"ctxt": 0
},
"kind": "number"
}
}
}
],
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 717,
"end": 726,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 720,
"end": 726,
"ctxt": 0
},
"kind": "number"
}
},
"isAbstract": false
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 733,
"end": 742,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 733,
"end": 741,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 733,
"end": 735,
"ctxt": 0
},
"value": "a3",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "MemberExpression",
"span": {
"start": 738,
"end": 741,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 738,
"end": 739,
"ctxt": 0
},
"value": "b",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 740,
"end": 741,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 753,
"end": 763,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 753,
"end": 762,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 753,
"end": 755,
"ctxt": 0
},
"value": "a3",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "MemberExpression",
"span": {
"start": 758,
"end": 762,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 758,
"end": 759,
"ctxt": 0
},
"value": "b",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 760,
"end": 762,
"ctxt": 0
},
"value": "a2",
"optional": false
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 774,
"end": 784,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 774,
"end": 783,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 774,
"end": 776,
"ctxt": 0
},
"value": "a3",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "MemberExpression",
"span": {
"start": 779,
"end": 783,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 779,
"end": 780,
"ctxt": 0
},
"value": "b",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 781,
"end": 783,
"ctxt": 0
},
"value": "a3",
"optional": false
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 795,
"end": 805,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 795,
"end": 804,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 795,
"end": 797,
"ctxt": 0
},
"value": "a3",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "MemberExpression",
"span": {
"start": 800,
"end": 804,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 800,
"end": 801,
"ctxt": 0
},
"value": "b",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 802,
"end": 804,
"ctxt": 0
},
"value": "a4",
"optional": false
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 816,
"end": 826,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 816,
"end": 825,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 816,
"end": 818,
"ctxt": 0
},
"value": "a3",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "MemberExpression",
"span": {
"start": 821,
"end": 825,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 821,
"end": 822,
"ctxt": 0
},
"value": "b",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 823,
"end": 825,
"ctxt": 0
},
"value": "a5",
"optional": false
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 837,
"end": 847,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 837,
"end": 846,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 837,
"end": 839,
"ctxt": 0
},
"value": "a3",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "MemberExpression",
"span": {
"start": 842,
"end": 846,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 842,
"end": 843,
"ctxt": 0
},
"value": "b",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 844,
"end": 846,
"ctxt": 0
},
"value": "a6",
"optional": false
}
}
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 858,
"end": 904,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 862,
"end": 903,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 862,
"end": 864,
"ctxt": 0
},
"value": "a4",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 864,
"end": 903,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsConstructorType",
"span": {
"start": 866,
"end": 903,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 871,
"end": 880,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 872,
"end": 880,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 874,
"end": 880,
"ctxt": 0
},
"kind": "number"
}
}
},
{
"type": "Identifier",
"span": {
"start": 882,
"end": 892,
"ctxt": 0
},
"value": "y",
"optional": true,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 884,
"end": 892,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 886,
"end": 892,
"ctxt": 0
},
"kind": "number"
}
}
}
],
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 894,
"end": 903,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 897,
"end": 903,
"ctxt": 0
},
"kind": "number"
}
},
"isAbstract": false
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 909,
"end": 918,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 909,
"end": 917,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 909,
"end": 911,
"ctxt": 0
},
"value": "a4",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "MemberExpression",
"span": {
"start": 914,
"end": 917,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 914,
"end": 915,
"ctxt": 0
},
"value": "b",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 916,
"end": 917,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 929,
"end": 939,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 929,
"end": 938,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 929,
"end": 931,
"ctxt": 0
},
"value": "a4",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "MemberExpression",
"span": {
"start": 934,
"end": 938,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 934,
"end": 935,
"ctxt": 0
},
"value": "b",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 936,
"end": 938,
"ctxt": 0
},
"value": "a2",
"optional": false
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 950,
"end": 960,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 950,
"end": 959,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 950,
"end": 952,
"ctxt": 0
},
"value": "a4",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "MemberExpression",
"span": {
"start": 955,
"end": 959,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 955,
"end": 956,
"ctxt": 0
},
"value": "b",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 957,
"end": 959,
"ctxt": 0
},
"value": "a3",
"optional": false
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 971,
"end": 981,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 971,
"end": 980,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 971,
"end": 973,
"ctxt": 0
},
"value": "a4",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "MemberExpression",
"span": {
"start": 976,
"end": 980,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 976,
"end": 977,
"ctxt": 0
},
"value": "b",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 978,
"end": 980,
"ctxt": 0
},
"value": "a4",
"optional": false
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 992,
"end": 1002,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 992,
"end": 1001,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 992,
"end": 994,
"ctxt": 0
},
"value": "a4",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "MemberExpression",
"span": {
"start": 997,
"end": 1001,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 997,
"end": 998,
"ctxt": 0
},
"value": "b",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 999,
"end": 1001,
"ctxt": 0
},
"value": "a5",
"optional": false
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1013,
"end": 1023,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1013,
"end": 1022,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 1013,
"end": 1015,
"ctxt": 0
},
"value": "a4",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "MemberExpression",
"span": {
"start": 1018,
"end": 1022,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1018,
"end": 1019,
"ctxt": 0
},
"value": "b",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1020,
"end": 1022,
"ctxt": 0
},
"value": "a6",
"optional": false
}
}
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 1031,
"end": 1078,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1035,
"end": 1077,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1035,
"end": 1037,
"ctxt": 0
},
"value": "a5",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1037,
"end": 1077,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsConstructorType",
"span": {
"start": 1039,
"end": 1077,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 1044,
"end": 1054,
"ctxt": 0
},
"value": "x",
"optional": true,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1046,
"end": 1054,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1048,
"end": 1054,
"ctxt": 0
},
"kind": "number"
}
}
},
{
"type": "Identifier",
"span": {
"start": 1056,
"end": 1066,
"ctxt": 0
},
"value": "y",
"optional": true,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1058,
"end": 1066,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1060,
"end": 1066,
"ctxt": 0
},
"kind": "number"
}
}
}
],
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1068,
"end": 1077,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1071,
"end": 1077,
"ctxt": 0
},
"kind": "number"
}
},
"isAbstract": false
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 1083,
"end": 1092,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1083,
"end": 1091,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 1083,
"end": 1085,
"ctxt": 0
},
"value": "a5",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "MemberExpression",
"span": {
"start": 1088,
"end": 1091,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1088,
"end": 1089,
"ctxt": 0
},
"value": "b",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1090,
"end": 1091,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1103,
"end": 1113,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1103,
"end": 1112,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 1103,
"end": 1105,
"ctxt": 0
},
"value": "a5",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "MemberExpression",
"span": {
"start": 1108,
"end": 1112,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1108,
"end": 1109,
"ctxt": 0
},
"value": "b",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1110,
"end": 1112,
"ctxt": 0
},
"value": "a2",
"optional": false
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1124,
"end": 1134,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1124,
"end": 1133,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 1124,
"end": 1126,
"ctxt": 0
},
"value": "a5",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "MemberExpression",
"span": {
"start": 1129,
"end": 1133,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1129,
"end": 1130,
"ctxt": 0
},
"value": "b",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1131,
"end": 1133,
"ctxt": 0
},
"value": "a3",
"optional": false
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1145,
"end": 1155,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1145,
"end": 1154,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 1145,
"end": 1147,
"ctxt": 0
},
"value": "a5",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "MemberExpression",
"span": {
"start": 1150,
"end": 1154,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1150,
"end": 1151,
"ctxt": 0
},
"value": "b",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1152,
"end": 1154,
"ctxt": 0
},
"value": "a4",
"optional": false
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1166,
"end": 1176,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1166,
"end": 1175,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 1166,
"end": 1168,
"ctxt": 0
},
"value": "a5",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "MemberExpression",
"span": {
"start": 1171,
"end": 1175,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1171,
"end": 1172,
"ctxt": 0
},
"value": "b",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1173,
"end": 1175,
"ctxt": 0
},
"value": "a5",
"optional": false
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1187,
"end": 1197,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1187,
"end": 1196,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 1187,
"end": 1189,
"ctxt": 0
},
"value": "a5",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "MemberExpression",
"span": {
"start": 1192,
"end": 1196,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1192,
"end": 1193,
"ctxt": 0
},
"value": "b",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1194,
"end": 1196,
"ctxt": 0
},
"value": "a6",
"optional": false
}
}
}
}
],
"interpreter": null
}