Skip to content

Commit 2a80405

Browse files
committed
Fix repeated field wrapper class name generation - Red.
1 parent ea63156 commit 2a80405

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

generator/js_generator.cc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1168,7 +1168,7 @@ static const char* kOneofGroupArrayName = "oneofGroups_";
11681168
std::string OneofFieldsArrayName(const GeneratorOptions& options,
11691169
const Descriptor* desc) {
11701170
return HasOneofFields(desc)
1171-
? (GetMessagePath(options, desc) + "." + kOneofGroupArrayName)
1171+
? (desc->name() + "." + kOneofGroupArrayName)
11721172
: "null";
11731173
}
11741174

@@ -3177,7 +3177,9 @@ void Generator::GenerateRepeatedPrimitiveHelperMethods(
31773177
}
31783178

31793179
void Generator::GenerateRepeatedMessageHelperMethods(
3180-
const GeneratorOptions& options, const TypeNames& type_names, io::Printer* printer,
3180+
const GeneratorOptions& options,
3181+
const TypeNames& type_names,
3182+
io::Printer* printer,
31813183
const FieldDescriptor* field) const {
31823184

31833185
const std::string classSymbol = GetMessagePath(options, field->containing_type());

0 commit comments

Comments
 (0)