refactor(phase27.13): Replace @ notation with local variables in UsingResolverBox

- 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.
This commit is contained in:
nyash-codex
2025-11-24 03:33:11 +09:00
parent f257070668
commit 476c72bab8

View File

@ -211,8 +211,8 @@ static box Stage1UsingResolverBox {
_read_file(path) { _read_file(path) {
if path == null { return null } if path == null { return null }
@fb = new FileBox() local fb = new FileBox()
@ok = fb.open(path, "r") local ok = fb.open(path, "r")
if ok != 1 { if ok != 1 {
// Dev note: keep quiet by default; enable verbose by setting HAKO_STAGEB_USING_DEBUG=1. // Dev note: keep quiet by default; enable verbose by setting HAKO_STAGEB_USING_DEBUG=1.
local dbg = env.get("HAKO_STAGEB_USING_DEBUG") local dbg = env.get("HAKO_STAGEB_USING_DEBUG")
@ -221,7 +221,7 @@ static box Stage1UsingResolverBox {
} }
return null return null
} }
@content = fb.read() local content = fb.read()
fb.close() fb.close()
return content return content
} }