[Dart] Getting tests/DartTest.sh to work on master. (#5915)

* Fixed refractoring issue in reflection/generate_code.sh. Also, mv deletes the original file, so I don't need to clean it up manually in that case.

* Fixed Dart Tests by removing code-gen for included files.
This commit is contained in:
Derek Bailey
2020-05-15 18:13:29 -07:00
committed by GitHub
parent 424a473e1f
commit 0fa087657e
4 changed files with 4 additions and 9 deletions

View File

@@ -2854,7 +2854,7 @@ class CppGenerator : public BaseGenerator {
*code_ptr += " (void)padding" + NumToString((*id)++) + "__;";
}
void GenStructConstructor(const StructDef& struct_def) {
void GenStructConstructor(const StructDef &struct_def) {
std::string arg_list;
std::string init_list;
int padding_id = 0;
@@ -2869,8 +2869,7 @@ class CppGenerator : public BaseGenerator {
}
const auto member_name = Name(field) + "_";
const auto arg_name = "_" + Name(field);
const auto arg_type =
GenTypeGet(field_type, " ", "const ", " &", true);
const auto arg_type = GenTypeGet(field_type, " ", "const ", " &", true);
if (it != first) { arg_list += ", "; }
arg_list += arg_type;