MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / print_module_decls

Function print_module_decls

crates/codegen/src/rust.rs:1144–1148  ·  view source on GitHub ↗

Print `pub mod` declarations for all the files that will be generated for `items`.

(module: &ModuleDef, visibility: CodegenVisibility, out: &mut Indenter)

Source from the content-addressed store, hash-verified

1142
1143/// Print `pub mod` declarations for all the files that will be generated for `items`.
1144fn print_module_decls(module: &ModuleDef, visibility: CodegenVisibility, out: &mut Indenter) {
1145 for module_name in iter_module_names(module, visibility) {
1146 writeln!(out, "pub mod {module_name};");
1147 }
1148}
1149
1150/// Print appropriate reexports for all the files that will be generated for `items`.
1151fn print_module_reexports(module: &ModuleDef, visibility: CodegenVisibility, out: &mut Indenter) {

Callers 1

generate_global_filesMethod · 0.85

Calls 1

iter_module_namesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…