|
|
@ -85,6 +85,16 @@ void EnumLiteGenerator::Generate(io::Printer* printer) { |
|
|
|
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------
|
|
|
|
// -----------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (context_->options().opensource_runtime) { |
|
|
|
|
|
|
|
printer->Print("static {\n"); |
|
|
|
|
|
|
|
printer->Indent(); |
|
|
|
|
|
|
|
PrintGencodeVersionValidator(printer, |
|
|
|
|
|
|
|
context_->options().opensource_runtime, |
|
|
|
|
|
|
|
context_->EnforceLite(), descriptor_->name()); |
|
|
|
|
|
|
|
printer->Outdent(); |
|
|
|
|
|
|
|
printer->Print("}\n"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < aliases_.size(); i++) { |
|
|
|
for (int i = 0; i < aliases_.size(); i++) { |
|
|
|
absl::flat_hash_map<absl::string_view, std::string> vars; |
|
|
|
absl::flat_hash_map<absl::string_view, std::string> vars; |
|
|
|
vars["classname"] = descriptor_->name(); |
|
|
|
vars["classname"] = descriptor_->name(); |
|
|
|