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

Aliases was confused by nested non-module blocks #368

Merged
merged 1 commit into from
Sep 14, 2023
Merged

Conversation

scohen
Copy link
Collaborator

@scohen scohen commented Sep 14, 2023

Aliases would get confused if a module had another block that didn't define another module (like in a DSL). This was because it only popped a single scope at a time, and if several scopes ended on the same line, only the inner scope would be popped. Calling the pop funcion recursively solves the issue.

Aliases would get confused if a module had another block that didn't
define another module (like in a DSL). This was because it only popped
a single scope at a time, and if several scopes ended on the same
line, only the inner scope would be popped. Calling the pop funcion
recursively solves the issue.
Copy link
Collaborator

@zachallaun zachallaun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your explanation and the fix make sense to me!

@scohen scohen merged commit 94af9dd into main Sep 14, 2023
6 checks passed
@scohen scohen deleted the fix-block-detection branch September 14, 2023 22:11
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