/// Returns all the breakpoints set for a given chunk of code.
Returns all the breakpoints set for a given chunk of code.
Returns all the breakpoints set for a given chunk of code .
pub fn breakpoints_in_code(db: &dyn crate::Db, code: Code) -> Vec<syntax::Expr> {
    let filename = code.body_tokens.filename(db);
    let locations = breakpoint_locations(db, filename);
    locations
        .iter()
        .flat_map(|l| crate::breakpoint::find(db, filename, *l))
        .filter(|bp| bp.code == code)
        .map(|bp| bp.expr)
        .collect()
}
pub fn breakpoints_in_code ( db : & dyn crate :: Db , code : Code ) -> Vec < syntax :: Expr > { let filename = code . body_tokens . filename ( db ) ; let locations = breakpoint_locations ( db , filename ) ; locations . iter ( ) . flat_map ( | l | crate :: breakpoint :: find ( db , filename , * l ) ) . filter ( | bp | bp . code == code ) . map ( | bp | bp . expr ) . collect ( ) }
Returns all the breakpoints set for a given chunk of code.
Returns all the breakpoints set for a given chunk of code .
db
&dyn crate::Db
code
Code