|
|
@ -6311,9 +6311,12 @@ void DescriptorBuilder::BuildEnum(const EnumDescriptorProto& proto, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Copy options.
|
|
|
|
// Copy options.
|
|
|
|
result->options_ = |
|
|
|
{ |
|
|
|
|
|
|
|
EnumOptions* options = |
|
|
|
AllocateOptions(proto, result, EnumDescriptorProto::kOptionsFieldNumber, |
|
|
|
AllocateOptions(proto, result, EnumDescriptorProto::kOptionsFieldNumber, |
|
|
|
"google.protobuf.EnumOptions", alloc); |
|
|
|
"google.protobuf.EnumOptions", alloc); |
|
|
|
|
|
|
|
result->options_ = options; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
AddSymbol(result->full_name(), parent, result->name(), proto, Symbol(result)); |
|
|
|
AddSymbol(result->full_name(), parent, result->name(), proto, Symbol(result)); |
|
|
|
|
|
|
|
|
|
|
@ -6389,9 +6392,12 @@ void DescriptorBuilder::BuildEnumValue(const EnumValueDescriptorProto& proto, |
|
|
|
ValidateSymbolName(proto.name(), result->full_name(), proto); |
|
|
|
ValidateSymbolName(proto.name(), result->full_name(), proto); |
|
|
|
|
|
|
|
|
|
|
|
// Copy options.
|
|
|
|
// Copy options.
|
|
|
|
result->options_ = AllocateOptions( |
|
|
|
{ |
|
|
|
|
|
|
|
EnumValueOptions* options = AllocateOptions( |
|
|
|
proto, result, EnumValueDescriptorProto::kOptionsFieldNumber, |
|
|
|
proto, result, EnumValueDescriptorProto::kOptionsFieldNumber, |
|
|
|
"google.protobuf.EnumValueOptions", alloc); |
|
|
|
"google.protobuf.EnumValueOptions", alloc); |
|
|
|
|
|
|
|
result->options_ = options; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Again, enum values are weird because we makes them appear as siblings
|
|
|
|
// Again, enum values are weird because we makes them appear as siblings
|
|
|
|
// of the enum type instead of children of it. So, we use
|
|
|
|
// of the enum type instead of children of it. So, we use
|
|
|
|