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 f1c8ca0
Showing 1 changed file with 1 addition and 1 deletion.
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 f1c8ca0

Please sign in to comment.