{
"type": "Program",
"statements": [
{
"type": "ExpressionStatement",
"expression": {
"type": "ConditionalExpression",
"test": {
"type": "Identifier",
"name": "a",
"loc": {
"start": {
"line": 17,
"column": 1
},
"end": {
"line": 17,
"column": 2
}
}
},
"consequent": {
"type": "Identifier",
"name": "b",
"loc": {
"start": {
"line": 17,
"column": 5
},
"end": {
"line": 17,
"column": 6
}
}
},
"alternate": {
"type": "Identifier",
"name": "c",
"loc": {
"start": {
"line": 17,
"column": 9
},
"end": {
"line": 17,
"column": 10
}
}
},
"loc": {
"start": {
"line": 17,
"column": 1
},
"end": {
"line": 17,
"column": 10
}
}
},
"loc": {
"start": {
"line": 17,
"column": 1
},
"end": {
"line": 17,
"column": 10
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "ConditionalExpression",
"test": {
"type": "BinaryExpression",
"operator": "==",
"left": {
"type": "Identifier",
"name": "a",
"loc": {
"start": {
"line": 19,
"column": 1
},
"end": {
"line": 19,
"column": 2
}
}
},
"right": {
"type": "NumberLiteral",
"value": 1,
"loc": {
"start": {
"line": 19,
"column": 6
},
"end": {
"line": 19,
"column": 7
}
}
},
"loc": {
"start": {
"line": 19,
"column": 1
},
"end": {
"line": 19,
"column": 7
}
}
},
"consequent": {
"type": "Identifier",
"name": "a",
"loc": {
"start": {
"line": 20,
"column": 5
},
"end": {
"line": 20,
"column": 6
}
}
},
"alternate": {
"type": "NumberLiteral",
"value": 42,
"loc": {
"start": {
"line": 21,
"column": 5
},
"end": {
"line": 21,
"column": 7
}
}
},
"loc": {
"start": {
"line": 19,
"column": 1
},
"end": {
"line": 21,
"column": 7
}
}
},
"loc": {
"start": {
"line": 19,
"column": 1
},
"end": {
"line": 21,
"column": 7
}
}
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "res",
"loc": {
"start": {
"line": 23,
"column": 5
},
"end": {
"line": 23,
"column": 8
}
}
},
"init": {
"type": "ConditionalExpression",
"test": {
"type": "BinaryExpression",
"operator": "==",
"left": {
"type": "Identifier",
"name": "a",
"loc": {
"start": {
"line": 23,
"column": 12
},
"end": {
"line": 23,
"column": 13
}
}
},
"right": {
"type": "NumberLiteral",
"value": 1,
"loc": {
"start": {
"line": 23,
"column": 17
},
"end": {
"line": 23,
"column": 18
}
}
},
"loc": {
"start": {
"line": 23,
"column": 12
},
"end": {
"line": 23,
"column": 18
}
}
},
"consequent": {
"type": "Identifier",
"name": "a",
"loc": {
"start": {
"line": 23,
"column": 21
},
"end": {
"line": 23,
"column": 22
}
}
},
"alternate": {
"type": "NumberLiteral",
"value": 42,
"loc": {
"start": {
"line": 23,
"column": 25
},
"end": {
"line": 23,
"column": 27
}
}
},
"loc": {
"start": {
"line": 23,
"column": 11
},
"end": {
"line": 23,
"column": 28
}
}
},
"loc": {
"start": {
"line": 23,
"column": 5
},
"end": {
"line": 23,
"column": 28
}
}
}
],
"kind": "var",
"loc": {
"start": {
"line": 23,
"column": 1
},
"end": {
"line": 23,
"column": 29
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "ConditionalExpression",
"test": {
"type": "LogicalExpression",
"operator": "||",
"left": {
"type": "LogicalExpression",
"operator": "&&",
"left": {
"type": "Identifier",
"name": "a",
"loc": {
"start": {
"line": 25,
"column": 1
},
"end": {
"line": 25,
"column": 2
}
}
},
"right": {
"type": "Identifier",
"name": "b",
"loc": {
"start": {
"line": 25,
"column": 6
},
"end": {
"line": 25,
"column": 7
}
}
},
"loc": {
"start": {
"line": 25,
"column": 1
},
"end": {
"line": 25,
"column": 7
}
}
},
"right": {
"type": "BinaryExpression",
"operator": "==",
"left": {
"type": "Identifier",
"name": "c",
"loc": {
"start": {
"line": 25,
"column": 11
},
"end": {
"line": 25,
"column": 12
}
}
},
"right": {
"type": "Identifier",
"name": "d",
"loc": {
"start": {
"line": 25,
"column": 16
},
"end": {
"line": 25,
"column": 17
}
}
},
"loc": {
"start": {
"line": 25,
"column": 11
},
"end": {
"line": 25,
"column": 17
}
}
},
"loc": {
"start": {
"line": 25,
"column": 1
},
"end": {
"line": 25,
"column": 17
}
}
},
"consequent": {
"type": "Identifier",
"name": "e",
"loc": {
"start": {
"line": 25,
"column": 20
},
"end": {
"line": 25,
"column": 21
}
}
},
"alternate": {
"type": "Identifier",
"name": "f",
"loc": {
"start": {
"line": 25,
"column": 24
},
"end": {
"line": 25,
"column": 25
}
}
},
"loc": {
"start": {
"line": 25,
"column": 1
},
"end": {
"line": 25,
"column": 25
}
}
},
"loc": {
"start": {
"line": 25,
"column": 1
},
"end": {
"line": 25,
"column": 25
}
}
}
],
"loc": {
"start": {
"line": 1,
"column": 1
},
"end": {
"line": 26,
"column": 1
}
}
}