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

Function indented_block

crates/codegen/src/csharp.rs:1557–1562  ·  view source on GitHub ↗
(output: &mut CodeIndenter<String>, f: impl FnOnce(&mut CodeIndenter<String>) -> R)

Source from the content-addressed store, hash-verified

1555}
1556
1557fn indented_block<R>(output: &mut CodeIndenter<String>, f: impl FnOnce(&mut CodeIndenter<String>) -> R) -> R {
1558 writeln!(output, "{{");
1559 let res = f(&mut output.indented(1));
1560 writeln!(output, "}}");
1561 res
1562}
1563
1564/// Builds C# function parameter and argument lists from an iterator of parameter names and types.
1565fn build_func_params_and_args<'a, I>(module: &ModuleDef, params_iter: I, namespace: &str) -> (String, String)

Calls 1

indentedMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…