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

Method collect_sum_dependencies

crates/codegen/src/cpp.rs:161–167  ·  view source on GitHub ↗
(&self, module: &ModuleDef, sum: &SumTypeDef)

Source from the content-addressed store, hash-verified

159 }
160
161 fn collect_sum_dependencies(&self, module: &ModuleDef, sum: &SumTypeDef) -> HashSet<String> {
162 let mut deps = HashSet::new();
163 for (_, variant_type) in &sum.variants {
164 deps.extend(Self::collect_dependencies(module, variant_type));
165 }
166 deps
167 }
168
169 // Generate minimal product type (struct with fields only)
170 fn write_product_type(&self, output: &mut String, module: &ModuleDef, type_name: &str, product: &ProductTypeDef) {

Callers 1

generate_type_filesMethod · 0.80

Calls 2

newFunction · 0.50
extendMethod · 0.45

Tested by

no test coverage detected