-
Notifications
You must be signed in to change notification settings - Fork 533
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[enumification] Support "non-constant-to-constant" transition in enums (
#1080) At 9a73c4c we became much more precise about enumification, because formerly we only pull int constant information through DroidDoc only in the latest API. Besides, we had been precise on which int fields are final and which aren't, in API XML metadata. Since we switched the information source to API XML metadata, such final fields that were NOT final are strictly converted to enums only in the constant-ified API Level. That was regarded as regression at #1078 . The solution to this situation is: treat them as constants. To do so, now generate-const-list-2.cs is changed to NOT check if an int field is final or not, until at the merge phase. Then we filter out those non-constant fields (which are not much). This uncovers those "formerly non constant" fields too. Fortunately such fields didn't exist other than the ones at PR #1078 mentioned (this generate-const-list-2.exe now prints out such fields now.)
- Loading branch information
1 parent
71c8756
commit 50c0c15
Showing
2 changed files
with
19 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters