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

Method write_cpp_field_name

crates/codegen/src/cpp.rs:40–47  ·  view source on GitHub ↗
(&self, output: &mut String, field_name: &str)

Source from the content-addressed store, hash-verified

38 }
39
40 fn write_cpp_field_name(&self, output: &mut String, field_name: &str) -> fmt::Result {
41 let escaped = self.cpp_field_name(field_name);
42 if escaped.is_empty() {
43 write!(output, "{}_", field_name)
44 } else {
45 write!(output, "{}", escaped)
46 }
47 }
48
49 fn is_recursive_mount_module_field(&self, type_name: &str, field_name: &str) -> bool {
50 type_name == "RawModuleMountV10" && field_name == "module"

Callers 1

write_product_typeMethod · 0.80

Calls 2

cpp_field_nameMethod · 0.80
is_emptyMethod · 0.45

Tested by

no test coverage detected