swc/crates/swc_ecma_parser/tests/tsc/optionalChainingInference.json
2022-03-22 07:54:08 +00:00

2192 lines
59 KiB
JSON

{
"type": "Script",
"span": {
"start": 56,
"end": 897,
"ctxt": 0
},
"body": [
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 73,
"end": 78,
"ctxt": 0
},
"value": "unbox",
"optional": false
},
"declare": true,
"params": [
{
"type": "Parameter",
"span": {
"start": 82,
"end": 111,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 82,
"end": 111,
"ctxt": 0
},
"value": "box",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 85,
"end": 111,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 87,
"end": 111,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 89,
"end": 109,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 89,
"end": 94,
"ctxt": 0
},
"value": "value",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 94,
"end": 109,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 96,
"end": 109,
"ctxt": 0
},
"types": [
{
"type": "TsTypeReference",
"span": {
"start": 96,
"end": 97,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 96,
"end": 97,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
},
{
"type": "TsKeywordType",
"span": {
"start": 100,
"end": 109,
"ctxt": 0
},
"kind": "undefined"
}
]
}
},
"typeParams": null
}
]
}
}
}
}
],
"decorators": [],
"span": {
"start": 56,
"end": 116,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 78,
"end": 81,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 79,
"end": 80,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 79,
"end": 80,
"ctxt": 0
},
"value": "T",
"optional": false
},
"constraint": null,
"default": null
}
]
},
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 112,
"end": 115,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 114,
"end": 115,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 114,
"end": 115,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 117,
"end": 154,
"ctxt": 0
},
"kind": "const",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 131,
"end": 153,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 131,
"end": 133,
"ctxt": 0
},
"value": "su",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 133,
"end": 153,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 135,
"end": 153,
"ctxt": 0
},
"types": [
{
"type": "TsKeywordType",
"span": {
"start": 135,
"end": 141,
"ctxt": 0
},
"kind": "string"
},
{
"type": "TsKeywordType",
"span": {
"start": 144,
"end": 153,
"ctxt": 0
},
"kind": "undefined"
}
]
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 155,
"end": 201,
"ctxt": 0
},
"kind": "const",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 169,
"end": 200,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 169,
"end": 172,
"ctxt": 0
},
"value": "fnu",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 172,
"end": 200,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 174,
"end": 200,
"ctxt": 0
},
"types": [
{
"type": "TsParenthesizedType",
"span": {
"start": 174,
"end": 188,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsFunctionType",
"span": {
"start": 175,
"end": 187,
"ctxt": 0
},
"params": [],
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 178,
"end": 187,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 181,
"end": 187,
"ctxt": 0
},
"kind": "number"
}
}
}
},
{
"type": "TsKeywordType",
"span": {
"start": 191,
"end": 200,
"ctxt": 0
},
"kind": "undefined"
}
]
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 202,
"end": 250,
"ctxt": 0
},
"kind": "const",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 216,
"end": 249,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 216,
"end": 219,
"ctxt": 0
},
"value": "osu",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 219,
"end": 249,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 221,
"end": 249,
"ctxt": 0
},
"types": [
{
"type": "TsTypeLiteral",
"span": {
"start": 221,
"end": 237,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 223,
"end": 235,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 223,
"end": 227,
"ctxt": 0
},
"value": "prop",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 227,
"end": 235,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 229,
"end": 235,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
}
]
},
{
"type": "TsKeywordType",
"span": {
"start": 240,
"end": 249,
"ctxt": 0
},
"kind": "undefined"
}
]
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 251,
"end": 306,
"ctxt": 0
},
"kind": "const",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 265,
"end": 305,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 265,
"end": 269,
"ctxt": 0
},
"value": "ofnu",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 269,
"end": 305,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 271,
"end": 305,
"ctxt": 0
},
"types": [
{
"type": "TsTypeLiteral",
"span": {
"start": 271,
"end": 293,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 273,
"end": 291,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 273,
"end": 277,
"ctxt": 0
},
"value": "prop",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 277,
"end": 291,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsFunctionType",
"span": {
"start": 279,
"end": 291,
"ctxt": 0
},
"params": [],
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 282,
"end": 291,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 285,
"end": 291,
"ctxt": 0
},
"kind": "number"
}
}
}
},
"typeParams": null
}
]
},
{
"type": "TsKeywordType",
"span": {
"start": 296,
"end": 305,
"ctxt": 0
},
"kind": "undefined"
}
]
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 308,
"end": 341,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 314,
"end": 340,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 314,
"end": 316,
"ctxt": 0
},
"value": "b1",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 319,
"end": 340,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 321,
"end": 326,
"ctxt": 0
},
"value": "value",
"optional": false
},
"value": {
"type": "OptionalChainingExpression",
"span": {
"start": 328,
"end": 338,
"ctxt": 0
},
"questionDotToken": {
"start": 330,
"end": 331,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 328,
"end": 338,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 328,
"end": 330,
"ctxt": 0
},
"value": "su",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 332,
"end": 338,
"ctxt": 0
},
"value": "length",
"optional": false
}
}
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 342,
"end": 371,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 348,
"end": 370,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 348,
"end": 350,
"ctxt": 0
},
"value": "v1",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 350,
"end": 358,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 352,
"end": 358,
"ctxt": 0
},
"kind": "number"
}
}
},
"init": {
"type": "CallExpression",
"span": {
"start": 361,
"end": 370,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 361,
"end": 366,
"ctxt": 0
},
"value": "unbox",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 367,
"end": 369,
"ctxt": 0
},
"value": "b1",
"optional": false
}
}
],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 373,
"end": 428,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 379,
"end": 427,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 379,
"end": 381,
"ctxt": 0
},
"value": "b2",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 384,
"end": 427,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 386,
"end": 391,
"ctxt": 0
},
"value": "value",
"optional": false
},
"value": {
"type": "TsAsExpression",
"span": {
"start": 393,
"end": 425,
"ctxt": 0
},
"expression": {
"type": "OptionalChainingExpression",
"span": {
"start": 393,
"end": 403,
"ctxt": 0
},
"questionDotToken": {
"start": 395,
"end": 396,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 393,
"end": 403,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 393,
"end": 395,
"ctxt": 0
},
"value": "su",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 397,
"end": 403,
"ctxt": 0
},
"value": "length",
"optional": false
}
}
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 407,
"end": 425,
"ctxt": 0
},
"types": [
{
"type": "TsKeywordType",
"span": {
"start": 407,
"end": 413,
"ctxt": 0
},
"kind": "number"
},
{
"type": "TsKeywordType",
"span": {
"start": 416,
"end": 425,
"ctxt": 0
},
"kind": "undefined"
}
]
}
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 429,
"end": 458,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 435,
"end": 457,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 435,
"end": 437,
"ctxt": 0
},
"value": "v2",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 437,
"end": 445,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 439,
"end": 445,
"ctxt": 0
},
"kind": "number"
}
}
},
"init": {
"type": "CallExpression",
"span": {
"start": 448,
"end": 457,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 448,
"end": 453,
"ctxt": 0
},
"value": "unbox",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 454,
"end": 456,
"ctxt": 0
},
"value": "b2",
"optional": false
}
}
],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 460,
"end": 524,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 466,
"end": 523,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 466,
"end": 468,
"ctxt": 0
},
"value": "b3",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 468,
"end": 499,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 470,
"end": 499,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 472,
"end": 497,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 472,
"end": 477,
"ctxt": 0
},
"value": "value",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 477,
"end": 497,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 479,
"end": 497,
"ctxt": 0
},
"types": [
{
"type": "TsKeywordType",
"span": {
"start": 479,
"end": 485,
"ctxt": 0
},
"kind": "number"
},
{
"type": "TsKeywordType",
"span": {
"start": 488,
"end": 497,
"ctxt": 0
},
"kind": "undefined"
}
]
}
},
"typeParams": null
}
]
}
}
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 502,
"end": 523,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 504,
"end": 509,
"ctxt": 0
},
"value": "value",
"optional": false
},
"value": {
"type": "OptionalChainingExpression",
"span": {
"start": 511,
"end": 521,
"ctxt": 0
},
"questionDotToken": {
"start": 513,
"end": 514,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 511,
"end": 521,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 511,
"end": 513,
"ctxt": 0
},
"value": "su",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 515,
"end": 521,
"ctxt": 0
},
"value": "length",
"optional": false
}
}
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 525,
"end": 554,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 531,
"end": 553,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 531,
"end": 533,
"ctxt": 0
},
"value": "v3",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 533,
"end": 541,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 535,
"end": 541,
"ctxt": 0
},
"kind": "number"
}
}
},
"init": {
"type": "CallExpression",
"span": {
"start": 544,
"end": 553,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 544,
"end": 549,
"ctxt": 0
},
"value": "unbox",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 550,
"end": 552,
"ctxt": 0
},
"value": "b3",
"optional": false
}
}
],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 556,
"end": 586,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 562,
"end": 585,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 562,
"end": 564,
"ctxt": 0
},
"value": "b4",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 567,
"end": 585,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 569,
"end": 574,
"ctxt": 0
},
"value": "value",
"optional": false
},
"value": {
"type": "OptionalChainingExpression",
"span": {
"start": 576,
"end": 583,
"ctxt": 0
},
"questionDotToken": {
"start": 579,
"end": 580,
"ctxt": 0
},
"base": {
"type": "CallExpression",
"span": {
"start": 576,
"end": 583,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 576,
"end": 579,
"ctxt": 0
},
"value": "fnu",
"optional": false
},
"arguments": [],
"typeArguments": null
}
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 587,
"end": 616,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 593,
"end": 615,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 593,
"end": 595,
"ctxt": 0
},
"value": "v4",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 595,
"end": 603,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 597,
"end": 603,
"ctxt": 0
},
"kind": "number"
}
}
},
"init": {
"type": "CallExpression",
"span": {
"start": 606,
"end": 615,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 606,
"end": 611,
"ctxt": 0
},
"value": "unbox",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 612,
"end": 614,
"ctxt": 0
},
"value": "b4",
"optional": false
}
}
],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 618,
"end": 655,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 624,
"end": 654,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 624,
"end": 626,
"ctxt": 0
},
"value": "b5",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 629,
"end": 654,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 631,
"end": 636,
"ctxt": 0
},
"value": "value",
"optional": false
},
"value": {
"type": "OptionalChainingExpression",
"span": {
"start": 638,
"end": 652,
"ctxt": 0
},
"questionDotToken": {
"start": 640,
"end": 641,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 638,
"end": 652,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 638,
"end": 640,
"ctxt": 0
},
"value": "su",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 642,
"end": 652,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 643,
"end": 651,
"ctxt": 0
},
"value": "length",
"raw": "\"length\""
}
}
}
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 656,
"end": 685,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 662,
"end": 684,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 662,
"end": 664,
"ctxt": 0
},
"value": "v5",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 664,
"end": 672,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 666,
"end": 672,
"ctxt": 0
},
"kind": "number"
}
}
},
"init": {
"type": "CallExpression",
"span": {
"start": 675,
"end": 684,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 675,
"end": 680,
"ctxt": 0
},
"value": "unbox",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 681,
"end": 683,
"ctxt": 0
},
"value": "b5",
"optional": false
}
}
],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 687,
"end": 726,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 693,
"end": 725,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 693,
"end": 695,
"ctxt": 0
},
"value": "b6",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 698,
"end": 725,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 700,
"end": 705,
"ctxt": 0
},
"value": "value",
"optional": false
},
"value": {
"type": "MemberExpression",
"span": {
"start": 707,
"end": 723,
"ctxt": 0
},
"object": {
"type": "OptionalChainingExpression",
"span": {
"start": 707,
"end": 716,
"ctxt": 0
},
"questionDotToken": {
"start": 710,
"end": 711,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 707,
"end": 716,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 707,
"end": 710,
"ctxt": 0
},
"value": "osu",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 712,
"end": 716,
"ctxt": 0
},
"value": "prop",
"optional": false
}
}
},
"property": {
"type": "Identifier",
"span": {
"start": 717,
"end": 723,
"ctxt": 0
},
"value": "length",
"optional": false
}
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 727,
"end": 756,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 733,
"end": 755,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 733,
"end": 735,
"ctxt": 0
},
"value": "v6",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 735,
"end": 743,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 737,
"end": 743,
"ctxt": 0
},
"kind": "number"
}
}
},
"init": {
"type": "CallExpression",
"span": {
"start": 746,
"end": 755,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 746,
"end": 751,
"ctxt": 0
},
"value": "unbox",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 752,
"end": 754,
"ctxt": 0
},
"value": "b6",
"optional": false
}
}
],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 758,
"end": 800,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 764,
"end": 799,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 764,
"end": 766,
"ctxt": 0
},
"value": "b7",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 769,
"end": 799,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 771,
"end": 776,
"ctxt": 0
},
"value": "value",
"optional": false
},
"value": {
"type": "MemberExpression",
"span": {
"start": 778,
"end": 797,
"ctxt": 0
},
"object": {
"type": "OptionalChainingExpression",
"span": {
"start": 778,
"end": 787,
"ctxt": 0
},
"questionDotToken": {
"start": 781,
"end": 782,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 778,
"end": 787,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 778,
"end": 781,
"ctxt": 0
},
"value": "osu",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 783,
"end": 787,
"ctxt": 0
},
"value": "prop",
"optional": false
}
}
},
"property": {
"type": "Computed",
"span": {
"start": 787,
"end": 797,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 788,
"end": 796,
"ctxt": 0
},
"value": "length",
"raw": "\"length\""
}
}
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 801,
"end": 830,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 807,
"end": 829,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 807,
"end": 809,
"ctxt": 0
},
"value": "v7",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 809,
"end": 817,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 811,
"end": 817,
"ctxt": 0
},
"kind": "number"
}
}
},
"init": {
"type": "CallExpression",
"span": {
"start": 820,
"end": 829,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 820,
"end": 825,
"ctxt": 0
},
"value": "unbox",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 826,
"end": 828,
"ctxt": 0
},
"value": "b7",
"optional": false
}
}
],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 832,
"end": 867,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 838,
"end": 866,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 838,
"end": 840,
"ctxt": 0
},
"value": "b8",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 843,
"end": 866,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 845,
"end": 850,
"ctxt": 0
},
"value": "value",
"optional": false
},
"value": {
"type": "CallExpression",
"span": {
"start": 852,
"end": 864,
"ctxt": 0
},
"callee": {
"type": "OptionalChainingExpression",
"span": {
"start": 852,
"end": 862,
"ctxt": 0
},
"questionDotToken": {
"start": 856,
"end": 857,
"ctxt": 0
},
"base": {
"type": "MemberExpression",
"span": {
"start": 852,
"end": 862,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 852,
"end": 856,
"ctxt": 0
},
"value": "ofnu",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 858,
"end": 862,
"ctxt": 0
},
"value": "prop",
"optional": false
}
}
},
"arguments": [],
"typeArguments": null
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 868,
"end": 897,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 874,
"end": 896,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 874,
"end": 876,
"ctxt": 0
},
"value": "v8",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 876,
"end": 884,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 878,
"end": 884,
"ctxt": 0
},
"kind": "number"
}
}
},
"init": {
"type": "CallExpression",
"span": {
"start": 887,
"end": 896,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 887,
"end": 892,
"ctxt": 0
},
"value": "unbox",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 893,
"end": 895,
"ctxt": 0
},
"value": "b8",
"optional": false
}
}
],
"typeArguments": null
},
"definite": false
}
]
}
],
"interpreter": null
}