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

2736 lines
69 KiB
JSON

{
"type": "Script",
"span": {
"start": 37,
"end": 1062,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 37,
"end": 83,
"ctxt": 0
},
"kind": "const",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 51,
"end": 83,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 51,
"end": 53,
"ctxt": 0
},
"value": "a1",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 53,
"end": 83,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 55,
"end": 83,
"ctxt": 0
},
"types": [
{
"type": "TsLiteralType",
"span": {
"start": 55,
"end": 64,
"ctxt": 0
},
"literal": {
"type": "StringLiteral",
"span": {
"start": 55,
"end": 64,
"ctxt": 0
},
"value": "literal",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
},
{
"type": "TsKeywordType",
"span": {
"start": 67,
"end": 76,
"ctxt": 0
},
"kind": "undefined"
},
{
"type": "TsKeywordType",
"span": {
"start": 79,
"end": 83,
"ctxt": 0
},
"kind": "null"
}
]
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 84,
"end": 123,
"ctxt": 0
},
"kind": "const",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 98,
"end": 123,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 98,
"end": 100,
"ctxt": 0
},
"value": "a2",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 100,
"end": 123,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 102,
"end": 123,
"ctxt": 0
},
"types": [
{
"type": "TsLiteralType",
"span": {
"start": 102,
"end": 104,
"ctxt": 0
},
"literal": {
"type": "StringLiteral",
"span": {
"start": 102,
"end": 104,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
},
{
"type": "TsKeywordType",
"span": {
"start": 107,
"end": 116,
"ctxt": 0
},
"kind": "undefined"
},
{
"type": "TsKeywordType",
"span": {
"start": 119,
"end": 123,
"ctxt": 0
},
"kind": "null"
}
]
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 124,
"end": 162,
"ctxt": 0
},
"kind": "const",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 138,
"end": 162,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 138,
"end": 140,
"ctxt": 0
},
"value": "a3",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 140,
"end": 162,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 142,
"end": 162,
"ctxt": 0
},
"types": [
{
"type": "TsLiteralType",
"span": {
"start": 142,
"end": 143,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 142,
"end": 143,
"ctxt": 0
},
"value": 1.0
}
},
{
"type": "TsKeywordType",
"span": {
"start": 146,
"end": 155,
"ctxt": 0
},
"kind": "undefined"
},
{
"type": "TsKeywordType",
"span": {
"start": 158,
"end": 162,
"ctxt": 0
},
"kind": "null"
}
]
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 163,
"end": 201,
"ctxt": 0
},
"kind": "const",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 177,
"end": 201,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 177,
"end": 179,
"ctxt": 0
},
"value": "a4",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 179,
"end": 201,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 181,
"end": 201,
"ctxt": 0
},
"types": [
{
"type": "TsLiteralType",
"span": {
"start": 181,
"end": 182,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 181,
"end": 182,
"ctxt": 0
},
"value": 0.0
}
},
{
"type": "TsKeywordType",
"span": {
"start": 185,
"end": 194,
"ctxt": 0
},
"kind": "undefined"
},
{
"type": "TsKeywordType",
"span": {
"start": 197,
"end": 201,
"ctxt": 0
},
"kind": "null"
}
]
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 202,
"end": 243,
"ctxt": 0
},
"kind": "const",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 216,
"end": 243,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 216,
"end": 218,
"ctxt": 0
},
"value": "a5",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 218,
"end": 243,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 220,
"end": 243,
"ctxt": 0
},
"types": [
{
"type": "TsLiteralType",
"span": {
"start": 220,
"end": 224,
"ctxt": 0
},
"literal": {
"type": "BooleanLiteral",
"span": {
"start": 220,
"end": 224,
"ctxt": 0
},
"value": true
}
},
{
"type": "TsKeywordType",
"span": {
"start": 227,
"end": 236,
"ctxt": 0
},
"kind": "undefined"
},
{
"type": "TsKeywordType",
"span": {
"start": 239,
"end": 243,
"ctxt": 0
},
"kind": "null"
}
]
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 244,
"end": 286,
"ctxt": 0
},
"kind": "const",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 258,
"end": 286,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 258,
"end": 260,
"ctxt": 0
},
"value": "a6",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 260,
"end": 286,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 262,
"end": 286,
"ctxt": 0
},
"types": [
{
"type": "TsLiteralType",
"span": {
"start": 262,
"end": 267,
"ctxt": 0
},
"literal": {
"type": "BooleanLiteral",
"span": {
"start": 262,
"end": 267,
"ctxt": 0
},
"value": false
}
},
{
"type": "TsKeywordType",
"span": {
"start": 270,
"end": 279,
"ctxt": 0
},
"kind": "undefined"
},
{
"type": "TsKeywordType",
"span": {
"start": 282,
"end": 286,
"ctxt": 0
},
"kind": "null"
}
]
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 287,
"end": 319,
"ctxt": 0
},
"kind": "const",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 301,
"end": 319,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 301,
"end": 303,
"ctxt": 0
},
"value": "a7",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 303,
"end": 319,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 305,
"end": 319,
"ctxt": 0
},
"types": [
{
"type": "TsKeywordType",
"span": {
"start": 305,
"end": 312,
"ctxt": 0
},
"kind": "unknown"
},
{
"type": "TsKeywordType",
"span": {
"start": 315,
"end": 319,
"ctxt": 0
},
"kind": "null"
}
]
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 320,
"end": 350,
"ctxt": 0
},
"kind": "const",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 334,
"end": 350,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 334,
"end": 336,
"ctxt": 0
},
"value": "a8",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 336,
"end": 350,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 338,
"end": 350,
"ctxt": 0
},
"types": [
{
"type": "TsKeywordType",
"span": {
"start": 338,
"end": 343,
"ctxt": 0
},
"kind": "never"
},
{
"type": "TsKeywordType",
"span": {
"start": 346,
"end": 350,
"ctxt": 0
},
"kind": "null"
}
]
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 351,
"end": 379,
"ctxt": 0
},
"kind": "const",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 365,
"end": 379,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 365,
"end": 367,
"ctxt": 0
},
"value": "a9",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 367,
"end": 379,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 369,
"end": 379,
"ctxt": 0
},
"types": [
{
"type": "TsKeywordType",
"span": {
"start": 369,
"end": 372,
"ctxt": 0
},
"kind": "any"
},
{
"type": "TsKeywordType",
"span": {
"start": 375,
"end": 379,
"ctxt": 0
},
"kind": "null"
}
]
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 382,
"end": 410,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 388,
"end": 410,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 388,
"end": 391,
"ctxt": 0
},
"value": "aa1",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "BinaryExpression",
"span": {
"start": 394,
"end": 410,
"ctxt": 0
},
"operator": "??",
"left": {
"type": "Identifier",
"span": {
"start": 394,
"end": 396,
"ctxt": 0
},
"value": "a1",
"optional": false
},
"right": {
"type": "StringLiteral",
"span": {
"start": 400,
"end": 410,
"ctxt": 0
},
"value": "whatever",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 411,
"end": 439,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 417,
"end": 439,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 417,
"end": 420,
"ctxt": 0
},
"value": "aa2",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "BinaryExpression",
"span": {
"start": 423,
"end": 439,
"ctxt": 0
},
"operator": "??",
"left": {
"type": "Identifier",
"span": {
"start": 423,
"end": 425,
"ctxt": 0
},
"value": "a2",
"optional": false
},
"right": {
"type": "StringLiteral",
"span": {
"start": 429,
"end": 439,
"ctxt": 0
},
"value": "whatever",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 440,
"end": 468,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 446,
"end": 468,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 446,
"end": 449,
"ctxt": 0
},
"value": "aa3",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "BinaryExpression",
"span": {
"start": 452,
"end": 468,
"ctxt": 0
},
"operator": "??",
"left": {
"type": "Identifier",
"span": {
"start": 452,
"end": 454,
"ctxt": 0
},
"value": "a3",
"optional": false
},
"right": {
"type": "StringLiteral",
"span": {
"start": 458,
"end": 468,
"ctxt": 0
},
"value": "whatever",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 469,
"end": 497,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 475,
"end": 497,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 475,
"end": 478,
"ctxt": 0
},
"value": "aa4",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "BinaryExpression",
"span": {
"start": 481,
"end": 497,
"ctxt": 0
},
"operator": "??",
"left": {
"type": "Identifier",
"span": {
"start": 481,
"end": 483,
"ctxt": 0
},
"value": "a4",
"optional": false
},
"right": {
"type": "StringLiteral",
"span": {
"start": 487,
"end": 497,
"ctxt": 0
},
"value": "whatever",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 498,
"end": 526,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 504,
"end": 526,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 504,
"end": 507,
"ctxt": 0
},
"value": "aa5",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "BinaryExpression",
"span": {
"start": 510,
"end": 526,
"ctxt": 0
},
"operator": "??",
"left": {
"type": "Identifier",
"span": {
"start": 510,
"end": 512,
"ctxt": 0
},
"value": "a5",
"optional": false
},
"right": {
"type": "StringLiteral",
"span": {
"start": 516,
"end": 526,
"ctxt": 0
},
"value": "whatever",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 527,
"end": 555,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 533,
"end": 555,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 533,
"end": 536,
"ctxt": 0
},
"value": "aa6",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "BinaryExpression",
"span": {
"start": 539,
"end": 555,
"ctxt": 0
},
"operator": "??",
"left": {
"type": "Identifier",
"span": {
"start": 539,
"end": 541,
"ctxt": 0
},
"value": "a6",
"optional": false
},
"right": {
"type": "StringLiteral",
"span": {
"start": 545,
"end": 555,
"ctxt": 0
},
"value": "whatever",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 556,
"end": 584,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 562,
"end": 584,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 562,
"end": 565,
"ctxt": 0
},
"value": "aa7",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "BinaryExpression",
"span": {
"start": 568,
"end": 584,
"ctxt": 0
},
"operator": "??",
"left": {
"type": "Identifier",
"span": {
"start": 568,
"end": 570,
"ctxt": 0
},
"value": "a7",
"optional": false
},
"right": {
"type": "StringLiteral",
"span": {
"start": 574,
"end": 584,
"ctxt": 0
},
"value": "whatever",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 585,
"end": 613,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 591,
"end": 613,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 591,
"end": 594,
"ctxt": 0
},
"value": "aa8",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "BinaryExpression",
"span": {
"start": 597,
"end": 613,
"ctxt": 0
},
"operator": "??",
"left": {
"type": "Identifier",
"span": {
"start": 597,
"end": 599,
"ctxt": 0
},
"value": "a8",
"optional": false
},
"right": {
"type": "StringLiteral",
"span": {
"start": 603,
"end": 613,
"ctxt": 0
},
"value": "whatever",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 614,
"end": 642,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 620,
"end": 642,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 620,
"end": 623,
"ctxt": 0
},
"value": "aa9",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "BinaryExpression",
"span": {
"start": 626,
"end": 642,
"ctxt": 0
},
"operator": "??",
"left": {
"type": "Identifier",
"span": {
"start": 626,
"end": 628,
"ctxt": 0
},
"value": "a9",
"optional": false
},
"right": {
"type": "StringLiteral",
"span": {
"start": 632,
"end": 642,
"ctxt": 0
},
"value": "whatever",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 645,
"end": 680,
"ctxt": 0
},
"kind": "let",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 657,
"end": 663,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 657,
"end": 658,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 658,
"end": 663,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 660,
"end": 663,
"ctxt": 0
},
"kind": "any"
}
}
},
"init": null,
"definite": false
},
{
"type": "VariableDeclarator",
"span": {
"start": 665,
"end": 671,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 665,
"end": 666,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 666,
"end": 671,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 668,
"end": 671,
"ctxt": 0
},
"kind": "any"
}
}
},
"init": null,
"definite": false
},
{
"type": "VariableDeclarator",
"span": {
"start": 673,
"end": 679,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 673,
"end": 674,
"ctxt": 0
},
"value": "c",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 674,
"end": 679,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 676,
"end": 679,
"ctxt": 0
},
"kind": "any"
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 682,
"end": 712,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 686,
"end": 711,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 686,
"end": 688,
"ctxt": 0
},
"value": "x1",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "BinaryExpression",
"span": {
"start": 691,
"end": 711,
"ctxt": 0
},
"operator": "||",
"left": {
"type": "ParenthesisExpression",
"span": {
"start": 691,
"end": 706,
"ctxt": 0
},
"expression": {
"type": "BinaryExpression",
"span": {
"start": 692,
"end": 705,
"ctxt": 0
},
"operator": "??",
"left": {
"type": "Identifier",
"span": {
"start": 692,
"end": 693,
"ctxt": 0
},
"value": "a",
"optional": false
},
"right": {
"type": "TsAsExpression",
"span": {
"start": 697,
"end": 705,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 697,
"end": 698,
"ctxt": 0
},
"value": "b",
"optional": false
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 702,
"end": 705,
"ctxt": 0
},
"kind": "any"
}
}
}
},
"right": {
"type": "Identifier",
"span": {
"start": 710,
"end": 711,
"ctxt": 0
},
"value": "c",
"optional": false
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 713,
"end": 743,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 717,
"end": 742,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 717,
"end": 719,
"ctxt": 0
},
"value": "x2",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "BinaryExpression",
"span": {
"start": 722,
"end": 742,
"ctxt": 0
},
"operator": "||",
"left": {
"type": "Identifier",
"span": {
"start": 722,
"end": 723,
"ctxt": 0
},
"value": "c",
"optional": false
},
"right": {
"type": "ParenthesisExpression",
"span": {
"start": 727,
"end": 742,
"ctxt": 0
},
"expression": {
"type": "BinaryExpression",
"span": {
"start": 728,
"end": 741,
"ctxt": 0
},
"operator": "??",
"left": {
"type": "Identifier",
"span": {
"start": 728,
"end": 729,
"ctxt": 0
},
"value": "a",
"optional": false
},
"right": {
"type": "TsAsExpression",
"span": {
"start": 733,
"end": 741,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 733,
"end": 734,
"ctxt": 0
},
"value": "b",
"optional": false
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 738,
"end": 741,
"ctxt": 0
},
"kind": "any"
}
}
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 744,
"end": 776,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 748,
"end": 775,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 748,
"end": 750,
"ctxt": 0
},
"value": "x3",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "BinaryExpression",
"span": {
"start": 753,
"end": 775,
"ctxt": 0
},
"operator": "||",
"left": {
"type": "ParenthesisExpression",
"span": {
"start": 753,
"end": 770,
"ctxt": 0
},
"expression": {
"type": "TsAsExpression",
"span": {
"start": 754,
"end": 769,
"ctxt": 0
},
"expression": {
"type": "ParenthesisExpression",
"span": {
"start": 754,
"end": 762,
"ctxt": 0
},
"expression": {
"type": "BinaryExpression",
"span": {
"start": 755,
"end": 761,
"ctxt": 0
},
"operator": "??",
"left": {
"type": "Identifier",
"span": {
"start": 755,
"end": 756,
"ctxt": 0
},
"value": "a",
"optional": false
},
"right": {
"type": "Identifier",
"span": {
"start": 760,
"end": 761,
"ctxt": 0
},
"value": "b",
"optional": false
}
}
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 766,
"end": 769,
"ctxt": 0
},
"kind": "any"
}
}
},
"right": {
"type": "Identifier",
"span": {
"start": 774,
"end": 775,
"ctxt": 0
},
"value": "c",
"optional": false
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 777,
"end": 809,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 781,
"end": 808,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 781,
"end": 783,
"ctxt": 0
},
"value": "x4",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "BinaryExpression",
"span": {
"start": 786,
"end": 808,
"ctxt": 0
},
"operator": "||",
"left": {
"type": "Identifier",
"span": {
"start": 786,
"end": 787,
"ctxt": 0
},
"value": "c",
"optional": false
},
"right": {
"type": "ParenthesisExpression",
"span": {
"start": 791,
"end": 808,
"ctxt": 0
},
"expression": {
"type": "TsAsExpression",
"span": {
"start": 792,
"end": 807,
"ctxt": 0
},
"expression": {
"type": "ParenthesisExpression",
"span": {
"start": 792,
"end": 800,
"ctxt": 0
},
"expression": {
"type": "BinaryExpression",
"span": {
"start": 793,
"end": 799,
"ctxt": 0
},
"operator": "??",
"left": {
"type": "Identifier",
"span": {
"start": 793,
"end": 794,
"ctxt": 0
},
"value": "a",
"optional": false
},
"right": {
"type": "Identifier",
"span": {
"start": 798,
"end": 799,
"ctxt": 0
},
"value": "b",
"optional": false
}
}
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 804,
"end": 807,
"ctxt": 0
},
"kind": "any"
}
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 810,
"end": 840,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 814,
"end": 839,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 814,
"end": 816,
"ctxt": 0
},
"value": "x5",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "BinaryExpression",
"span": {
"start": 819,
"end": 839,
"ctxt": 0
},
"operator": "||",
"left": {
"type": "TsAsExpression",
"span": {
"start": 819,
"end": 834,
"ctxt": 0
},
"expression": {
"type": "ParenthesisExpression",
"span": {
"start": 819,
"end": 827,
"ctxt": 0
},
"expression": {
"type": "BinaryExpression",
"span": {
"start": 820,
"end": 826,
"ctxt": 0
},
"operator": "??",
"left": {
"type": "Identifier",
"span": {
"start": 820,
"end": 821,
"ctxt": 0
},
"value": "a",
"optional": false
},
"right": {
"type": "Identifier",
"span": {
"start": 825,
"end": 826,
"ctxt": 0
},
"value": "b",
"optional": false
}
}
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 831,
"end": 834,
"ctxt": 0
},
"kind": "any"
}
},
"right": {
"type": "Identifier",
"span": {
"start": 838,
"end": 839,
"ctxt": 0
},
"value": "c",
"optional": false
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 841,
"end": 871,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 845,
"end": 870,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 845,
"end": 847,
"ctxt": 0
},
"value": "x6",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "BinaryExpression",
"span": {
"start": 850,
"end": 870,
"ctxt": 0
},
"operator": "||",
"left": {
"type": "Identifier",
"span": {
"start": 850,
"end": 851,
"ctxt": 0
},
"value": "c",
"optional": false
},
"right": {
"type": "TsAsExpression",
"span": {
"start": 855,
"end": 870,
"ctxt": 0
},
"expression": {
"type": "ParenthesisExpression",
"span": {
"start": 855,
"end": 863,
"ctxt": 0
},
"expression": {
"type": "BinaryExpression",
"span": {
"start": 856,
"end": 862,
"ctxt": 0
},
"operator": "??",
"left": {
"type": "Identifier",
"span": {
"start": 856,
"end": 857,
"ctxt": 0
},
"value": "a",
"optional": false
},
"right": {
"type": "Identifier",
"span": {
"start": 861,
"end": 862,
"ctxt": 0
},
"value": "b",
"optional": false
}
}
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 867,
"end": 870,
"ctxt": 0
},
"kind": "any"
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 873,
"end": 903,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 877,
"end": 902,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 877,
"end": 879,
"ctxt": 0
},
"value": "y1",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "BinaryExpression",
"span": {
"start": 882,
"end": 902,
"ctxt": 0
},
"operator": "&&",
"left": {
"type": "ParenthesisExpression",
"span": {
"start": 882,
"end": 897,
"ctxt": 0
},
"expression": {
"type": "BinaryExpression",
"span": {
"start": 883,
"end": 896,
"ctxt": 0
},
"operator": "??",
"left": {
"type": "Identifier",
"span": {
"start": 883,
"end": 884,
"ctxt": 0
},
"value": "a",
"optional": false
},
"right": {
"type": "TsAsExpression",
"span": {
"start": 888,
"end": 896,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 888,
"end": 889,
"ctxt": 0
},
"value": "b",
"optional": false
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 893,
"end": 896,
"ctxt": 0
},
"kind": "any"
}
}
}
},
"right": {
"type": "Identifier",
"span": {
"start": 901,
"end": 902,
"ctxt": 0
},
"value": "c",
"optional": false
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 904,
"end": 934,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 908,
"end": 933,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 908,
"end": 910,
"ctxt": 0
},
"value": "y2",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "BinaryExpression",
"span": {
"start": 913,
"end": 933,
"ctxt": 0
},
"operator": "&&",
"left": {
"type": "Identifier",
"span": {
"start": 913,
"end": 914,
"ctxt": 0
},
"value": "c",
"optional": false
},
"right": {
"type": "ParenthesisExpression",
"span": {
"start": 918,
"end": 933,
"ctxt": 0
},
"expression": {
"type": "BinaryExpression",
"span": {
"start": 919,
"end": 932,
"ctxt": 0
},
"operator": "??",
"left": {
"type": "Identifier",
"span": {
"start": 919,
"end": 920,
"ctxt": 0
},
"value": "a",
"optional": false
},
"right": {
"type": "TsAsExpression",
"span": {
"start": 924,
"end": 932,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 924,
"end": 925,
"ctxt": 0
},
"value": "b",
"optional": false
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 929,
"end": 932,
"ctxt": 0
},
"kind": "any"
}
}
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 935,
"end": 967,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 939,
"end": 966,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 939,
"end": 941,
"ctxt": 0
},
"value": "y3",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "BinaryExpression",
"span": {
"start": 944,
"end": 966,
"ctxt": 0
},
"operator": "&&",
"left": {
"type": "ParenthesisExpression",
"span": {
"start": 944,
"end": 961,
"ctxt": 0
},
"expression": {
"type": "TsAsExpression",
"span": {
"start": 945,
"end": 960,
"ctxt": 0
},
"expression": {
"type": "ParenthesisExpression",
"span": {
"start": 945,
"end": 953,
"ctxt": 0
},
"expression": {
"type": "BinaryExpression",
"span": {
"start": 946,
"end": 952,
"ctxt": 0
},
"operator": "??",
"left": {
"type": "Identifier",
"span": {
"start": 946,
"end": 947,
"ctxt": 0
},
"value": "a",
"optional": false
},
"right": {
"type": "Identifier",
"span": {
"start": 951,
"end": 952,
"ctxt": 0
},
"value": "b",
"optional": false
}
}
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 957,
"end": 960,
"ctxt": 0
},
"kind": "any"
}
}
},
"right": {
"type": "Identifier",
"span": {
"start": 965,
"end": 966,
"ctxt": 0
},
"value": "c",
"optional": false
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 968,
"end": 1000,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 972,
"end": 999,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 972,
"end": 974,
"ctxt": 0
},
"value": "y4",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "BinaryExpression",
"span": {
"start": 977,
"end": 999,
"ctxt": 0
},
"operator": "&&",
"left": {
"type": "Identifier",
"span": {
"start": 977,
"end": 978,
"ctxt": 0
},
"value": "c",
"optional": false
},
"right": {
"type": "ParenthesisExpression",
"span": {
"start": 982,
"end": 999,
"ctxt": 0
},
"expression": {
"type": "TsAsExpression",
"span": {
"start": 983,
"end": 998,
"ctxt": 0
},
"expression": {
"type": "ParenthesisExpression",
"span": {
"start": 983,
"end": 991,
"ctxt": 0
},
"expression": {
"type": "BinaryExpression",
"span": {
"start": 984,
"end": 990,
"ctxt": 0
},
"operator": "??",
"left": {
"type": "Identifier",
"span": {
"start": 984,
"end": 985,
"ctxt": 0
},
"value": "a",
"optional": false
},
"right": {
"type": "Identifier",
"span": {
"start": 989,
"end": 990,
"ctxt": 0
},
"value": "b",
"optional": false
}
}
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 995,
"end": 998,
"ctxt": 0
},
"kind": "any"
}
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1001,
"end": 1031,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1005,
"end": 1030,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1005,
"end": 1007,
"ctxt": 0
},
"value": "y5",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "BinaryExpression",
"span": {
"start": 1010,
"end": 1030,
"ctxt": 0
},
"operator": "&&",
"left": {
"type": "TsAsExpression",
"span": {
"start": 1010,
"end": 1025,
"ctxt": 0
},
"expression": {
"type": "ParenthesisExpression",
"span": {
"start": 1010,
"end": 1018,
"ctxt": 0
},
"expression": {
"type": "BinaryExpression",
"span": {
"start": 1011,
"end": 1017,
"ctxt": 0
},
"operator": "??",
"left": {
"type": "Identifier",
"span": {
"start": 1011,
"end": 1012,
"ctxt": 0
},
"value": "a",
"optional": false
},
"right": {
"type": "Identifier",
"span": {
"start": 1016,
"end": 1017,
"ctxt": 0
},
"value": "b",
"optional": false
}
}
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1022,
"end": 1025,
"ctxt": 0
},
"kind": "any"
}
},
"right": {
"type": "Identifier",
"span": {
"start": 1029,
"end": 1030,
"ctxt": 0
},
"value": "c",
"optional": false
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1032,
"end": 1062,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1036,
"end": 1061,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1036,
"end": 1038,
"ctxt": 0
},
"value": "y6",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "BinaryExpression",
"span": {
"start": 1041,
"end": 1061,
"ctxt": 0
},
"operator": "&&",
"left": {
"type": "Identifier",
"span": {
"start": 1041,
"end": 1042,
"ctxt": 0
},
"value": "c",
"optional": false
},
"right": {
"type": "TsAsExpression",
"span": {
"start": 1046,
"end": 1061,
"ctxt": 0
},
"expression": {
"type": "ParenthesisExpression",
"span": {
"start": 1046,
"end": 1054,
"ctxt": 0
},
"expression": {
"type": "BinaryExpression",
"span": {
"start": 1047,
"end": 1053,
"ctxt": 0
},
"operator": "??",
"left": {
"type": "Identifier",
"span": {
"start": 1047,
"end": 1048,
"ctxt": 0
},
"value": "a",
"optional": false
},
"right": {
"type": "Identifier",
"span": {
"start": 1052,
"end": 1053,
"ctxt": 0
},
"value": "b",
"optional": false
}
}
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1058,
"end": 1061,
"ctxt": 0
},
"kind": "any"
}
}
},
"definite": false
}
]
}
],
"interpreter": null
}