"use strict";
/**
 * Copyright: (c) Myia SAS 2026.
 * This file and its contents are licensed under the AGPLv3 License.
 * Please see the LICENSE file at the root of this repository
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.createNonWrappableStatementPredicate = createNonWrappableStatementPredicate;
function createNonWrappableStatementPredicate(t, isGeneratedModuleStatement) {
    return function isNonWrappableStatement(path) {
        const node = path.node;
        return (t.isFunctionDeclaration(node) ||
            t.isImportDeclaration(node) ||
            t.isExportDeclaration(node) ||
            path.parentPath.isExportDeclaration() ||
            t.isBlockStatement(node) ||
            t.isEmptyStatement(node) ||
            isGeneratedModuleStatement(node));
    };
}
