/// Return all the assists applicable at the given position.
///
/// Assists are returned in the "unresolved" state, that is only labels are
/// returned, without actual edits.
Return all the assists applicable at the given position.
Assists are returned in the "unresolved" state, that is only labels are
returned, without actual edits.
Return all the assists applicable at the given position . Assists are returned in the " unresolved " state that is only labels are returned without actual edits .
pub fn unresolved(db: &RootDatabase, config: &AssistConfig, range: FileRange) -> Vec<Assist> {
        let sema = Semantics::new(db);
        let ctx = AssistContext::new(sema, config, range);
        let mut acc = Assists::new_unresolved(&ctx);
        handlers::all().iter().for_each(|handler| {
            handler(&mut acc, &ctx);
        });
        acc.finish_unresolved()
    }
pub fn unresolved ( db : & RootDatabase , config : & AssistConfig , range : FileRange ) -> Vec < Assist > { let sema = Semantics :: new ( db ) ; let ctx = AssistContext :: new ( sema , config , range ) ; let mut acc = Assists :: new_unresolved ( & ctx ) ; handlers :: all ( ) . iter ( ) . for_each ( | handler | { handler ( & mut acc , & ctx ) ; } ) ; acc . finish_unresolved ( ) }
Return all the assists applicable at the given position.
Return all the assists applicable at the given position .
db
&RootDatabase
config
&AssistConfig
range
FileRange