re_types_builder

Function generate_code

Source
pub(crate) fn generate_code(
    reporter: &Reporter,
    objects: &Objects,
    type_registry: &TypeRegistry,
    generator: &mut dyn CodeGenerator,
    formatter: &mut dyn CodeFormatter,
    orphan_paths_opt_out: &BTreeSet<Utf8PathBuf>,
    check: bool,
)
Expand description

Generates, formats and optionally writes code.

If check is true, this will run a comparison check instead of writing files to disk.

Panics on error.