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

Allow (require?) setting a Field on enum variant data fields #516

Open
Hannah-GBS opened this issue Sep 7, 2024 · 0 comments
Open

Allow (require?) setting a Field on enum variant data fields #516

Hannah-GBS opened this issue Sep 7, 2024 · 0 comments

Comments

@Hannah-GBS
Copy link
Collaborator

Currently we just set a type, whereas structs allow naming the field with s.field(). It would be nice to have an equivalent e.field() on enum constructors. This would both make the Make Package Enum node nicer as it currently uses data object IDs (which are often ugly for easier parsing of API endpoints) to name the pins on a node, as well as the Break Scope node which currently only displays the name property (absent on package enums) and does not fall back to the ID like Make Package Enum does.

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

No branches or pull requests

1 participant