fn push_breakpoint_end_with_distinct_origin(
        &mut self,
        brewery: &mut Brewery<'_>,
        expr: syntax::Expr,
        place: Option<bir::Place>,
        origin: ExprOrigin,
    ) {
        if !origin.synthesized && self.end_block.is_some() {
            if let Some(breakpoint_index) = brewery.expr_is_breakpoint(origin.syntax_expr) {
                let filename = brewery.code().filename(brewery.db());
                let statement = brewery.add(
                    bir::StatementData::BreakpointEnd(filename, breakpoint_index, expr, place),
                    origin,
                );
                self.push_statement(brewery, statement);
            }
        }
    }
/// Helper: push the breakpoint-end but the origin/breakpoint-expr might be distinct.
push the breakpoint-end but the origin/breakpoint-expr might be distinct.
push the breakpoint - end but the origin / breakpoint - expr might be distinct .
fn push_breakpoint_end_with_distinct_origin(
        &mut self,
        brewery: &mut Brewery<'_>,
        expr: syntax::Expr,
        place: Option<bir::Place>,
        origin: ExprOrigin,
    ) {
        if !origin.synthesized && self.end_block.is_some() {
            if let Some(breakpoint_index) = brewery.expr_is_breakpoint(origin.syntax_expr) {
                let filename = brewery.code().filename(brewery.db());
                let statement = brewery.add(
                    bir::StatementData::BreakpointEnd(filename, breakpoint_index, expr, place),
                    origin,
                );
                self.push_statement(brewery, statement);
            }
        }
    }
fn push_breakpoint_end_with_distinct_origin ( & mut self , brewery : & mut Brewery < ' _ > , expr : syntax :: Expr , place : Option < bir :: Place > , origin : ExprOrigin , ) { if ! origin . synthesized && self . end_block . is_some ( ) { if let Some ( breakpoint_index ) = brewery . expr_is_breakpoint ( origin . syntax_expr ) { let filename = brewery . code ( ) . filename ( brewery . db ( ) ) ; let statement = brewery . add ( bir :: StatementData :: BreakpointEnd ( filename , breakpoint_index , expr , place ) , origin , ) ; self . push_statement ( brewery , statement ) ; } } }
Helper: push the breakpoint-end but the origin/breakpoint-expr might be distinct.
Helper : push the breakpoint - end but the origin / breakpoint - expr might be distinct .
&mut self
brewery
&mut Brewery<'_>
expr
syntax::Expr
place
Option<bir::Place>
origin
ExprOrigin
&mut self
brewery
&mut Brewery<'_>
expr
syntax::Expr
place
Option<bir::Place>
origin
ExprOrigin