Milestone 0.2.43: Scope-Aware Local Declaration Recognition Foundation
Local declaration candidates can now be narrowed to the call's own lexical block and its enclosing blocks.
Cudrix milestone 0.2.43 — Scope-Aware Local Declaration Recognition Foundation is complete.
The new lookup_direct_call_enclosing_block_local_variable_candidates(...) API recognizes matching let and var declarations found in the lexical block containing a discovered direct call or in one of that block’s ancestors. Sibling and descendant blocks are excluded. Results preserve the original declaration references and deterministic source order; EnclosingBlockLocalVariableCandidate exposes both the declaration and its containing block.
This builds on the earlier function-wide lookup and lexical block ancestry while keeping those existing APIs intact. The result is a scope-aware set of candidates, not a final name binding: declaration-before-use rules, shadowing precedence, reassignment, type checking, and callability are not decided by this milestone. Invalid identifier spans are reported rather than silently accepted.
Verification recorded 530 library tests and 78 public API tests passing (608 total), with formatting and strict Clippy checks passing. Final commit: 456effbe5bd9b1e69223923b3adc22a87af98cfb.