macro_prototype icon indicating copy to clipboard operation
macro_prototype copied to clipboard

Allow adding metadata to declarations

Open jakemac53 opened this issue 4 years ago • 1 comments

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 https://github.com/jakemac53/macro_prototype/issues/7.

jakemac53 avatar Jun 25 '21 16:06 jakemac53

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.

goderbauer avatar Jul 20 '21 18:07 goderbauer