Apply Namer prefix/suffix to other generators (#7197)

* Apply Namer prefix/suffix to other generators

* unnecessary .name

Co-authored-by: Casper Neo <cneo@google.com>
This commit is contained in:
Casper
2022-03-30 18:45:11 -04:00
committed by GitHub
parent fac0d7be02
commit b71d968fad
3 changed files with 9 additions and 6 deletions

View File

@@ -836,7 +836,7 @@ class DartGenerator : public BaseGenerator {
it != non_deprecated_fields.end(); ++it) {
const auto &field = *it->second;
const auto offset = it->first;
const std::string add_field = namer_.Method("add_" + field.name);
const std::string add_field = namer_.Method("add", field);
const std::string field_var = namer_.Variable(field);
if (IsScalar(field.value.type.base_type)) {