public/swaggerui/swagger-ui.js
function parseYieldExpression() {
        var argument, expr, delegate, previousAllowYield;

        argument = null;
        expr = new Node();
        delegate = false;

        expectKeyword('yield');

        if (!hasLineTerminator) {
            previousAllowYield = state.allowYield;
            state.allowYield = false;
            delegate = match('*');
            if (delegate) {
                lex();
                argument = parseAssignmentExpression();
            } else {
                if (!match(';') && !match('}') && !match(')') && lookahead.type !== Token.EOF) {
                    argument = parseAssignmentExpression();
                }
            }
            state.allowYield = previousAllowYield;
        }

        return expr.finishYieldExpression(argument, delegate);
    }
function parseYieldExpression() {
        var argument, expr, delegate, previousAllowYield;

        argument = null;
        expr = new Node();
        delegate = false;

        expectKeyword('yield');

        if (!hasLineTerminator) {
            previousAllowYield = state.allowYield;
            state.allowYield = false;
            delegate = match('*');
            if (delegate) {
                lex();
                argument = parseAssignmentExpression();
            } else {
                if (!match(';') && !match('}') && !match(')') && lookahead.type !== Token.EOF) {
                    argument = parseAssignmentExpression();
                }
            }
            state.allowYield = previousAllowYield;
        }

        return expr.finishYieldExpression(argument, delegate);
    }
function parseYieldExpression ( ) { var argument , expr , delegate , previousAllowYield ; argument = null ; expr = new Node ( ) ; delegate = false ; expectKeyword ( 'yield' ) ; if ( ! hasLineTerminator ) { previousAllowYield = state . allowYield ; state . allowYield = false ; delegate = match ( '*' ) ; if ( delegate ) { lex ( ) ; argument = parseAssignmentExpression ( ) ; } else { if ( ! match ( ';' ) && ! match ( '}' ) && ! match ( ')' ) && lookahead . type !== Token . EOF ) { argument = parseAssignmentExpression ( ) ; } } state . allowYield = previousAllowYield ; } return expr . finishYieldExpression ( argument , delegate ) ; }
ECMA-262 14.4 Yield expression
ECMA - 262 14 . 4 Yield expression