Add Parsing Completed function for Rust (#7084)

This commit is contained in:
Derek Bailey
2022-02-08 07:40:55 -08:00
committed by GitHub
parent c1daa6ba0c
commit c85fb690f4
4 changed files with 37 additions and 19 deletions

View File

@@ -194,6 +194,11 @@ bool IsOptionalToBuilder(const FieldDef &field) {
bool GenerateRustModuleRootFile(const Parser &parser,
const std::string &output_dir) {
if (parser.opts.one_file) {
// Don't generate a root file when generating one file. This isn't an error
// so return true.
return true;
}
// We gather the symbols into a tree of namespaces (which are rust mods) and
// generate a file that gathers them all.
struct Module {