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

EnumIdentable: Use member and extension expansions #5

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

mikolasstuchlik
Copy link
Contributor

@mikolasstuchlik mikolasstuchlik commented Jan 20, 2025

This pull request implements extension based expansion SE-0402.

This change is source breaking, because previously required manual conformances will now get rejected (and/or won't emit the default implementation).

Closes #3 .

@mikolasstuchlik mikolasstuchlik marked this pull request as draft January 20, 2025 16:53
@mikolasstuchlik mikolasstuchlik marked this pull request as ready for review January 22, 2025 10:59
let enumError = Diagnostic(node: node._syntaxNode, message: Diagnostics.mustBeEnum)
context.diagnose(enumError)
return []
public enum EnumIdentableMacro {
Copy link
Member

Choose a reason for hiding this comment

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

@ssestak Is there any reason for the original name Identable? I think it would be better to use the established Identifiable word, so EnumIdentifiableMacro.
What do you think guys? 🤔

Copy link
Collaborator

Choose a reason for hiding this comment

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

We had discussion about name before. I don't mind if we change it to EnumIdentifiableMacro. TBH for me it is one of the harder task to named something correctly 😅

@mikolasstuchlik what do you think ? I remember that I discussed it with you.

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

Successfully merging this pull request may close these issues.

Make @EnumIdentable to add conformances
3 participants