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

Add support for @Swift(OptionSet) attribute #1461

Merged
merged 1 commit into from
Aug 18, 2022
Merged

Conversation

DanielKamkha
Copy link
Contributor

Added support for @Swift(OptionSet) attribute. An enum marked with this
attribute is generated as a Swift struct conforming to OptionSet protocol.
Moreover, for each such enum Foo, any LIME usage of Set<Foo> will be Foo
itself in Swift, per the use pattern for OptionSet.

Resolves: #1197
Signed-off-by: Daniel Kamkha daniel.kamkha@here.com

Added support for `@Swift(OptionSet)` attribute. An enum marked with this
attribute is generated as a Swift `struct` conforming to `OptionSet` protocol.
Moreover, for each such enum `Foo`, any LIME usage of `Set<Foo>` will be `Foo`
itself in Swift, per the use pattern for `OptionSet`.

Resolves: #1197
Signed-off-by: Daniel Kamkha <daniel.kamkha@here.com>
@DanielKamkha DanielKamkha self-assigned this Aug 18, 2022
@DanielKamkha DanielKamkha added enhancement New feature or request swift labels Aug 18, 2022
@DanielKamkha DanielKamkha requested a review from Hsilgos August 18, 2022 08:49
@DanielKamkha DanielKamkha merged commit 65c4c39 into master Aug 18, 2022
@DanielKamkha DanielKamkha deleted the swift-enum-flags branch August 18, 2022 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request swift
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support enumeration mask
2 participants