MCPcopy Create free account
hub / github.com/borgo-lang/borgo / current_zero_value

Method current_zero_value

compiler/src/codegen.rs:1732–1736  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

1730 }
1731
1732 fn current_zero_value(&self) -> String {
1733 let ty = &self.current_fn_ret_ty.as_ref().unwrap().get_args().unwrap()[0];
1734
1735 format!("*new({ty})", ty = self.to_type(&ty))
1736 }
1737
1738 fn return_value_is_result(&mut self, expr: &Expr) -> Option<EmitResult> {
1739 let ret_ty = expr.get_type();

Callers

nothing calls this directly

Calls 1

get_argsMethod · 0.80

Tested by

no test coverage detected