Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor lowering #184

Merged
merged 2 commits into from
Apr 21, 2024
Merged

Refactor lowering #184

merged 2 commits into from
Apr 21, 2024

Conversation

BinderDavid
Copy link
Collaborator

For lowering we have to traverse a module twice: Once to pick up all the items declared at the toplevel to generate a context for the second pass which traverses the module again using this information.

This split will become even more important for importing modules, so this PR just splits the imp.rs file which contained all the logic into three files: downsweep.rs lower/exp.rs and lower/decls.rs.

Lowering conceptually happens in two consecutive phases, but these were
defined in the same module. This commit splits the logic into
the two files lower.rs and downsweep.rs.
@timsueberkrueb timsueberkrueb merged commit 562bb0e into main Apr 21, 2024
6 checks passed
@BinderDavid BinderDavid deleted the refactor-lowering branch January 8, 2025 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants