mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-05 04:58:57 +00:00
Apply Namer to Python code gen (#7146)
* Refactor out a class from Rust Codegen * Convert GenerateRustModuleRootFile * git-clang-format * unused variable * parenthesis * update BUILD file * buildifier * Delete bfbs_gen_rust.h * Delete bfbs_gen_rust.cpp * Addressed some comments * Namer::EnumVariant * Remove do not submit; Add Namespace vector overload * Unshadow variable * removed redundant variables * Apply Namer to Python * Use more variables a bit * Apply const a bunch * More variables * Fix ObjectTypes * git clang format * small thing * Simplified code around nested flatbuffers * Make more methods const. * Python files are kKeep case * Address DO NOT SUBMIT in SaveType * ensure dir exists before saving files * fix space Co-authored-by: Casper Neo <cneo@google.com>
This commit is contained in:
@@ -34,6 +34,7 @@ Namer::Config RustDefaultConfig() {
|
||||
/*methods=*/Case::kSnake,
|
||||
/*functions=*/Case::kSnake,
|
||||
/*fields=*/Case::kKeep,
|
||||
/*variables=*/Case::kUnknown, // Unused.
|
||||
/*variants=*/Case::kKeep,
|
||||
/*enum_variant_seperator=*/"::",
|
||||
/*namespaces=*/Case::kSnake,
|
||||
|
||||
Reference in New Issue
Block a user