[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

@@ -680,7 +680,7 @@ CheckedError Parser::ParseField(StructDef &struct_def) {
if (struct_def.fixed) {
auto valid = IsScalar(type.base_type) || IsStruct(type);
if (!valid && IsArray(type)) {
const auto& elem_type = type.VectorType();
const auto &elem_type = type.VectorType();
valid |= IsScalar(elem_type.base_type) || IsStruct(elem_type);
}
if (!valid)