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

Made aliases better handle the __aliases__ special form #393

Merged
merged 4 commits into from
Oct 2, 2023

Conversation

scohen
Copy link
Collaborator

@scohen scohen commented Sep 27, 2023

The aliases special form defines three types of aliases, and we were not handling one of them properly. This was made apparent to us in issue #378, where the module defined via defmodule __MODULE__.Child was not handled properly. This change fixes that issue, and should handle other aliases as well.

Fixes #378

The __aliases__ special form defines three types of aliases, and we
were not handling one of them properly. This was made apparent to us
in issue #378, where the module defined via `defmodule
__MODULE__.Child` was not handled properly. This change fixes that
issue, and should handle other aliases as well.

Fixes #378
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.

Made two small comments. This looks great, though. Ast.reify_alias is a good call; I think we'll be a lot less prone to edge cases after this.

apps/common/lib/lexical/ast.ex Show resolved Hide resolved
apps/common/test/lexical/ast_test.exs Outdated Show resolved Hide resolved
@scohen scohen merged commit acd6f1d into main Oct 2, 2023
@scohen scohen deleted the fix-module-alias branch October 2, 2023 16:28
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.

Indexing crashes with dependency Nebulex and hangs in a loop
3 participants