mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 13:51:31 +00:00
Move Expander and LowerCtx into separate modules
This commit is contained in:
parent
fd4bbcabe8
commit
bca8029a6e
25 changed files with 487 additions and 402 deletions
|
@ -109,6 +109,9 @@ impl LineIndex {
|
|||
line_wide_chars.insert(line, wide_chars);
|
||||
}
|
||||
|
||||
newlines.shrink_to_fit();
|
||||
line_wide_chars.shrink_to_fit();
|
||||
|
||||
LineIndex { newlines, line_wide_chars }
|
||||
}
|
||||
|
||||
|
|
|
@ -93,6 +93,7 @@ impl Query {
|
|||
pub trait SymbolsDatabase: HirDatabase + SourceDatabaseExt + Upcast<dyn HirDatabase> {
|
||||
/// The symbol index for a given module. These modules should only be in source roots that
|
||||
/// are inside local_roots.
|
||||
// FIXME: We should probably LRU this
|
||||
fn module_symbols(&self, module: Module) -> Arc<SymbolIndex>;
|
||||
|
||||
/// The symbol index for a given source root within library_roots.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue