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

Allow adding metadata to declarations #8

Open
jakemac53 opened this issue Jun 25, 2021 · 1 comment
Open

Allow adding metadata to declarations #8

jakemac53 opened this issue Jun 25, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@jakemac53
Copy link
Owner

Today you cannot add additional metadata (or macros) to existing declarations, but we may want to allow you to do so. You can add both of these when creating new declarations.

We would need to flesh out the rules around this, and how it would interact with #7.

@goderbauer
Copy link
Collaborator

Having this would be useful. In the autodispose example it seems strange that the annotation has to move from the class to the dispose method, if one is present. With this, I imagine you could always just annotate the class and the class macro could add the autodispose annotation to the existing dispose method, if necessary, to add the additional logic there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants