remove SearchScope

This commit is contained in:
Ekaterina Babshukova 2019-10-14 15:49:32 +03:00
parent 88ff88d318
commit 328be5721a
2 changed files with 6 additions and 10 deletions

View file

@ -99,7 +99,7 @@ fn find_name<'a>(
fn process_definition(db: &RootDatabase, def: NameDefinition, name: String) -> Vec<FileRange> {
let pat = name.as_str();
let scope = def.scope(db).files;
let scope = def.search_scope(db);
let mut refs = vec![];
let is_match = |file_id: FileId, name_ref: &ast::NameRef| -> bool {