Skip to content

Commit

Permalink
Enums can also be entry points
Browse files Browse the repository at this point in the history
  • Loading branch information
ileitch committed Aug 20, 2024
1 parent 531b0aa commit 5bf1c46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

##### Bug Fixes

- None.
- Enums with the `@main` attribute are now retained.

## 2.21.0 (2024-06-15)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ final class EntryPointAttributeRetainer: SourceGraphMutator {

func mutate() {
graph
.declarations(ofKinds: [.class, .struct])
.declarations(ofKinds: [.class, .struct, .enum])
.lazy
.filter {
$0.attributes.contains("NSApplicationMain") ||
Expand Down

0 comments on commit 5bf1c46

Please sign in to comment.