pub fn lower_return(
ctx: &mut LoweringContext<'_, '_>,
builder: &mut BlockBuilder,
ret_var: VarUsage,
location: LocationId,
is_early_return: bool,
) -> Result<LoweredExpr, LoweringFlowError>
Expand description
Generates the lowering for a return ret_expr
in the case where we are inside a loop is_early_return
indicates if this is a normal return
or an early return.