Milestone 0.2.45: General Identifier Lexical Ancestry Foundation
General identifier references can now be associated with their enclosing lexical blocks, from the function body to the innermost containing block.
Cudrix milestone 0.2.45 — General Identifier Lexical Ancestry Foundation is complete.
The new lookup_identifier_reference_enclosing_blocks(...) API accepts a discovered general identifier reference and returns borrowed BlockSyntax references for its lexical ancestry in outermost-to-innermost order. It supports ordinary name references and assignment targets within nested expressions, conditional branches, and loops. The implementation is stateless and deterministic, reuses the generalized syntax-tree visitor, and preserves original syntax and block identity.
This establishes structural lexical ancestry, not semantic name binding. The API does not resolve declarations, enforce visibility or declaration-before-use rules, determine shadowing behavior, validate assignments, or perform type checking. Existing direct-function-call recognition and lookup contracts remain intact.
Verification recorded 540 library tests and 80 public API tests passing (620 total), with formatting and strict Clippy checks passing. Final commit: 89357be2c61b27d5e18dcaa61d121d3b782e9db8.