mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 15:15:24 +00:00
move scopes to file
This commit is contained in:
parent
846114a6e9
commit
aaca7d003b
11 changed files with 280 additions and 196 deletions
|
@ -93,6 +93,11 @@ impl ModuleMap {
|
|||
res
|
||||
}
|
||||
|
||||
pub fn suggested_child_mod_path(&self, m: ast::Module) -> Option<PathBuf> {
|
||||
let name = m.name()?;
|
||||
Some(PathBuf::from(format!("../{}.rs", name.text())))
|
||||
}
|
||||
|
||||
fn links(
|
||||
&self,
|
||||
file_resolver: &FileResolver,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue