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

@@ -57,6 +57,9 @@ class IdlNamer : public Namer {
std::string Method(const FieldDef &d, const std::string &suffix) const {
return Method(d.name, suffix);
}
std::string Method(const std::string &prefix, const StructDef &d) const {
return Method(prefix, d.name);
}
std::string Method(const std::string &prefix, const FieldDef &d) const {
return Method(prefix, d.name);
}