remove resolver from CompletonContext

This commit is contained in:
Aleksey Kladov 2019-04-11 16:49:35 +03:00
parent 3c9f2d0e37
commit ebb0c377f0
5 changed files with 9 additions and 31 deletions

View file

@ -9,7 +9,7 @@ pub(super) fn complete_path(acc: &mut Completions, ctx: &CompletionContext) {
Some(path) => path.clone(),
_ => return,
};
let def = match ctx.resolver.resolve_path(ctx.db, &path).take_types() {
let def = match ctx.analyzer.resolver().resolve_path(ctx.db, &path).take_types() {
Some(Resolution::Def(def)) => def,
_ => return,
};