Milestone 0.2.41: Local Variable Declaration Recognition Foundation
Cudrix can recognize matching local variable declarations throughout the function containing a direct named call.
Cudrix milestone 0.2.41 — Local Variable Declaration Recognition Foundation is complete.
The lookup_direct_call_enclosing_function_local_variables(...) API searches for local let and var declarations whose names match a discovered direct call’s callee. It walks the entire enclosing function, including nested conditional and loop bodies, and reports no matches, one match, or multiple matches through LocalVariableLookup. Candidate declarations retain their original syntax references and deterministic source order.
This first local-declaration lookup is intentionally function-wide: declarations in sibling or nested blocks, and declarations occurring after a call, may be returned. It does not determine which declarations are visible at the call, resolve shadowing, establish lexical binding, or determine whether a value is callable.
Verification recorded 519 library tests and 76 public API tests passing (595 total), with formatting and strict Clippy checks passing. Final commit: ff83ca4234bf87e212fcd8f5ffa76b0bae337c69.