| 65 | } |
| 66 | |
| 67 | void AddEnumItem() { |
| 68 | if (!CurrentItem.CppName) { |
| 69 | // uninitialized element should have no value too |
| 70 | Y_ASSERT(!CurrentItem.Value.Defined()); |
| 71 | return; |
| 72 | } |
| 73 | |
| 74 | // enum item C++ name should not be empty |
| 75 | Y_ASSERT(CurrentItem.CppName); |
| 76 | CurrentItem.NormalizeValue(); |
| 77 | CurrentEnum.Items.push_back(CurrentItem); |
| 78 | CurrentItem.Clear(); |
| 79 | InEnumState = Begin; |
| 80 | } |
| 81 | |
| 82 | template<class T> |
| 83 | void AppendValue(const T& text) { |
nothing calls this directly
no test coverage detected