mirror of
https://github.com/erg-lang/erg.git
synced 2025-10-02 21:44:34 +00:00
fix: bugs
This commit is contained in:
parent
33e1b776cb
commit
ced04e5d6a
8 changed files with 71 additions and 65 deletions
|
@ -209,7 +209,7 @@ impl<Checker: BuildRunnable> Server<Checker> {
|
|||
let mut imports = vec![];
|
||||
if let Some(IncompleteArtifact {
|
||||
object: Some(hir), ..
|
||||
}) = self.artifacts.get(target)
|
||||
}) = self.artifacts.get(target).map(|r| &r.artifact)
|
||||
{
|
||||
for chunk in hir.module.iter() {
|
||||
imports.extend(Self::extract_import_symbols(chunk, needle_module_name));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue