public/swaggerui/swagger-ui.js
function parseConditionalExpression() {
        var expr, previousAllowIn, consequent, alternate, startToken;

        startToken = lookahead;

        expr = inheritCoverGrammar(parseBinaryExpression);
        if (match('?')) {
            lex();
            previousAllowIn = state.allowIn;
            state.allowIn = true;
            consequent = isolateCoverGrammar(parseAssignmentExpression);
            state.allowIn = previousAllowIn;
            expect(':');
            alternate = isolateCoverGrammar(parseAssignmentExpression);

            expr = new WrappingNode(startToken).finishConditionalExpression(expr, consequent, alternate);
            isAssignmentTarget = isBindingElement = false;
        }

        return expr;
    }
function parseConditionalExpression() {
        var expr, previousAllowIn, consequent, alternate, startToken;

        startToken = lookahead;

        expr = inheritCoverGrammar(parseBinaryExpression);
        if (match('?')) {
            lex();
            previousAllowIn = state.allowIn;
            state.allowIn = true;
            consequent = isolateCoverGrammar(parseAssignmentExpression);
            state.allowIn = previousAllowIn;
            expect(':');
            alternate = isolateCoverGrammar(parseAssignmentExpression);

            expr = new WrappingNode(startToken).finishConditionalExpression(expr, consequent, alternate);
            isAssignmentTarget = isBindingElement = false;
        }

        return expr;
    }
function parseConditionalExpression ( ) { var expr , previousAllowIn , consequent , alternate , startToken ; startToken = lookahead ; expr = inheritCoverGrammar ( parseBinaryExpression ) ; if ( match ( '?' ) ) { lex ( ) ; previousAllowIn = state . allowIn ; state . allowIn = true ; consequent = isolateCoverGrammar ( parseAssignmentExpression ) ; state . allowIn = previousAllowIn ; expect ( ':' ) ; alternate = isolateCoverGrammar ( parseAssignmentExpression ) ; expr = new WrappingNode ( startToken ) . finishConditionalExpression ( expr , consequent , alternate ) ; isAssignmentTarget = isBindingElement = false ; } return expr ; }
ECMA-262 12.13 Conditional Operator
ECMA - 262 12 . 13 Conditional Operator