Skip to content
This repository was archived by the owner on Aug 30, 2025. It is now read-only.

Aliases was confused by nested non-module blocks#368

Merged
scohen merged 1 commit into
mainfrom
fix-block-detection
Sep 14, 2023
Merged

Aliases was confused by nested non-module blocks#368
scohen merged 1 commit into
mainfrom
fix-block-detection

Conversation

@scohen

@scohen scohen commented Sep 14, 2023

Copy link
Copy Markdown
Collaborator

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.

@zachallaun zachallaun left a comment

Copy link
Copy Markdown
Collaborator

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
@scohen scohen deleted the fix-block-detection branch September 14, 2023 22:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants