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

248 lines
5.4 KiB
JSON

{
"type": "Script",
"span": {
"start": 16,
"end": 127,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 16,
"end": 38,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 20,
"end": 37,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 20,
"end": 22,
"ctxt": 0
},
"value": "r1",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "BinaryExpression",
"span": {
"start": 25,
"end": 37,
"ctxt": 0
},
"operator": "**",
"left": {
"type": "NullLiteral",
"span": {
"start": 25,
"end": 29,
"ctxt": 0
}
},
"right": {
"type": "NullLiteral",
"span": {
"start": 33,
"end": 37,
"ctxt": 0
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 39,
"end": 66,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 43,
"end": 65,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 43,
"end": 45,
"ctxt": 0
},
"value": "r2",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "BinaryExpression",
"span": {
"start": 48,
"end": 65,
"ctxt": 0
},
"operator": "**",
"left": {
"type": "NullLiteral",
"span": {
"start": 48,
"end": 52,
"ctxt": 0
}
},
"right": {
"type": "Identifier",
"span": {
"start": 56,
"end": 65,
"ctxt": 0
},
"value": "undefined",
"optional": false
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 67,
"end": 94,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 71,
"end": 93,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 71,
"end": 73,
"ctxt": 0
},
"value": "r3",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "BinaryExpression",
"span": {
"start": 76,
"end": 93,
"ctxt": 0
},
"operator": "**",
"left": {
"type": "Identifier",
"span": {
"start": 76,
"end": 85,
"ctxt": 0
},
"value": "undefined",
"optional": false
},
"right": {
"type": "NullLiteral",
"span": {
"start": 89,
"end": 93,
"ctxt": 0
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 95,
"end": 127,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 99,
"end": 126,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 99,
"end": 101,
"ctxt": 0
},
"value": "r4",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "BinaryExpression",
"span": {
"start": 104,
"end": 126,
"ctxt": 0
},
"operator": "**",
"left": {
"type": "Identifier",
"span": {
"start": 104,
"end": 113,
"ctxt": 0
},
"value": "undefined",
"optional": false
},
"right": {
"type": "Identifier",
"span": {
"start": 117,
"end": 126,
"ctxt": 0
},
"value": "undefined",
"optional": false
}
},
"definite": false
}
]
}
],
"interpreter": null
}