/// Return all the assists applicable at the given position.
///
/// Assists are returned in the "resolved" state, that is with edit fully
/// computed.
Return all the assists applicable at the given position.
Assists are returned in the "resolved" state, that is with edit fully
computed.
Return all the assists applicable at the given position . Assists are returned in the " resolved " state that is with edit fully computed .
pub fn resolved(
        db: &RootDatabase,
        config: &AssistConfig,
        range: FileRange,
    ) -> Vec<ResolvedAssist> {
        let sema = Semantics::new(db);
        let ctx = AssistContext::new(sema, config, range);
        let mut acc = Assists::new_resolved(&ctx);
        handlers::all().iter().for_each(|handler| {
            handler(&mut acc, &ctx);
        });
        acc.finish_resolved()
    }
pub fn resolved ( db : & RootDatabase , config : & AssistConfig , range : FileRange , ) -> Vec < ResolvedAssist > { let sema = Semantics :: new ( db ) ; let ctx = AssistContext :: new ( sema , config , range ) ; let mut acc = Assists :: new_resolved ( & ctx ) ; handlers :: all ( ) . iter ( ) . for_each ( | handler | { handler ( & mut acc , & ctx ) ; } ) ; acc . finish_resolved ( ) }
Return all the assists applicable at the given position.
Return all the assists applicable at the given position .
db
&RootDatabase
config
&AssistConfig
range
FileRange