Replies: 2 comments 1 reply
-
@cNoNim It is now possible to create partial methods. See this example. They allow you to define attributes for the roots of a composition. I don't see the point of overloading methods to define roots with an additional argument - a list of attributes. |
Beta Was this translation helpful? Give feedback.
1 reply
-
I'll move this ticket to discussion for now for further consideration. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In #63 assumes that if a composition has the [Module] attribute, then the [Provides] attribute is generated for its roots.
But controlling which attributes are added to roots would be ideal, similar to controlling modifiers via RootKinds.
I'm not sure which API is exactly realizable in terms of source generator capabilities.
Maybe something like:
Note: Another RootKinds.Provides for the Module API may be a better choice.
This API will be used a lot.
Beta Was this translation helpful? Give feedback.
All reactions