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

Expose macro Call context via new @caller macro ivar #14048

Merged
merged 3 commits into from
Dec 21, 2023

Conversation

Blacksmoke16
Copy link
Member

@Blacksmoke16 Blacksmoke16 commented Dec 5, 2023

resolves #14055

@straight-shoota
Copy link
Member

straight-shoota commented Dec 5, 2023

This is a major new API feature and I believe it actually needs a bit more dedicated discussion first. Let's to that in #14055.
I'm converting this PR to a draft until the feature API is finalized.

@Blacksmoke16
Copy link
Member Author

Marking this as ready for review again. This should be a good initial implementation based on the discussion in #14055.

@Blacksmoke16 Blacksmoke16 marked this pull request as ready for review December 19, 2023 19:21
spec/compiler/codegen/macro_spec.cr Outdated Show resolved Hide resolved
spec/compiler/codegen/macro_spec.cr Outdated Show resolved Hide resolved
Copy link
Member

@straight-shoota straight-shoota left a comment

Choose a reason for hiding this comment

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

This should be good for a first implementation.

@straight-shoota straight-shoota added this to the 1.11.0 milestone Dec 19, 2023
@straight-shoota straight-shoota merged commit 3885078 into crystal-lang:master Dec 21, 2023
54 of 55 checks passed
@Blacksmoke16 Blacksmoke16 deleted the caller-macro-ivar branch May 5, 2024 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Exposing a macro's caller
2 participants