refactor(B1.1): move error-channel lowering to lower/error.zig

Verbatim relocation of the 53-method error cluster (error typing,
raise/failable, try/catch/or, inferred-set convergence, trace runtime
hooks) out of the Lowering struct into src/ir/lower/error.zig as free
functions taking *Lowering. Each gets a pub-const alias on Lowering, so
every call site compiles unchanged (decl-alias method resolution).

Pub-flips (callees now referenced cross-file): lowerExpr, coerceToType,
freshBlock, freshBlockWithParams, emitErrorCleanup,
currentBlockHasTerminator, lowerBlock, lowerBlockValue.

Gate: zig build OK; zig build test 426/426; run_examples 541/0; zero
expected/ snapshot churn.
This commit is contained in:
agra
2026-06-10 12:58:46 +03:00
parent 74607c4dbc
commit b240810b6f
2 changed files with 1214 additions and 1110 deletions

File diff suppressed because it is too large Load Diff

1150
src/ir/lower/error.zig Normal file

File diff suppressed because it is too large Load Diff