Commit fef4ce2
committed
Prefix enum constant names with class name
Some enum constant names defined in .gir files are not legal Java,
for example, they can begin with a number. The c:identifier is not
always usable either, as in some cases it contains a free-form
description. Transforming the enum class name from CamelCase to
ALL_UPPERCASE_WITH_UNDERSCORES_, and prefixing it to the enum
constant names should produce legal Java enum constant names.1 parent 2bcf93d commit fef4ce2
2 files changed
+12
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
441 | 441 | | |
442 | 442 | | |
443 | 443 | | |
444 | | - | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
445 | 447 | | |
446 | 448 | | |
447 | 449 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
89 | 98 | | |
0 commit comments