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

2694 lines
68 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 38,
"end": 1063,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 38,
"end": 84,
"ctxt": 0
},
"kind": "const",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 52,
"end": 84,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 52,
"end": 54,
"ctxt": 0
},
"value": "a1",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 54,
"end": 84,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 56,
"end": 84,
"ctxt": 0
},
"types": [
{
"type": "TsLiteralType",
"span": {
"start": 56,
"end": 65,
"ctxt": 0
},
"literal": {
"type": "StringLiteral",
"span": {
"start": 56,
"end": 65,
"ctxt": 0
},
"value": "literal",
"raw": "'literal'"
}
},
{
"type": "TsKeywordType",
"span": {
"start": 68,
"end": 77,
"ctxt": 0
},
"kind": "undefined"
},
{
"type": "TsKeywordType",
"span": {
"start": 80,
"end": 84,
"ctxt": 0
},
"kind": "null"
}
]
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 85,
"end": 124,
"ctxt": 0
},
"kind": "const",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 99,
"end": 124,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 99,
"end": 101,
"ctxt": 0
},
"value": "a2",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 101,
"end": 124,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 103,
"end": 124,
"ctxt": 0
},
"types": [
{
"type": "TsLiteralType",
"span": {
"start": 103,
"end": 105,
"ctxt": 0
},
"literal": {
"type": "StringLiteral",
"span": {
"start": 103,
"end": 105,
"ctxt": 0
},
"value": "",
"raw": "''"
}
},
{
"type": "TsKeywordType",
"span": {
"start": 108,
"end": 117,
"ctxt": 0
},
"kind": "undefined"
},
{
"type": "TsKeywordType",
"span": {
"start": 120,
"end": 124,
"ctxt": 0
},
"kind": "null"
}
]
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 125,
"end": 163,
"ctxt": 0
},
"kind": "const",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 139,
"end": 163,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 139,
"end": 141,
"ctxt": 0
},
"value": "a3",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 141,
"end": 163,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 143,
"end": 163,
"ctxt": 0
},
"types": [
{
"type": "TsLiteralType",
"span": {
"start": 143,
"end": 144,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 143,
"end": 144,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
},
{
"type": "TsKeywordType",
"span": {
"start": 147,
"end": 156,
"ctxt": 0
},
"kind": "undefined"
},
{
"type": "TsKeywordType",
"span": {
"start": 159,
"end": 163,
"ctxt": 0
},
"kind": "null"
}
]
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 164,
"end": 202,
"ctxt": 0
},
"kind": "const",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 178,
"end": 202,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 178,
"end": 180,
"ctxt": 0
},
"value": "a4",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 180,
"end": 202,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 182,
"end": 202,
"ctxt": 0
},
"types": [
{
"type": "TsLiteralType",
"span": {
"start": 182,
"end": 183,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 182,
"end": 183,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
},
{
"type": "TsKeywordType",
"span": {
"start": 186,
"end": 195,
"ctxt": 0
},
"kind": "undefined"
},
{
"type": "TsKeywordType",
"span": {
"start": 198,
"end": 202,
"ctxt": 0
},
"kind": "null"
}
]
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 203,
"end": 244,
"ctxt": 0
},
"kind": "const",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 217,
"end": 244,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 217,
"end": 219,
"ctxt": 0
},
"value": "a5",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 219,
"end": 244,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 221,
"end": 244,
"ctxt": 0
},
"types": [
{
"type": "TsLiteralType",
"span": {
"start": 221,
"end": 225,
"ctxt": 0
},
"literal": {
"type": "BooleanLiteral",
"span": {
"start": 221,
"end": 225,
"ctxt": 0
},
"value": true
}
},
{
"type": "TsKeywordType",
"span": {
"start": 228,
"end": 237,
"ctxt": 0
},
"kind": "undefined"
},
{
"type": "TsKeywordType",
"span": {
"start": 240,
"end": 244,
"ctxt": 0
},
"kind": "null"
}
]
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 245,
"end": 287,
"ctxt": 0
},
"kind": "const",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 259,
"end": 287,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 259,
"end": 261,
"ctxt": 0
},
"value": "a6",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 261,
"end": 287,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 263,
"end": 287,
"ctxt": 0
},
"types": [
{
"type": "TsLiteralType",
"span": {
"start": 263,
"end": 268,
"ctxt": 0
},
"literal": {
"type": "BooleanLiteral",
"span": {
"start": 263,
"end": 268,
"ctxt": 0
},
"value": false
}
},
{
"type": "TsKeywordType",
"span": {
"start": 271,
"end": 280,
"ctxt": 0
},
"kind": "undefined"
},
{
"type": "TsKeywordType",
"span": {
"start": 283,
"end": 287,
"ctxt": 0
},
"kind": "null"
}
]
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 288,
"end": 320,
"ctxt": 0
},
"kind": "const",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 302,
"end": 320,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 302,
"end": 304,
"ctxt": 0
},
"value": "a7",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 304,
"end": 320,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 306,
"end": 320,
"ctxt": 0
},
"types": [
{
"type": "TsKeywordType",
"span": {
"start": 306,
"end": 313,
"ctxt": 0
},
"kind": "unknown"
},
{
"type": "TsKeywordType",
"span": {
"start": 316,
"end": 320,
"ctxt": 0
},
"kind": "null"
}
]
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 321,
"end": 351,
"ctxt": 0
},
"kind": "const",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 335,
"end": 351,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 335,
"end": 337,
"ctxt": 0
},
"value": "a8",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 337,
"end": 351,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 339,
"end": 351,
"ctxt": 0
},
"types": [
{
"type": "TsKeywordType",
"span": {
"start": 339,
"end": 344,
"ctxt": 0
},
"kind": "never"
},
{
"type": "TsKeywordType",
"span": {
"start": 347,
"end": 351,
"ctxt": 0
},
"kind": "null"
}
]
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 352,
"end": 380,
"ctxt": 0
},
"kind": "const",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 366,
"end": 380,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 366,
"end": 368,
"ctxt": 0
},
"value": "a9",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 368,
"end": 380,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 370,
"end": 380,
"ctxt": 0
},
"types": [
{
"type": "TsKeywordType",
"span": {
"start": 370,
"end": 373,
"ctxt": 0
},
"kind": "any"
},
{
"type": "TsKeywordType",
"span": {
"start": 376,
"end": 380,
"ctxt": 0
},
"kind": "null"
}
]
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 383,
"end": 411,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 389,
"end": 411,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 389,
"end": 392,
"ctxt": 0
},
"value": "aa1",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "BinaryExpression",
"span": {
"start": 395,
"end": 411,
"ctxt": 0
},
"operator": "??",
"left": {
"type": "Identifier",
"span": {
"start": 395,
"end": 397,
"ctxt": 0
},
"value": "a1",
"optional": false
},
"right": {
"type": "StringLiteral",
"span": {
"start": 401,
"end": 411,
"ctxt": 0
},
"value": "whatever",
"raw": "'whatever'"
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 412,
"end": 440,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 418,
"end": 440,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 418,
"end": 421,
"ctxt": 0
},
"value": "aa2",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "BinaryExpression",
"span": {
"start": 424,
"end": 440,
"ctxt": 0
},
"operator": "??",
"left": {
"type": "Identifier",
"span": {
"start": 424,
"end": 426,
"ctxt": 0
},
"value": "a2",
"optional": false
},
"right": {
"type": "StringLiteral",
"span": {
"start": 430,
"end": 440,
"ctxt": 0
},
"value": "whatever",
"raw": "'whatever'"
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 441,
"end": 469,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 447,
"end": 469,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 447,
"end": 450,
"ctxt": 0
},
"value": "aa3",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "BinaryExpression",
"span": {
"start": 453,
"end": 469,
"ctxt": 0
},
"operator": "??",
"left": {
"type": "Identifier",
"span": {
"start": 453,
"end": 455,
"ctxt": 0
},
"value": "a3",
"optional": false
},
"right": {
"type": "StringLiteral",
"span": {
"start": 459,
"end": 469,
"ctxt": 0
},
"value": "whatever",
"raw": "'whatever'"
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 470,
"end": 498,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 476,
"end": 498,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 476,
"end": 479,
"ctxt": 0
},
"value": "aa4",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "BinaryExpression",
"span": {
"start": 482,
"end": 498,
"ctxt": 0
},
"operator": "??",
"left": {
"type": "Identifier",
"span": {
"start": 482,
"end": 484,
"ctxt": 0
},
"value": "a4",
"optional": false
},
"right": {
"type": "StringLiteral",
"span": {
"start": 488,
"end": 498,
"ctxt": 0
},
"value": "whatever",
"raw": "'whatever'"
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 499,
"end": 527,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 505,
"end": 527,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 505,
"end": 508,
"ctxt": 0
},
"value": "aa5",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "BinaryExpression",
"span": {
"start": 511,
"end": 527,
"ctxt": 0
},
"operator": "??",
"left": {
"type": "Identifier",
"span": {
"start": 511,
"end": 513,
"ctxt": 0
},
"value": "a5",
"optional": false
},
"right": {
"type": "StringLiteral",
"span": {
"start": 517,
"end": 527,
"ctxt": 0
},
"value": "whatever",
"raw": "'whatever'"
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 528,
"end": 556,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 534,
"end": 556,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 534,
"end": 537,
"ctxt": 0
},
"value": "aa6",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "BinaryExpression",
"span": {
"start": 540,
"end": 556,
"ctxt": 0
},
"operator": "??",
"left": {
"type": "Identifier",
"span": {
"start": 540,
"end": 542,
"ctxt": 0
},
"value": "a6",
"optional": false
},
"right": {
"type": "StringLiteral",
"span": {
"start": 546,
"end": 556,
"ctxt": 0
},
"value": "whatever",
"raw": "'whatever'"
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 557,
"end": 585,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 563,
"end": 585,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 563,
"end": 566,
"ctxt": 0
},
"value": "aa7",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "BinaryExpression",
"span": {
"start": 569,
"end": 585,
"ctxt": 0
},
"operator": "??",
"left": {
"type": "Identifier",
"span": {
"start": 569,
"end": 571,
"ctxt": 0
},
"value": "a7",
"optional": false
},
"right": {
"type": "StringLiteral",
"span": {
"start": 575,
"end": 585,
"ctxt": 0
},
"value": "whatever",
"raw": "'whatever'"
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 586,
"end": 614,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 592,
"end": 614,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 592,
"end": 595,
"ctxt": 0
},
"value": "aa8",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "BinaryExpression",
"span": {
"start": 598,
"end": 614,
"ctxt": 0
},
"operator": "??",
"left": {
"type": "Identifier",
"span": {
"start": 598,
"end": 600,
"ctxt": 0
},
"value": "a8",
"optional": false
},
"right": {
"type": "StringLiteral",
"span": {
"start": 604,
"end": 614,
"ctxt": 0
},
"value": "whatever",
"raw": "'whatever'"
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 615,
"end": 643,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 621,
"end": 643,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 621,
"end": 624,
"ctxt": 0
},
"value": "aa9",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "BinaryExpression",
"span": {
"start": 627,
"end": 643,
"ctxt": 0
},
"operator": "??",
"left": {
"type": "Identifier",
"span": {
"start": 627,
"end": 629,
"ctxt": 0
},
"value": "a9",
"optional": false
},
"right": {
"type": "StringLiteral",
"span": {
"start": 633,
"end": 643,
"ctxt": 0
},
"value": "whatever",
"raw": "'whatever'"
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 646,
"end": 681,
"ctxt": 0
},
"kind": "let",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 658,
"end": 664,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 658,
"end": 659,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 659,
"end": 664,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 661,
"end": 664,
"ctxt": 0
},
"kind": "any"
}
}
},
"init": null,
"definite": false
},
{
"type": "VariableDeclarator",
"span": {
"start": 666,
"end": 672,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 666,
"end": 667,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 667,
"end": 672,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 669,
"end": 672,
"ctxt": 0
},
"kind": "any"
}
}
},
"init": null,
"definite": false
},
{
"type": "VariableDeclarator",
"span": {
"start": 674,
"end": 680,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 674,
"end": 675,
"ctxt": 0
},
"value": "c",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 675,
"end": 680,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 677,
"end": 680,
"ctxt": 0
},
"kind": "any"
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 683,
"end": 713,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 687,
"end": 712,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 687,
"end": 689,
"ctxt": 0
},
"value": "x1",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "BinaryExpression",
"span": {
"start": 692,
"end": 712,
"ctxt": 0
},
"operator": "||",
"left": {
"type": "ParenthesisExpression",
"span": {
"start": 692,
"end": 707,
"ctxt": 0
},
"expression": {
"type": "BinaryExpression",
"span": {
"start": 693,
"end": 706,
"ctxt": 0
},
"operator": "??",
"left": {
"type": "Identifier",
"span": {
"start": 693,
"end": 694,
"ctxt": 0
},
"value": "a",
"optional": false
},
"right": {
"type": "TsAsExpression",
"span": {
"start": 698,
"end": 706,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 698,
"end": 699,
"ctxt": 0
},
"value": "b",
"optional": false
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 703,
"end": 706,
"ctxt": 0
},
"kind": "any"
}
}
}
},
"right": {
"type": "Identifier",
"span": {
"start": 711,
"end": 712,
"ctxt": 0
},
"value": "c",
"optional": false
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 714,
"end": 744,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 718,
"end": 743,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 718,
"end": 720,
"ctxt": 0
},
"value": "x2",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "BinaryExpression",
"span": {
"start": 723,
"end": 743,
"ctxt": 0
},
"operator": "||",
"left": {
"type": "Identifier",
"span": {
"start": 723,
"end": 724,
"ctxt": 0
},
"value": "c",
"optional": false
},
"right": {
"type": "ParenthesisExpression",
"span": {
"start": 728,
"end": 743,
"ctxt": 0
},
"expression": {
"type": "BinaryExpression",
"span": {
"start": 729,
"end": 742,
"ctxt": 0
},
"operator": "??",
"left": {
"type": "Identifier",
"span": {
"start": 729,
"end": 730,
"ctxt": 0
},
"value": "a",
"optional": false
},
"right": {
"type": "TsAsExpression",
"span": {
"start": 734,
"end": 742,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 734,
"end": 735,
"ctxt": 0
},
"value": "b",
"optional": false
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 739,
"end": 742,
"ctxt": 0
},
"kind": "any"
}
}
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 745,
"end": 777,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 749,
"end": 776,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 749,
"end": 751,
"ctxt": 0
},
"value": "x3",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "BinaryExpression",
"span": {
"start": 754,
"end": 776,
"ctxt": 0
},
"operator": "||",
"left": {
"type": "ParenthesisExpression",
"span": {
"start": 754,
"end": 771,
"ctxt": 0
},
"expression": {
"type": "TsAsExpression",
"span": {
"start": 755,
"end": 770,
"ctxt": 0
},
"expression": {
"type": "ParenthesisExpression",
"span": {
"start": 755,
"end": 763,
"ctxt": 0
},
"expression": {
"type": "BinaryExpression",
"span": {
"start": 756,
"end": 762,
"ctxt": 0
},
"operator": "??",
"left": {
"type": "Identifier",
"span": {
"start": 756,
"end": 757,
"ctxt": 0
},
"value": "a",
"optional": false
},
"right": {
"type": "Identifier",
"span": {
"start": 761,
"end": 762,
"ctxt": 0
},
"value": "b",
"optional": false
}
}
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 767,
"end": 770,
"ctxt": 0
},
"kind": "any"
}
}
},
"right": {
"type": "Identifier",
"span": {
"start": 775,
"end": 776,
"ctxt": 0
},
"value": "c",
"optional": false
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 778,
"end": 810,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 782,
"end": 809,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 782,
"end": 784,
"ctxt": 0
},
"value": "x4",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "BinaryExpression",
"span": {
"start": 787,
"end": 809,
"ctxt": 0
},
"operator": "||",
"left": {
"type": "Identifier",
"span": {
"start": 787,
"end": 788,
"ctxt": 0
},
"value": "c",
"optional": false
},
"right": {
"type": "ParenthesisExpression",
"span": {
"start": 792,
"end": 809,
"ctxt": 0
},
"expression": {
"type": "TsAsExpression",
"span": {
"start": 793,
"end": 808,
"ctxt": 0
},
"expression": {
"type": "ParenthesisExpression",
"span": {
"start": 793,
"end": 801,
"ctxt": 0
},
"expression": {
"type": "BinaryExpression",
"span": {
"start": 794,
"end": 800,
"ctxt": 0
},
"operator": "??",
"left": {
"type": "Identifier",
"span": {
"start": 794,
"end": 795,
"ctxt": 0
},
"value": "a",
"optional": false
},
"right": {
"type": "Identifier",
"span": {
"start": 799,
"end": 800,
"ctxt": 0
},
"value": "b",
"optional": false
}
}
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 805,
"end": 808,
"ctxt": 0
},
"kind": "any"
}
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 811,
"end": 841,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 815,
"end": 840,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 815,
"end": 817,
"ctxt": 0
},
"value": "x5",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "BinaryExpression",
"span": {
"start": 820,
"end": 840,
"ctxt": 0
},
"operator": "||",
"left": {
"type": "TsAsExpression",
"span": {
"start": 820,
"end": 835,
"ctxt": 0
},
"expression": {
"type": "ParenthesisExpression",
"span": {
"start": 820,
"end": 828,
"ctxt": 0
},
"expression": {
"type": "BinaryExpression",
"span": {
"start": 821,
"end": 827,
"ctxt": 0
},
"operator": "??",
"left": {
"type": "Identifier",
"span": {
"start": 821,
"end": 822,
"ctxt": 0
},
"value": "a",
"optional": false
},
"right": {
"type": "Identifier",
"span": {
"start": 826,
"end": 827,
"ctxt": 0
},
"value": "b",
"optional": false
}
}
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 832,
"end": 835,
"ctxt": 0
},
"kind": "any"
}
},
"right": {
"type": "Identifier",
"span": {
"start": 839,
"end": 840,
"ctxt": 0
},
"value": "c",
"optional": false
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 842,
"end": 872,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 846,
"end": 871,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 846,
"end": 848,
"ctxt": 0
},
"value": "x6",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "BinaryExpression",
"span": {
"start": 851,
"end": 871,
"ctxt": 0
},
"operator": "||",
"left": {
"type": "Identifier",
"span": {
"start": 851,
"end": 852,
"ctxt": 0
},
"value": "c",
"optional": false
},
"right": {
"type": "TsAsExpression",
"span": {
"start": 856,
"end": 871,
"ctxt": 0
},
"expression": {
"type": "ParenthesisExpression",
"span": {
"start": 856,
"end": 864,
"ctxt": 0
},
"expression": {
"type": "BinaryExpression",
"span": {
"start": 857,
"end": 863,
"ctxt": 0
},
"operator": "??",
"left": {
"type": "Identifier",
"span": {
"start": 857,
"end": 858,
"ctxt": 0
},
"value": "a",
"optional": false
},
"right": {
"type": "Identifier",
"span": {
"start": 862,
"end": 863,
"ctxt": 0
},
"value": "b",
"optional": false
}
}
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 868,
"end": 871,
"ctxt": 0
},
"kind": "any"
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 874,
"end": 904,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 878,
"end": 903,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 878,
"end": 880,
"ctxt": 0
},
"value": "y1",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "BinaryExpression",
"span": {
"start": 883,
"end": 903,
"ctxt": 0
},
"operator": "&&",
"left": {
"type": "ParenthesisExpression",
"span": {
"start": 883,
"end": 898,
"ctxt": 0
},
"expression": {
"type": "BinaryExpression",
"span": {
"start": 884,
"end": 897,
"ctxt": 0
},
"operator": "??",
"left": {
"type": "Identifier",
"span": {
"start": 884,
"end": 885,
"ctxt": 0
},
"value": "a",
"optional": false
},
"right": {
"type": "TsAsExpression",
"span": {
"start": 889,
"end": 897,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 889,
"end": 890,
"ctxt": 0
},
"value": "b",
"optional": false
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 894,
"end": 897,
"ctxt": 0
},
"kind": "any"
}
}
}
},
"right": {
"type": "Identifier",
"span": {
"start": 902,
"end": 903,
"ctxt": 0
},
"value": "c",
"optional": false
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 905,
"end": 935,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 909,
"end": 934,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 909,
"end": 911,
"ctxt": 0
},
"value": "y2",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "BinaryExpression",
"span": {
"start": 914,
"end": 934,
"ctxt": 0
},
"operator": "&&",
"left": {
"type": "Identifier",
"span": {
"start": 914,
"end": 915,
"ctxt": 0
},
"value": "c",
"optional": false
},
"right": {
"type": "ParenthesisExpression",
"span": {
"start": 919,
"end": 934,
"ctxt": 0
},
"expression": {
"type": "BinaryExpression",
"span": {
"start": 920,
"end": 933,
"ctxt": 0
},
"operator": "??",
"left": {
"type": "Identifier",
"span": {
"start": 920,
"end": 921,
"ctxt": 0
},
"value": "a",
"optional": false
},
"right": {
"type": "TsAsExpression",
"span": {
"start": 925,
"end": 933,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 925,
"end": 926,
"ctxt": 0
},
"value": "b",
"optional": false
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 930,
"end": 933,
"ctxt": 0
},
"kind": "any"
}
}
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 936,
"end": 968,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 940,
"end": 967,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 940,
"end": 942,
"ctxt": 0
},
"value": "y3",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "BinaryExpression",
"span": {
"start": 945,
"end": 967,
"ctxt": 0
},
"operator": "&&",
"left": {
"type": "ParenthesisExpression",
"span": {
"start": 945,
"end": 962,
"ctxt": 0
},
"expression": {
"type": "TsAsExpression",
"span": {
"start": 946,
"end": 961,
"ctxt": 0
},
"expression": {
"type": "ParenthesisExpression",
"span": {
"start": 946,
"end": 954,
"ctxt": 0
},
"expression": {
"type": "BinaryExpression",
"span": {
"start": 947,
"end": 953,
"ctxt": 0
},
"operator": "??",
"left": {
"type": "Identifier",
"span": {
"start": 947,
"end": 948,
"ctxt": 0
},
"value": "a",
"optional": false
},
"right": {
"type": "Identifier",
"span": {
"start": 952,
"end": 953,
"ctxt": 0
},
"value": "b",
"optional": false
}
}
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 958,
"end": 961,
"ctxt": 0
},
"kind": "any"
}
}
},
"right": {
"type": "Identifier",
"span": {
"start": 966,
"end": 967,
"ctxt": 0
},
"value": "c",
"optional": false
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 969,
"end": 1001,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 973,
"end": 1000,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 973,
"end": 975,
"ctxt": 0
},
"value": "y4",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "BinaryExpression",
"span": {
"start": 978,
"end": 1000,
"ctxt": 0
},
"operator": "&&",
"left": {
"type": "Identifier",
"span": {
"start": 978,
"end": 979,
"ctxt": 0
},
"value": "c",
"optional": false
},
"right": {
"type": "ParenthesisExpression",
"span": {
"start": 983,
"end": 1000,
"ctxt": 0
},
"expression": {
"type": "TsAsExpression",
"span": {
"start": 984,
"end": 999,
"ctxt": 0
},
"expression": {
"type": "ParenthesisExpression",
"span": {
"start": 984,
"end": 992,
"ctxt": 0
},
"expression": {
"type": "BinaryExpression",
"span": {
"start": 985,
"end": 991,
"ctxt": 0
},
"operator": "??",
"left": {
"type": "Identifier",
"span": {
"start": 985,
"end": 986,
"ctxt": 0
},
"value": "a",
"optional": false
},
"right": {
"type": "Identifier",
"span": {
"start": 990,
"end": 991,
"ctxt": 0
},
"value": "b",
"optional": false
}
}
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 996,
"end": 999,
"ctxt": 0
},
"kind": "any"
}
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1002,
"end": 1032,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1006,
"end": 1031,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1006,
"end": 1008,
"ctxt": 0
},
"value": "y5",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "BinaryExpression",
"span": {
"start": 1011,
"end": 1031,
"ctxt": 0
},
"operator": "&&",
"left": {
"type": "TsAsExpression",
"span": {
"start": 1011,
"end": 1026,
"ctxt": 0
},
"expression": {
"type": "ParenthesisExpression",
"span": {
"start": 1011,
"end": 1019,
"ctxt": 0
},
"expression": {
"type": "BinaryExpression",
"span": {
"start": 1012,
"end": 1018,
"ctxt": 0
},
"operator": "??",
"left": {
"type": "Identifier",
"span": {
"start": 1012,
"end": 1013,
"ctxt": 0
},
"value": "a",
"optional": false
},
"right": {
"type": "Identifier",
"span": {
"start": 1017,
"end": 1018,
"ctxt": 0
},
"value": "b",
"optional": false
}
}
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1023,
"end": 1026,
"ctxt": 0
},
"kind": "any"
}
},
"right": {
"type": "Identifier",
"span": {
"start": 1030,
"end": 1031,
"ctxt": 0
},
"value": "c",
"optional": false
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1033,
"end": 1063,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1037,
"end": 1062,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1037,
"end": 1039,
"ctxt": 0
},
"value": "y6",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "BinaryExpression",
"span": {
"start": 1042,
"end": 1062,
"ctxt": 0
},
"operator": "&&",
"left": {
"type": "Identifier",
"span": {
"start": 1042,
"end": 1043,
"ctxt": 0
},
"value": "c",
"optional": false
},
"right": {
"type": "TsAsExpression",
"span": {
"start": 1047,
"end": 1062,
"ctxt": 0
},
"expression": {
"type": "ParenthesisExpression",
"span": {
"start": 1047,
"end": 1055,
"ctxt": 0
},
"expression": {
"type": "BinaryExpression",
"span": {
"start": 1048,
"end": 1054,
"ctxt": 0
},
"operator": "??",
"left": {
"type": "Identifier",
"span": {
"start": 1048,
"end": 1049,
"ctxt": 0
},
"value": "a",
"optional": false
},
"right": {
"type": "Identifier",
"span": {
"start": 1053,
"end": 1054,
"ctxt": 0
},
"value": "b",
"optional": false
}
}
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1059,
"end": 1062,
"ctxt": 0
},
"kind": "any"
}
}
},
"definite": false
}
]
}
],
"interpreter": null
}