Skip to content

Incorrect Generation of Enum Cases #17

@bdkjones

Description

@bdkjones

Using the latest version to make Swift files for the Finder's sdef, this is part of the output:

screen shot 2018-10-03 at 14 21 35

In C, enum items do not need unique values. In Swift, they do. It's my understanding that the correct way to handle this situation would be to generate:

@objc public enum FinderEcvw : AEKeyword {
    case iconView = 0x69636e76 /* 'icnv' */
    case listView = 0x6c737677 /* 'lsvw' */
    case columnView = 0x636c7677 /* 'clvw' */
    case groupView = 0x666c7677 /* 'flvw' */
    static var flowView: FinderEcvw { return groupView }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions