public/swaggerui/swagger-ui.js
function parseStatementListItem() {
        if (lookahead.type === Token.Keyword) {
            switch (lookahead.value) {
            case 'export':
                if (state.sourceType !== 'module') {
                    tolerateUnexpectedToken(lookahead, Messages.IllegalExportDeclaration);
                }
                return parseExportDeclaration();
            case 'import':
                if (state.sourceType !== 'module') {
                    tolerateUnexpectedToken(lookahead, Messages.IllegalImportDeclaration);
                }
                return parseImportDeclaration();
            case 'const':
                return parseLexicalDeclaration({inFor: false});
            case 'function':
                return parseFunctionDeclaration(new Node());
            case 'class':
                return parseClassDeclaration();
            }
        }

        if (matchKeyword('let') && isLexicalDeclaration()) {
            return parseLexicalDeclaration({inFor: false});
        }

        return parseStatement();
    }
function parseStatementListItem() {
        if (lookahead.type === Token.Keyword) {
            switch (lookahead.value) {
            case 'export':
                if (state.sourceType !== 'module') {
                    tolerateUnexpectedToken(lookahead, Messages.IllegalExportDeclaration);
                }
                return parseExportDeclaration();
            case 'import':
                if (state.sourceType !== 'module') {
                    tolerateUnexpectedToken(lookahead, Messages.IllegalImportDeclaration);
                }
                return parseImportDeclaration();
            case 'const':
                return parseLexicalDeclaration({inFor: false});
            case 'function':
                return parseFunctionDeclaration(new Node());
            case 'class':
                return parseClassDeclaration();
            }
        }

        if (matchKeyword('let') && isLexicalDeclaration()) {
            return parseLexicalDeclaration({inFor: false});
        }

        return parseStatement();
    }
function parseStatementListItem ( ) { if ( lookahead . type === Token . Keyword ) { switch ( lookahead . value ) { case 'export' : if ( state . sourceType !== 'module' ) { tolerateUnexpectedToken ( lookahead , Messages . IllegalExportDeclaration ) ; } return parseExportDeclaration ( ) ; case 'import' : if ( state . sourceType !== 'module' ) { tolerateUnexpectedToken ( lookahead , Messages . IllegalImportDeclaration ) ; } return parseImportDeclaration ( ) ; case 'const' : return parseLexicalDeclaration ( { inFor : false } ) ; case 'function' : return parseFunctionDeclaration ( new Node ( ) ) ; case 'class' : return parseClassDeclaration ( ) ; } } if ( matchKeyword ( 'let' ) && isLexicalDeclaration ( ) ) { return parseLexicalDeclaration ( { inFor : false } ) ; } return parseStatement ( ) ; }
ECMA-262 13.2 Block
ECMA - 262 13 . 2 Block