Skip to content

Conversation

@Premwoik
Copy link
Collaborator

@Premwoik Premwoik commented Feb 23, 2022

This one refers to #11. It turned out that support for nested modules was just provided. Elixir nested modules are separate beam files with the name Elixir.ParentModule.NestedModule, so they can be handled as normal modules. The tokens lookup is restricted to the location of the current specified function, so it is not possible to mistake tokens between modules.

This PR adds a test to ensure that everything works as it should. By the way, I move the logic that loads tokens to the file utils module and reused it in tests. Now it is possible to specify abstract forms even when tokens cannot be loaded.

@Premwoik Premwoik requested a review from erszcz February 23, 2022 16:54
@Premwoik Premwoik linked an issue Feb 23, 2022 that may be closed by this pull request
@erszcz
Copy link
Contributor

erszcz commented Feb 23, 2022

Looks good 👍

@erszcz erszcz merged commit 6f11ee3 into main Feb 23, 2022
@erszcz erszcz deleted the support-nested-modules branch February 23, 2022 17:14
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.

Elixir->Erlang AST: support nested modules

3 participants