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

lowering: Don't bother rewrapping bare linenumbers in hygienic-scope #53850

Merged
merged 1 commit into from
Mar 26, 2024

Conversation

Keno
Copy link
Member

@Keno Keno commented Mar 26, 2024

JuliaInterpreter tries to do some very questionable pre-lowering introspection to find line numbers, but doesn't properly handle hygienic scope. That should be fixed, but as I was about to put in a hack there, I figured we might as well not bother re-wrapping bare LineNumberNodes in hygienic scopes. They just get discarded again immediately anyway. No functional change in that this is semantically equivalent to what we had before, just with a slightly more compact lowering result and additional JuliaInterpreter test passing.

JuliaInterpreter tries to do some very questionable pre-lowering introspection
to find line numbers, but doesn't properly handle hygienic scope. That
should be fixed, but as I was about to put in a hack there, I figured we
might as well not bother re-wrapping bare LineNumberNodes in hygienic
scopes. They just get discarded again immediately anyway. No functional
change in that this is semantically equivalent to what we had before,
just with a slightly more compact lowering result and additional
JuliaInterpreter test passing.
@Keno Keno merged commit 4607d53 into master Mar 26, 2024
7 checks passed
@Keno Keno deleted the kf/loweringnowrapline branch March 26, 2024 08:51
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.

1 participant