import { createDiagnostic, } from "../../types/diagnostic.js";
export const KNOWN_BUILTINS = new Set([
    "sbyte",
    "short",
    "int",
    "long",
    "nint",
    "int128",
    "byte",
    "ushort",
    "uint",
    "ulong",
    "nuint",
    "uint128",
    "half",
    "float",
    "double",
    "decimal",
    "bool",
    "char",
    "string",
    "object",
    "void",
]);
export const moduleLocation = (ctx) => ({
    file: ctx.filePath,
    line: 1,
    column: 1,
    length: 1,
});
export const getReferenceResolutionCandidates = (name) => {
    const candidates = new Set([name]);
    if (name.endsWith("$instance")) {
        const base = name.slice(0, -"$instance".length);
        if (base.length > 0) {
            candidates.add(base);
            const unsuffixed = base.replace(/_\d+$/, "");
            if (unsuffixed.length > 0) {
                candidates.add(unsuffixed);
            }
        }
    }
    return Array.from(candidates);
};
export { createDiagnostic };
//# sourceMappingURL=soundness-gate-shared.js.map