public/swaggerui/swagger-ui.js
function parseSwitchCase() {
        var test, consequent = [], statement, node = new Node();

        if (matchKeyword('default')) {
            lex();
            test = null;
        } else {
            expectKeyword('case');
            test = parseExpression();
        }
        expect(':');

        while (startIndex < length) {
            if (match('}') || matchKeyword('default') || matchKeyword('case')) {
                break;
            }
            statement = parseStatementListItem();
            consequent.push(statement);
        }

        return node.finishSwitchCase(test, consequent);
    }
function parseSwitchCase() {
        var test, consequent = [], statement, node = new Node();

        if (matchKeyword('default')) {
            lex();
            test = null;
        } else {
            expectKeyword('case');
            test = parseExpression();
        }
        expect(':');

        while (startIndex < length) {
            if (match('}') || matchKeyword('default') || matchKeyword('case')) {
                break;
            }
            statement = parseStatementListItem();
            consequent.push(statement);
        }

        return node.finishSwitchCase(test, consequent);
    }
function parseSwitchCase ( ) { var test , consequent = [ ] , statement , node = new Node ( ) ; if ( matchKeyword ( 'default' ) ) { lex ( ) ; test = null ; } else { expectKeyword ( 'case' ) ; test = parseExpression ( ) ; } expect ( ':' ) ; while ( startIndex < length ) { if ( match ( '}' ) || matchKeyword ( 'default' ) || matchKeyword ( 'case' ) ) { break ; } statement = parseStatementListItem ( ) ; consequent . push ( statement ) ; } return node . finishSwitchCase ( test , consequent ) ; }
ECMA-262 13.12 The switch statement
ECMA - 262 13 . 12 The switch statement