From 476c72bab8dec56058c6c6531698faf79f136578 Mon Sep 17 00:00:00 2001 From: nyash-codex Date: Mon, 24 Nov 2025 03:33:11 +0900 Subject: [PATCH] refactor(phase27.13): Replace @ notation with local variables in UsingResolverBox MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Replace 3 instances of @ notation in _read_file method: - @fb → local fb - @ok → local ok - @content → local content Result: - ✅ Build success: cargo build --release (warnings only) - ✅ Tests: 2/2 existing tests pass (type_sanity, empty_module_returns_none) - ⚠️ auto_lowering test still blocked by 'using' keyword parser error (separate issue) Phase 27.13 JoinIR lowering implementation is complete. Parser fixes needed for full test enablement. --- lang/src/compiler/entry/using_resolver_box.hako | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lang/src/compiler/entry/using_resolver_box.hako b/lang/src/compiler/entry/using_resolver_box.hako index ca13d336..2c3adf26 100644 --- a/lang/src/compiler/entry/using_resolver_box.hako +++ b/lang/src/compiler/entry/using_resolver_box.hako @@ -211,8 +211,8 @@ static box Stage1UsingResolverBox { _read_file(path) { if path == null { return null } - @fb = new FileBox() - @ok = fb.open(path, "r") + local fb = new FileBox() + local ok = fb.open(path, "r") if ok != 1 { // Dev note: keep quiet by default; enable verbose by setting HAKO_STAGEB_USING_DEBUG=1. local dbg = env.get("HAKO_STAGEB_USING_DEBUG") @@ -221,7 +221,7 @@ static box Stage1UsingResolverBox { } return null } - @content = fb.read() + local content = fb.read() fb.close() return content }