mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-06 05:27:24 +00:00
Co-authored-by: Derek Bailey <derekbailey@google.com>
This commit is contained in:
@@ -146,7 +146,8 @@ class IdlNamer : public Namer {
|
||||
|
||||
std::string LegacyRustUnionTypeMethod(const FieldDef &d) {
|
||||
// assert d is a union
|
||||
return Method(d.name + "_type");
|
||||
// d should convert case but not escape keywords due to historical reasons
|
||||
return ConvertCase(d.name, config_.fields, Case::kLowerCamel) + "_type";
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user