diff options
author | Dan Field <dnfield@google.com> | 2021-01-07 14:51:52 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-07 14:51:52 -0800 |
commit | 809fe49c7a35011547501be83c84b76a464684ac (patch) | |
tree | 6fd3786034141fc3801af9d71563728bb0dae3a1 /src | |
parent | 41253e574e9064de556032b987e1b22d7283cc37 (diff) | |
download | flatbuffers-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.cpp | 2 |
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 + ","; |