Improve mappings for Objective-C "Enumeration Cases"

Description

  1. In SWC-1003, we have added mappings like follows:

This leads to a side effect of losing constant names during the conversion.
For example,

is now converted to

Suggested improvement.
Change the generated mapping for the above case to:

2. Similarly, `componentHasMultiplePlatforms` should be declared as follows:

componentHasMultiplePlatforms=/* componentHasMultiplePlatforms */ (1 << 3)

 

NOTE: currently, declarations for kNilOptionsor componentHasMultiplePlatformsare completely omitted.

According to , restoring the declaration of `componentHasMultiplePlatforms

should not add (incorrect) declaration like below as the side effect:

The following mapping is correct:

Environment

None

Assignee

Vadim Vorotilin

Reporter

Alex Petuschak

Labels

None

Git Branch Name

None

GitHub Issue

None

Components

Fix versions

Priority

Low
Configure