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:
1174
src/ir/lower.zig
1174
src/ir/lower.zig
File diff suppressed because it is too large
Load Diff
1150
src/ir/lower/error.zig
Normal file
1150
src/ir/lower/error.zig
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user