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

Finish support for originalName/versionHash in @Model macro #10

Open
helje5 opened this issue Sep 26, 2023 · 0 comments
Open

Finish support for originalName/versionHash in @Model macro #10

helje5 opened this issue Sep 26, 2023 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@helje5
Copy link
Contributor

helje5 commented Sep 26, 2023

Most of the infrastructure is in place, the sole thing missing should be the extraction of the parameters from the model macro.

E.g.:

@Model(originalName: "OldName", versionHash: "2828287")
class NewName: NSManagedObject {}

This already generate the original names into the class, but the values are not filled.

To do this, the parameter list of the model macro needs to be traverse, a matching name needs to be found and the associated expression used in the static variable of the class.

Shouldn't be very hard.

@helje5 helje5 added enhancement New feature or request help wanted Extra attention is needed labels Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant