/**
 * IR Builder helper functions
 */
import * as ts from "typescript";
/**
 * Check if a node has export modifier
 */
export const hasExportModifier = (node) => {
    if (!ts.canHaveModifiers(node))
        return false;
    const modifiers = ts.getModifiers(node);
    return (modifiers?.some((m) => m.kind === ts.SyntaxKind.ExportKeyword) ?? false);
};
/**
 * Check if a node has default modifier
 */
export const hasDefaultModifier = (node) => {
    if (!ts.canHaveModifiers(node))
        return false;
    const modifiers = ts.getModifiers(node);
    return (modifiers?.some((m) => m.kind === ts.SyntaxKind.DefaultKeyword) ?? false);
};
//# sourceMappingURL=helpers.js.map