diff options
author | Jonas Schievink <[email protected]> | 2020-06-11 11:03:08 +0100 |
---|---|---|
committer | Jonas Schievink <[email protected]> | 2020-06-11 11:03:08 +0100 |
commit | 6766a6b0e189f47d7a405c872598bca9a2395360 (patch) | |
tree | 9a7e736097e29fa2f1be316effcd40a29f282362 /crates/ra_ide_db/src | |
parent | dd22657407bb0ab24d141275fd4f0d87269262c8 (diff) |
Add symbol index FIXME
Diffstat (limited to 'crates/ra_ide_db/src')
-rw-r--r-- | crates/ra_ide_db/src/symbol_index.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crates/ra_ide_db/src/symbol_index.rs b/crates/ra_ide_db/src/symbol_index.rs index ac0a201df..aab918973 100644 --- a/crates/ra_ide_db/src/symbol_index.rs +++ b/crates/ra_ide_db/src/symbol_index.rs | |||
@@ -177,6 +177,9 @@ pub fn world_symbols(db: &RootDatabase, query: Query) -> Vec<FileSymbol> { | |||
177 | } | 177 | } |
178 | 178 | ||
179 | pub fn crate_symbols(db: &RootDatabase, krate: CrateId, query: Query) -> Vec<FileSymbol> { | 179 | pub fn crate_symbols(db: &RootDatabase, krate: CrateId, query: Query) -> Vec<FileSymbol> { |
180 | // FIXME(#4842): This now depends on CrateDefMap, why not build the entire symbol index from | ||
181 | // that instead? | ||
182 | |||
180 | let def_map = db.crate_def_map(krate); | 183 | let def_map = db.crate_def_map(krate); |
181 | let mut files = Vec::new(); | 184 | let mut files = Vec::new(); |
182 | let mut modules = vec![def_map.root]; | 185 | let mut modules = vec![def_map.root]; |