Skip to content

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

Open
@helje5

Description

@helje5

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions