summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDan Field <dnfield@google.com>2021-01-07 14:51:52 -0800
committerGitHub <noreply@github.com>2021-01-07 14:51:52 -0800
commit809fe49c7a35011547501be83c84b76a464684ac (patch)
tree6fd3786034141fc3801af9d71563728bb0dae3a1 /src
parent41253e574e9064de556032b987e1b22d7283cc37 (diff)
downloadflatbuffers-809fe49c7a35011547501be83c84b76a464684ac.tar.gz
flatbuffers-809fe49c7a35011547501be83c84b76a464684ac.tar.bz2
flatbuffers-809fe49c7a35011547501be83c84b76a464684ac.zip
Fix up scripts, fix generated enum value for strong mode, regenerate files (#6389)
* Fix up scripts, fix generated enum value for strong mode, regenerate files * missing files * GH action * remove action
Diffstat (limited to 'src')
-rw-r--r--src/idl_gen_dart.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/idl_gen_dart.cpp b/src/idl_gen_dart.cpp
index eec05a71..56c4a825 100644
--- a/src/idl_gen_dart.cpp
+++ b/src/idl_gen_dart.cpp
@@ -267,7 +267,7 @@ class DartGenerator : public BaseGenerator {
code += "const " + name + "._(" + enum_def.ToString(ev) + ");\n";
}
- code += " static const values = {";
+ code += " static const Map<int," + name + "> values = {";
for (auto it = enum_def.Vals().begin(); it != enum_def.Vals().end(); ++it) {
auto &ev = **it;
code += enum_def.ToString(ev) + ": " + ev.name + ",";