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

2194 lines
59 KiB
JSON

{
"type": "Script",
"span": {
"start": 57,
"end": 898,
"ctxt": 0
},
"body": [
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 74,
"end": 79,
"ctxt": 0
},
"value": "unbox",
"optional": false
},
"declare": true,
"params": [
{
"type": "Parameter",
"span": {
"start": 83,
"end": 112,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 83,
"end": 112,
"ctxt": 0
},
"value": "box",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 86,
"end": 112,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 88,
"end": 112,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 90,
"end": 110,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 90,
"end": 95,
"ctxt": 0
},
"value": "value",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 95,
"end": 110,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 97,
"end": 110,
"ctxt": 0
},
"types": [
{
"type": "TsTypeReference",
"span": {
"start": 97,
"end": 98,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 97,
"end": 98,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
},
{
"type": "TsKeywordType",
"span": {
"start": 101,
"end": 110,
"ctxt": 0
},
"kind": "undefined"
}
]
}
},
"typeParams": null
}
]
}
}
}
}
],
"decorators": [],
"span": {
"start": 57,
"end": 117,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 79,
"end": 82,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 80,
"end": 81,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 80,
"end": 81,
"ctxt": 0
},
"value": "T",
"optional": false
},
"in": false,
"out": false,
"constraint": null,
"default": null
}
]
},
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 113,
"end": 116,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 115,
"end": 116,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 115,
"end": 116,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 118,
"end": 155,
"ctxt": 0
},
"kind": "const",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 132,
"end": 154,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 132,
"end": 134,
"ctxt": 0
},
"value": "su",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 134,
"end": 154,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 136,
"end": 154,
"ctxt": 0
},
"types": [
{
"type": "TsKeywordType",
"span": {
"start": 136,
"end": 142,
"ctxt": 0
},
"kind": "string"
},
{
"type": "TsKeywordType",
"span": {
"start": 145,
"end": 154,
"ctxt": 0
},
"kind": "undefined"
}
]
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 156,
"end": 202,
"ctxt": 0
},
"kind": "const",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 170,
"end": 201,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 170,
"end": 173,
"ctxt": 0
},
"value": "fnu",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 173,
"end": 201,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 175,
"end": 201,
"ctxt": 0
},
"types": [
{
"type": "TsParenthesizedType",
"span": {
"start": 175,
"end": 189,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsFunctionType",
"span": {
"start": 176,
"end": 188,
"ctxt": 0
},
"params": [],
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 179,
"end": 188,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 182,
"end": 188,
"ctxt": 0
},
"kind": "number"
}
}
}
},
{
"type": "TsKeywordType",
"span": {
"start": 192,
"end": 201,
"ctxt": 0
},
"kind": "undefined"
}
]
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 203,
"end": 251,
"ctxt": 0
},
"kind": "const",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 217,
"end": 250,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 217,
"end": 220,
"ctxt": 0
},
"value": "osu",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 220,
"end": 250,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 222,
"end": 250,
"ctxt": 0
},
"types": [
{
"type": "TsTypeLiteral",
"span": {
"start": 222,
"end": 238,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 224,
"end": 236,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 224,
"end": 228,
"ctxt": 0
},
"value": "prop",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 228,
"end": 236,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 230,
"end": 236,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
}
]
},
{
"type": "TsKeywordType",
"span": {
"start": 241,
"end": 250,
"ctxt": 0
},
"kind": "undefined"
}
]
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 252,
"end": 307,
"ctxt": 0
},
"kind": "const",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 266,
"end": 306,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 266,
"end": 270,
"ctxt": 0
},
"value": "ofnu",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 270,
"end": 306,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 272,
"end": 306,
"ctxt": 0
},
"types": [
{
"type": "TsTypeLiteral",
"span": {
"start": 272,
"end": 294,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 274,
"end": 292,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 274,
"end": 278,
"ctxt": 0
},
"value": "prop",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 278,
"end": 292,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsFunctionType",
"span": {
"start": 280,
"end": 292,
"ctxt": 0
},
"params": [],
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 283,
"end": 292,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 286,
"end": 292,
"ctxt": 0
},
"kind": "number"
}
}
}
},
"typeParams": null
}
]
},
{
"type": "TsKeywordType",
"span": {
"start": 297,
"end": 306,
"ctxt": 0
},
"kind": "undefined"
}
]
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 309,
"end": 342,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 315,
"end": 341,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 315,
"end": 317,
"ctxt": 0
},
"value": "b1",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 320,
"end": 341,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 322,
"end": 327,
"ctxt": 0
},
"value": "value",
"optional": false
},
"value": {
"type": "OptionalChainingExpression",
"span": {
"start": 329,
"end": 339,
"ctxt": 0
},
"questionDotToken": {
"start": 331,
"end": 332,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 329,
"end": 339,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 329,
"end": 331,
"ctxt": 0
},
"value": "su",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 333,
"end": 339,
"ctxt": 0
},
"value": "length",
"optional": false
}
}
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 343,
"end": 372,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 349,
"end": 371,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 349,
"end": 351,
"ctxt": 0
},
"value": "v1",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 351,
"end": 359,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 353,
"end": 359,
"ctxt": 0
},
"kind": "number"
}
}
},
"init": {
"type": "CallExpression",
"span": {
"start": 362,
"end": 371,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 362,
"end": 367,
"ctxt": 0
},
"value": "unbox",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 368,
"end": 370,
"ctxt": 0
},
"value": "b1",
"optional": false
}
}
],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 374,
"end": 429,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 380,
"end": 428,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 380,
"end": 382,
"ctxt": 0
},
"value": "b2",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 385,
"end": 428,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 387,
"end": 392,
"ctxt": 0
},
"value": "value",
"optional": false
},
"value": {
"type": "TsAsExpression",
"span": {
"start": 394,
"end": 426,
"ctxt": 0
},
"expression": {
"type": "OptionalChainingExpression",
"span": {
"start": 394,
"end": 404,
"ctxt": 0
},
"questionDotToken": {
"start": 396,
"end": 397,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 394,
"end": 404,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 394,
"end": 396,
"ctxt": 0
},
"value": "su",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 398,
"end": 404,
"ctxt": 0
},
"value": "length",
"optional": false
}
}
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 408,
"end": 426,
"ctxt": 0
},
"types": [
{
"type": "TsKeywordType",
"span": {
"start": 408,
"end": 414,
"ctxt": 0
},
"kind": "number"
},
{
"type": "TsKeywordType",
"span": {
"start": 417,
"end": 426,
"ctxt": 0
},
"kind": "undefined"
}
]
}
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 430,
"end": 459,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 436,
"end": 458,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 436,
"end": 438,
"ctxt": 0
},
"value": "v2",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 438,
"end": 446,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 440,
"end": 446,
"ctxt": 0
},
"kind": "number"
}
}
},
"init": {
"type": "CallExpression",
"span": {
"start": 449,
"end": 458,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 449,
"end": 454,
"ctxt": 0
},
"value": "unbox",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 455,
"end": 457,
"ctxt": 0
},
"value": "b2",
"optional": false
}
}
],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 461,
"end": 525,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 467,
"end": 524,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 467,
"end": 469,
"ctxt": 0
},
"value": "b3",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 469,
"end": 500,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 471,
"end": 500,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 473,
"end": 498,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 473,
"end": 478,
"ctxt": 0
},
"value": "value",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 478,
"end": 498,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 480,
"end": 498,
"ctxt": 0
},
"types": [
{
"type": "TsKeywordType",
"span": {
"start": 480,
"end": 486,
"ctxt": 0
},
"kind": "number"
},
{
"type": "TsKeywordType",
"span": {
"start": 489,
"end": 498,
"ctxt": 0
},
"kind": "undefined"
}
]
}
},
"typeParams": null
}
]
}
}
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 503,
"end": 524,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 505,
"end": 510,
"ctxt": 0
},
"value": "value",
"optional": false
},
"value": {
"type": "OptionalChainingExpression",
"span": {
"start": 512,
"end": 522,
"ctxt": 0
},
"questionDotToken": {
"start": 514,
"end": 515,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 512,
"end": 522,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 512,
"end": 514,
"ctxt": 0
},
"value": "su",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 516,
"end": 522,
"ctxt": 0
},
"value": "length",
"optional": false
}
}
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 526,
"end": 555,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 532,
"end": 554,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 532,
"end": 534,
"ctxt": 0
},
"value": "v3",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 534,
"end": 542,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 536,
"end": 542,
"ctxt": 0
},
"kind": "number"
}
}
},
"init": {
"type": "CallExpression",
"span": {
"start": 545,
"end": 554,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 545,
"end": 550,
"ctxt": 0
},
"value": "unbox",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 551,
"end": 553,
"ctxt": 0
},
"value": "b3",
"optional": false
}
}
],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 557,
"end": 587,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 563,
"end": 586,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 563,
"end": 565,
"ctxt": 0
},
"value": "b4",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 568,
"end": 586,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 570,
"end": 575,
"ctxt": 0
},
"value": "value",
"optional": false
},
"value": {
"type": "OptionalChainingExpression",
"span": {
"start": 577,
"end": 584,
"ctxt": 0
},
"questionDotToken": {
"start": 580,
"end": 581,
"ctxt": 0
},
"base": {
"type": "CallExpression",
"span": {
"start": 577,
"end": 584,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 577,
"end": 580,
"ctxt": 0
},
"value": "fnu",
"optional": false
},
"arguments": [],
"typeArguments": null
}
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 588,
"end": 617,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 594,
"end": 616,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 594,
"end": 596,
"ctxt": 0
},
"value": "v4",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 596,
"end": 604,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 598,
"end": 604,
"ctxt": 0
},
"kind": "number"
}
}
},
"init": {
"type": "CallExpression",
"span": {
"start": 607,
"end": 616,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 607,
"end": 612,
"ctxt": 0
},
"value": "unbox",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 613,
"end": 615,
"ctxt": 0
},
"value": "b4",
"optional": false
}
}
],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 619,
"end": 656,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 625,
"end": 655,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 625,
"end": 627,
"ctxt": 0
},
"value": "b5",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 630,
"end": 655,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 632,
"end": 637,
"ctxt": 0
},
"value": "value",
"optional": false
},
"value": {
"type": "OptionalChainingExpression",
"span": {
"start": 639,
"end": 653,
"ctxt": 0
},
"questionDotToken": {
"start": 641,
"end": 642,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 639,
"end": 653,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 639,
"end": 641,
"ctxt": 0
},
"value": "su",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 643,
"end": 653,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 644,
"end": 652,
"ctxt": 0
},
"value": "length",
"raw": "\"length\""
}
}
}
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 657,
"end": 686,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 663,
"end": 685,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 663,
"end": 665,
"ctxt": 0
},
"value": "v5",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 665,
"end": 673,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 667,
"end": 673,
"ctxt": 0
},
"kind": "number"
}
}
},
"init": {
"type": "CallExpression",
"span": {
"start": 676,
"end": 685,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 676,
"end": 681,
"ctxt": 0
},
"value": "unbox",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 682,
"end": 684,
"ctxt": 0
},
"value": "b5",
"optional": false
}
}
],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 688,
"end": 727,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 694,
"end": 726,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 694,
"end": 696,
"ctxt": 0
},
"value": "b6",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 699,
"end": 726,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 701,
"end": 706,
"ctxt": 0
},
"value": "value",
"optional": false
},
"value": {
"type": "MemberExpression",
"span": {
"start": 708,
"end": 724,
"ctxt": 0
},
"object": {
"type": "OptionalChainingExpression",
"span": {
"start": 708,
"end": 717,
"ctxt": 0
},
"questionDotToken": {
"start": 711,
"end": 712,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 708,
"end": 717,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 708,
"end": 711,
"ctxt": 0
},
"value": "osu",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 713,
"end": 717,
"ctxt": 0
},
"value": "prop",
"optional": false
}
}
},
"property": {
"type": "Identifier",
"span": {
"start": 718,
"end": 724,
"ctxt": 0
},
"value": "length",
"optional": false
}
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 728,
"end": 757,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 734,
"end": 756,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 734,
"end": 736,
"ctxt": 0
},
"value": "v6",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 736,
"end": 744,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 738,
"end": 744,
"ctxt": 0
},
"kind": "number"
}
}
},
"init": {
"type": "CallExpression",
"span": {
"start": 747,
"end": 756,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 747,
"end": 752,
"ctxt": 0
},
"value": "unbox",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 753,
"end": 755,
"ctxt": 0
},
"value": "b6",
"optional": false
}
}
],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 759,
"end": 801,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 765,
"end": 800,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 765,
"end": 767,
"ctxt": 0
},
"value": "b7",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 770,
"end": 800,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 772,
"end": 777,
"ctxt": 0
},
"value": "value",
"optional": false
},
"value": {
"type": "MemberExpression",
"span": {
"start": 779,
"end": 798,
"ctxt": 0
},
"object": {
"type": "OptionalChainingExpression",
"span": {
"start": 779,
"end": 788,
"ctxt": 0
},
"questionDotToken": {
"start": 782,
"end": 783,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 779,
"end": 788,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 779,
"end": 782,
"ctxt": 0
},
"value": "osu",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 784,
"end": 788,
"ctxt": 0
},
"value": "prop",
"optional": false
}
}
},
"property": {
"type": "Computed",
"span": {
"start": 788,
"end": 798,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 789,
"end": 797,
"ctxt": 0
},
"value": "length",
"raw": "\"length\""
}
}
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 802,
"end": 831,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 808,
"end": 830,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 808,
"end": 810,
"ctxt": 0
},
"value": "v7",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 810,
"end": 818,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 812,
"end": 818,
"ctxt": 0
},
"kind": "number"
}
}
},
"init": {
"type": "CallExpression",
"span": {
"start": 821,
"end": 830,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 821,
"end": 826,
"ctxt": 0
},
"value": "unbox",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 827,
"end": 829,
"ctxt": 0
},
"value": "b7",
"optional": false
}
}
],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 833,
"end": 868,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 839,
"end": 867,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 839,
"end": 841,
"ctxt": 0
},
"value": "b8",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 844,
"end": 867,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 846,
"end": 851,
"ctxt": 0
},
"value": "value",
"optional": false
},
"value": {
"type": "CallExpression",
"span": {
"start": 853,
"end": 865,
"ctxt": 0
},
"callee": {
"type": "OptionalChainingExpression",
"span": {
"start": 853,
"end": 863,
"ctxt": 0
},
"questionDotToken": {
"start": 857,
"end": 858,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 853,
"end": 863,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 853,
"end": 857,
"ctxt": 0
},
"value": "ofnu",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 859,
"end": 863,
"ctxt": 0
},
"value": "prop",
"optional": false
}
}
},
"arguments": [],
"typeArguments": null
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 869,
"end": 898,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 875,
"end": 897,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 875,
"end": 877,
"ctxt": 0
},
"value": "v8",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 877,
"end": 885,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 879,
"end": 885,
"ctxt": 0
},
"kind": "number"
}
}
},
"init": {
"type": "CallExpression",
"span": {
"start": 888,
"end": 897,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 888,
"end": 893,
"ctxt": 0
},
"value": "unbox",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 894,
"end": 896,
"ctxt": 0
},
"value": "b8",
"optional": false
}
}
],
"typeArguments": null
},
"definite": false
}
]
}
],
"interpreter": null
}