diff options
Diffstat (limited to 'src/idl_gen_dart.cpp')
-rw-r--r-- | src/idl_gen_dart.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/idl_gen_dart.cpp b/src/idl_gen_dart.cpp index 8b87df07..0bf230dd 100644 --- a/src/idl_gen_dart.cpp +++ b/src/idl_gen_dart.cpp @@ -27,7 +27,9 @@ namespace flatbuffers { namespace dart { -Namer::Config DartDefaultConfig() { +namespace { + +static Namer::Config DartDefaultConfig() { return { /*types=*/Case::kUpperCamel, /*constants=*/Case::kScreamingSnake, /*methods=*/Case::kLowerCamel, @@ -50,7 +52,7 @@ Namer::Config DartDefaultConfig() { /*filename_extension=*/".dart" }; } -std::set<std::string> DartKeywords() { +static std::set<std::string> DartKeywords() { // see https://www.dartlang.org/guides/language/language-tour#keywords // yield*, async*, and sync* shouldn't be proble return { @@ -67,6 +69,7 @@ std::set<std::string> DartKeywords() { "dynamic", "implements", "set", }; } +} // namespace const std::string _kFb = "fb"; |