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

@ -7,7 +7,7 @@ pub(super) fn complete_pattern(acc: &mut Completions, ctx: &CompletionContext) {
}
// FIXME: ideally, we should look at the type we are matching against and
// suggest variants + auto-imports
let names = ctx.resolver.all_names(ctx.db);
let names = ctx.analyzer.resolver().all_names(ctx.db);
for (name, res) in names.into_iter() {
let r = res.as_ref();
let def = match r.take_types().or(r.take_values()) {