Uppercase enum keys

To match the generated JS
This commit is contained in:
Ben Foxall 2019-06-27 10:28:01 +01:00 committed by Stanley Cheung
parent d16364954a
commit 0c24e95a38
1 changed files with 1 additions and 1 deletions

View File

@ -801,7 +801,7 @@ void PrintProtoDtsEnum(Printer *printer, const EnumDescriptor *desc)
printer->Indent();
for (int i = 0; i < desc->value_count(); i++)
{
vars["value_name"] = desc->value(i)->name();
vars["value_name"] = Uppercase(desc->value(i)->name());
vars["value_number"] = std::to_string(desc->value(i)->number());
printer->Print(vars, "$value_name$ = $value_number$,\n");
}