Skip to content

Include from_brackets metadata in all cases #13317

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

Merged
merged 1 commit into from
Feb 5, 2024
Merged

Include from_brackets metadata in all cases #13317

merged 1 commit into from
Feb 5, 2024

Conversation

mhanberg
Copy link
Member

@mhanberg mhanberg commented Feb 5, 2024

Currently, the :from_brackets metadata seems to only be populated when used against a literal map or keyword list or a function call (Foo.bar()[:baz]).

This populates it in all cases, which includes variables foo[:bar] and module attributes @foo[:bar], as well as adding tests for tracing the hidden Access.get/2 function, similar to the Kernel.string/1 function as with interpolation.

@josevalim josevalim merged commit eb1499a into elixir-lang:main Feb 5, 2024
@josevalim
Copy link
Member

💚 💙 💜 💛 ❤️

@mhanberg mhanberg deleted the from-brackets branch February 5, 2024 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants