/**
 * Symbol table query functions
 */
/**
 * Find symbols by name, optionally filtered by module
 */
export const findSymbol = (table, name, module) => {
    if (module) {
        const moduleSymbols = table.moduleSymbols.get(module) ?? [];
        return moduleSymbols.filter((s) => s.name === name);
    }
    return table.symbols.get(name) ?? [];
};
/**
 * Get all exported symbols from a module
 */
export const getExportedSymbols = (table, module) => {
    return table.exportedSymbols.get(module) ?? [];
};
/**
 * Check if a module exports a symbol with the given name
 */
export const hasExportedSymbol = (table, module, name) => {
    const exported = getExportedSymbols(table, module);
    return exported.some((s) => s.name === name);
};
//# sourceMappingURL=queries.js.map