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

Better document AST metadata in Macro #14120

Merged
merged 3 commits into from
Dec 27, 2024
Merged

Better document AST metadata in Macro #14120

merged 3 commits into from
Dec 27, 2024

Conversation

josevalim
Copy link
Member

character (either a newline or `;`). This entry may appear multiple times
in the same metadata if the expression is surround by parens

* `:format` - set to `:keyword` when an atom is defined as a keyword
Copy link
Member

Choose a reason for hiding this comment

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

It can also be :atom as of #13999.

@jonatanklosko
Copy link
Member

We also added :assoc in #13978 to store => location in the key node.

lib/elixir/lib/macro.ex Outdated Show resolved Hide resolved
lib/elixir/lib/macro.ex Outdated Show resolved Hide resolved
Co-authored-by: Andrea Leopardi <[email protected]>
@josevalim josevalim merged commit 292f876 into main Dec 27, 2024
16 of 18 checks passed
@josevalim josevalim deleted the jv-document-ast-meta branch December 27, 2024 10:37
@josevalim
Copy link
Member Author

💚 💙 💜 💛 ❤️

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.

3 participants