feat(xatu): construct lexical scope graphs #93
Reference in New Issue
Block a user
Delete Branch "feat/xatu-scope-graph-construction"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
parser.rsand store the graph inast::ParsedFile.clean.nixordered for the future rule andlint_findings.nixdeliberately unordered.Construction follows the lexical subset of Néron et al., A Theory of Name Resolution (2015).
Initial coverage targets
src/dotfiles/registry.nix.This PR adds no resolver, dependency analysis, ordering rule, or automatic reordering.
Stack
Depends on #92, which adds debug output and the black-box CLI tests.
The base is
feat/xatu-debugso this diff contains only scope-graph changes.Merge #92 first, then retarget this PR to
main.This PR replaces the scope-graph portion of #91.
Validation
bazel test //src/xatu:all— all three targets pass.cargo clippy -p xatu -- -D warnings— passes.nix run .#fix— passes.xatu --debug src/dotfiles/registry.nix— succeeds without parse errors.Validation uses the restored vendor build files described in #92.
Closing at the operator’s request.
Pull request closed